:root {
    --primary: #0f5132;    /* Emerald Green */
    --primary-light: #198754;
    --secondary: #b91c1c;  /* Cranberry Red */
    --secondary-hover: #991b1b;
    --accent: #d4af37;     /* Gold Leaf */
    --accent-light: #fef08a;
    --bg-color: #fffdf8;   /* Snow Ivory */
    --text-dark: #1c1917;
    --text-light: #f8fafc;
    
    --font-display: 'Mountains of Christmas', cursive;
    --font-body: 'Lora', serif;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --shadow-soft: 0 10px 25px -5px rgba(15, 81, 50, 0.1), 0 8px 10px -6px rgba(15, 81, 50, 0.1);
    --shadow-glow: 0 0 40px rgba(212, 175, 55, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Utilities */
.hidden { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Snow Effect */
#snow-container {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}
.snowflake {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
    box-shadow: 0 0 5px rgba(255,255,255,0.8);
    animation: fall linear infinite;
}
@keyframes fall {
    0% { transform: translateY(-10px) rotate(0deg); }
    100% { transform: translateY(105vh) rotate(360deg); }
}

/* Top Ribbon */
.top-ribbon {
    background: var(--secondary);
    background-image: repeating-linear-gradient(
        45deg,
        rgba(0,0,0,0.05) 0,
        rgba(0,0,0,0.05) 10px,
        transparent 10px,
        transparent 20px
    );
    color: var(--accent-light);
    text-align: center;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
}
.ribbon-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.ribbon-content .star { color: var(--accent); }
.ribbon-content .dot { opacity: 0.5; }

/* Main Layout */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    position: relative;
    z-index: 2;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.globe-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto 30px;
    border-radius: 50%;
    box-shadow: var(--shadow-soft), var(--shadow-glow);
}
.globe-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--accent);
}
.globe-glow {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.display-title {
    font-family: var(--font-display);
    color: var(--primary);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.8);
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-dark);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}
.subtitle strong {
    color: var(--secondary);
    font-size: 1.35rem;
}

/* Countdown */
.countdown-container {
    margin-top: 30px;
    background: rgba(255,255,255,0.6);
    padding: 15px 25px;
    border-radius: 50px;
    display: inline-block;
    border: 1px solid rgba(15, 81, 50, 0.1);
}
.countdown-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 600;
}
.timer {
    display: flex;
    gap: 15px;
    justify-content: center;
}
.time-block {
    display: flex;
    flex-direction: column;
    min-width: 45px;
}
.time-block span {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--secondary);
    line-height: 1;
}
.time-block small {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
}

/* Sections */
.section-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/* Form / Gift Tag */
.gift-tag-wrapper {
    /* Using generated wrapping paper pattern as the border */
    background: url('https://offertabs.s3.amazonaws.com/offer/y633em/site/media/69f0fd30250b10.67656178.jpg') center/cover;
    padding: 12px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    transform: rotate(-1deg);
    transition: transform 0.3s ease;
}
.gift-tag-wrapper:hover {
    transform: rotate(0deg);
}
.gift-tag {
    background: #fff;
    border-radius: 12px;
    padding: 40px 30px 30px;
    position: relative;
    text-align: center;
    border: 2px dashed rgba(185, 28, 28, 0.3);
}
.tag-hole {
    width: 16px;
    height: 16px;
    background: var(--bg-color);
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.1);
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}
/* Little string for the tag */
.tag-hole::after {
    content: '';
    position: absolute;
    top: -30px;
    left: 5px;
    width: 2px;
    height: 35px;
    background: var(--accent);
    transform: rotate(20deg);
}

.tag-title {
    font-family: var(--font-display);
    color: var(--secondary);
    font-size: 2rem;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}
input[type="email"], input[type="text"] {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    background: #f8fafc;
    transition: all 0.3s ease;
    text-align: center;
}
input[type="email"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 81, 50, 0.1);
    background: #fff;
}

.btn-primary {
    width: 100%;
    padding: 16px;
    background: var(--secondary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 14px rgba(185, 28, 28, 0.3);
}
.btn-primary:hover {
    background: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(185, 28, 28, 0.4);
}
.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.error-message {
    color: var(--secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(185, 28, 28, 0.1);
    border-radius: 6px;
}

/* Post Entry Section */
.success-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    border-top: 6px solid var(--primary);
    width: 100%;
}
.success-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.success-card h2 {
    font-family: var(--font-display);
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* Bonus Entries Panel */
.bonus-entries-panel {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px dashed #e2e8f0;
    text-align: left;
}
.bonus-header {
    text-align: center;
    margin-bottom: 25px;
}
.bonus-header h3 {
    color: var(--secondary);
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 5px;
}
.bonus-header p {
    font-size: 0.9rem;
    color: #666;
}

.share-link-box {
    background: #f8fafc;
    padding: 15px;
    border-radius: var(--radius-sm);
    margin-bottom: 25px;
}
.share-link-box label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary);
}
.copy-group {
    display: flex;
    gap: 10px;
}
.copy-group input {
    text-align: left;
    padding: 10px 15px;
    background: #fff;
}
.btn-secondary {
    padding: 10px 20px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.btn-secondary:hover {
    background: #b5952f;
}

.bonus-tasks {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.bonus-btn {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-dark);
}
.bonus-btn:hover {
    border-color: var(--primary);
    background: rgba(15, 81, 50, 0.02);
    transform: translateX(4px);
}
.bonus-btn.completed {
    background: #f0fdf4;
    border-color: #86efac;
    color: #166534;
}
.bonus-icon {
    font-size: 1.4rem;
    margin-right: 15px;
}
.bonus-text {
    flex: 1;
    text-align: left;
    font-weight: 500;
}
.bonus-status {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
    background: rgba(185, 28, 28, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
}
.bonus-btn.completed .bonus-status {
    background: #dcfce7;
    color: #166534;
    content: "Done ✓";
}

/* Footer */
.site-footer {
    background: var(--primary);
    color: var(--text-light);
    padding: 40px 20px;
    text-align: center;
    margin-top: auto;
    position: relative;
    z-index: 10;
}
.footer-badges {
    font-size: 1.5rem;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    gap: 15px;
}
.brand-heritage {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 10px;
}
.footer-legal {
    font-size: 0.85rem;
    opacity: 0.7;
}

#wbx-powered-by-slot {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

/* Status messages */
.status-message {
    text-align: center;
    padding: 40px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    margin-bottom: 40px;
    width: 100%;
    max-width: 500px;
}
.status-message h2 {
    font-family: var(--font-display);
    color: var(--secondary);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* Media Queries */
@media (max-width: 600px) {
    .display-title { font-size: 2.8rem; }
    .globe-wrapper { width: 220px; height: 220px; }
    .gift-tag { padding: 30px 20px 20px; }
    .bonus-btn { padding: 12px 15px; flex-wrap: wrap; }
    .bonus-status { margin-top: 8px; margin-left: 38px; width: max-content; }
    .time-block span { font-size: 1.5rem; }
}
