:root {
    --primary-blue: #0A2540;
    --gold-light: #F3E5AB;
    --gold: #D4AF37;
    --gold-dark: #B8860B;
    --red: #C62828;
    --dark: #1A1A1A;
    --light: #F8F9FA;
    --white: #FFFFFF;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
}

.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.flex-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 40px;
}

/* Typography Helpers */
.text-gold-gradient {
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.text-white { color: var(--white); }
.text-light { color: #E0E0E0; }
.text-primary-blue { color: var(--primary-blue); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, #e6b800 0%, #ffcc00 50%, #e6b800 100%);
    color: var(--primary-blue);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
    background: linear-gradient(135deg, #ffcc00 0%, #ffe066 50%, #ffcc00 100%);
}

.btn-secondary {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-secondary:hover:not(:disabled) {
    background: #113458;
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Header */
.brand-header {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 15px 0;
}

.brand-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.distributor {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: url('https://offertabs.s3.amazonaws.com/offer/2towds/site/media/6acce2b4aa2fa2.58851638.jpg') center/cover no-repeat;
    padding: 60px 0;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(10, 37, 64, 0.9) 0%, rgba(10, 37, 64, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 5;
    text-align: center;
    color: var(--white);
    max-width: 800px;
}

.campaign-badge {
    margin-bottom: 20px;
}

.campaign-badge span {
    display: inline-block;
    padding: 8px 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 10px;
    color: var(--white);
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--gold-light);
    margin-bottom: 30px;
}

.hero-tagline {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 30px;
    color: var(--white);
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-btn {
    margin-bottom: 30px;
}

.hero-supporting {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Ornaments and animations */
.bg-star, .festive-ornament {
    position: absolute;
    z-index: 2;
}

.bg-star {
    animation: float 4s ease-in-out infinite;
}

.festive-ornament {
    animation: swing 6s ease-in-out infinite alternate;
    transform-origin: top center;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes swing {
    0% { transform: rotate(-5deg); }
    100% { transform: rotate(5deg); }
}

/* Snow */
.snow-container {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 3;
    overflow: hidden;
}

.snow {
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(4px 4px at 20px 30px, #FFF, rgba(0,0,0,0)),
        radial-gradient(4px 4px at 40px 70px, #FFF, rgba(0,0,0,0)),
        radial-gradient(5px 5px at 90px 40px, #FFF, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 160px 120px, #FFF, rgba(0,0,0,0));
    background-size: 200px 200px;
    animation: snow 10s linear infinite;
    opacity: 0.5;
}

@keyframes snow {
    0% { background-position: 0px 0px; }
    100% { background-position: 100px 200px; }
}

/* Countdown */
.countdown-container {
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.countdown-label {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--gold-light);
    text-transform: uppercase;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.cd-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 10px 15px;
    border-radius: 8px;
    min-width: 70px;
}

.cd-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.cd-unit {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-top: 5px;
}

/* Form Section */
.form-section {
    padding: 80px 0;
    background-color: var(--white);
}

.form-image-col {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.side-image {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.form-col {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.form-card {
    background: var(--white);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.08);
}

.form-card h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary-blue);
}

.form-card p {
    color: #666;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--primary-blue);
}

input[type="text"],
input[type="tel"],
input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
    background-color: var(--white);
}

/* File Upload */
.file-upload-wrapper {
    position: relative;
    border: 2px dashed #ddd;
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-wrapper:hover, .file-upload-wrapper.dragover {
    border-color: var(--gold);
    background-color: rgba(212, 175, 55, 0.05);
}

.file-upload-wrapper.has-file {
    border-style: solid;
    border-color: var(--primary-blue);
    background-color: rgba(10, 37, 64, 0.05);
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-ui {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: #666;
}

.file-upload-ui svg {
    color: var(--primary-blue);
    opacity: 0.7;
}

/* Error Message */
.error-message {
    background-color: #ffebee;
    color: var(--red);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 0.9rem;
    border-left: 4px solid var(--red);
}

/* Calendar Section */
.calendar-section {
    padding: 80px 0;
    position: relative;
    background-color: var(--primary-blue);
    overflow: hidden;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-desc {
    font-size: 1.1rem;
    margin-bottom: 50px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 5;
}

.calendar-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.calendar-box:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.box-day {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gold);
    color: var(--primary-blue);
    padding: 4px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.calendar-box img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
    margin-top: 20px;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.3));
}

.winner-info {
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.winner-status {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    color: rgba(255,255,255,0.6);
}

.verified .winner-status {
    color: var(--gold-light);
}

.winner-name {
    font-weight: 700;
    font-size: 1.1rem;
}

/* Post Entry / Global Messages */
.state-message {
    padding: 100px 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.success-card {
    background: var(--white);
    max-width: 600px;
    margin: 0 auto;
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
    z-index: 10;
}

.success-card h2 {
    font-size: 2.5rem;
    color: var(--red);
    margin-bottom: 20px;
}

.success-card p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #444;
}

.success-card .text-sm {
    font-size: 0.85rem;
    color: #888;
    margin-top: 30px;
}

.share-panel {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-top: 30px;
    border: 1px solid #eee;
}

.share-panel h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-blue);
}

.share-input-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.share-input-group input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
}

/* Footer */
.site-footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 60px 0 30px;
    border-top: 4px solid var(--gold);
}

.footer-legal h4 {
    margin-bottom: 20px;
    color: var(--gold-light);
}

.footer-legal p {
    font-size: 0.8rem;
    opacity: 0.7;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.6;
}

#wbx-powered-by-slot {
    margin-top: 20px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--white);
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    z-index: 2;
}

.modal-body {
    padding: 40px;
    overflow-y: auto;
    font-size: 0.95rem;
    line-height: 1.7;
}

.modal-body h3 {
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.modal-body p {
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .form-section {
        padding: 40px 0;
    }
    
    .form-card {
        padding: 30px 20px;
    }
    
    .calendar-section {
        padding: 50px 0;
    }
    
    .success-card {
        padding: 30px 20px;
    }
    
    .share-input-group {
        flex-direction: column;
    }
}
