/* --- CSS Reset & Variables --- */
:root {
    --primary-navy: #0B192C;
    --primary-light: #1A2E4C;
    --accent-gold: #D4AF37;
    --accent-gold-light: #F3E5AB;
    --accent-gold-dark: #B5952F;
    
    --text-dark: #0f172a;
    --text-muted: #475569;
    --text-light: #FFFFFF;
    
    --bg-page: #FDFCF7; /* Warmer, more premium off-white */
    --bg-card: #FFFFFF;
    
    --border-color: #E2E8F0;
    --border-focus: var(--accent-gold);
    
    --error-red: #EF4444;
    --error-bg: #FEF2F2;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-sm: 0 2px 4px rgba(11, 25, 44, 0.05);
    --shadow-md: 0 8px 16px -4px rgba(11, 25, 44, 0.08), 0 4px 8px -4px rgba(11, 25, 44, 0.04);
    --shadow-lg: 0 20px 40px -10px rgba(11, 25, 44, 0.12), 0 10px 20px -5px rgba(11, 25, 44, 0.06);
    --shadow-gold: 0 10px 30px -5px rgba(212, 175, 55, 0.35);
    
    --radius-md: 12px;
    --radius-lg: 24px;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-page);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* --- Layout --- */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

.main-content {
    flex: 1;
    padding: 0 1.5rem 6rem;
    position: relative;
    z-index: 10;
    margin-top: -120px; /* Stronger overlap with hero */
}

.content-container {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* --- Utility Classes --- */
.hidden {
    display: none !important;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.slide-up {
    animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

/* --- Decorative Backgrounds --- */
.bg-pattern {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(var(--border-color) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.3;
    z-index: -2;
    pointer-events: none;
}

.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
}

.blob-1 {
    top: 400px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212,175,55,0.15) 0%, transparent 70%);
}

.blob-2 {
    top: 800px;
    right: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(11,25,44,0.08) 0%, transparent 70%);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    padding: 7rem 1.5rem 12rem;
    color: var(--text-light);
    text-align: center;
    overflow: hidden;
    background-color: var(--primary-navy);
}

.hero-bg-image {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('https://offertabs.s3.amazonaws.com/offer/ditazh/site/media/6a2184165a3be5.05885597.jpg');
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(145deg, rgba(11, 25, 44, 0.95) 0%, rgba(26, 46, 76, 0.88) 100%);
    z-index: 1;
}

.hero-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 800px;
    height: 100%;
    background: radial-gradient(circle at top center, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-wrapper {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 20px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.hero-logo {
    width: 130px;
    height: auto;
    display: block;
    border-radius: 12px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.4rem 1.25rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--accent-gold-light);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-gold);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-gold-light) 0%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 640px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.closing-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--accent-gold-light);
    font-weight: 500;
    padding: 10px 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.countdown {
    margin-top: 2rem;
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(11, 25, 44, 0.6);
    padding: 12px 24px;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.timer-digits {
    font-weight: 700;
    color: var(--accent-gold-light);
    font-variant-numeric: tabular-nums;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

/* --- Cards & General UI --- */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 3.5rem 3rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 0 1rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    color: var(--primary-navy);
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* --- Nominee Grid --- */
.nominees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3.5rem;
}

.nominee-card {
    background: #FFFFFF;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-sm);
}

.nominee-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.nominee-card.selected {
    border-color: var(--accent-gold);
    background: linear-gradient(135deg, #FFFFFF 0%, #FEFCF8 100%);
    box-shadow: var(--shadow-gold);
    transform: translateY(-3px);
}

.card-radio {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid #CBD5E1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    background: #fff;
}

.radio-inner {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--accent-gold);
    transform: scale(0);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nominee-card.selected .card-radio {
    border-color: var(--accent-gold);
    background-color: rgba(212, 175, 55, 0.1);
}

.nominee-card.selected .radio-inner {
    transform: scale(1);
}

.nominee-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin: 0;
    line-height: 1.4;
}

/* --- Form Verification Panel --- */
.verification-panel {
    background: #F8FAFC;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.verification-panel label {
    display: block;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--primary-navy);
    font-size: 1.1rem;
}

.input-group {
    display: flex;
    gap: 1rem;
}

.input-icon-wrapper {
    position: relative;
    flex: 1;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    transition: color 0.2s;
}

input[type="email"] {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    font-size: 1.05rem;
    font-family: inherit;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: #FFF;
    transition: all 0.2s;
    outline: none;
    box-shadow: var(--shadow-sm);
}

input[type="email"]:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
}

input[type="email"]:focus + .input-icon,
.input-icon-wrapper:focus-within .input-icon {
    color: var(--accent-gold);
}

input[type="email"]::placeholder {
    color: #94a3b8;
}

/* --- Buttons --- */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
    color: white;
    border: none;
    padding: 0 2rem;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.4);
    filter: brightness(1.05);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #cbd5e1;
    box-shadow: none;
    color: #64748b;
}

/* Loading Spinner */
.btn-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Messages (Thank You / Ended) --- */
.message-card {
    text-align: center;
    padding: 4rem 3rem;
}

.icon-wrapper {
    width: 88px;
    height: 88px;
    background: #F8FAFC;
    border: 2px solid #E2E8F0;
    color: #64748b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.icon-wrapper.success {
    background: #FEFCF8;
    border-color: var(--accent-gold-light);
    color: var(--accent-gold);
    box-shadow: var(--shadow-gold);
}

.message-card h2 {
    font-family: var(--font-heading);
    color: var(--primary-navy);
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.message-card p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto;
}

.announcement-box {
    margin-top: 2.5rem;
    padding: 1.75rem;
    background: #F8FAFC;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    text-align: left;
}

.announcement-icon {
    color: var(--accent-gold);
    background: #FFF;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.announcement-box p {
    color: var(--primary-navy);
    margin: 0;
    font-size: 1.05rem;
}

.error-message {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    background: var(--error-bg);
    color: var(--error-red);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid rgba(239, 68, 68, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}
.error-message::before {
    content: "!";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--error-red);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.8rem;
}

/* --- Powered By Slot --- */
#wbx-powered-by-slot {
    margin-top: 2rem;
    width: 100%;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .card {
        padding: 2.5rem 1.5rem;
    }
    
    .verification-panel {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 640px) {
    .input-group {
        flex-direction: column;
    }
    
    .btn-primary {
        padding: 1rem;
        width: 100%;
    }
    
    .hero {
        padding: 6rem 1.5rem 8rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .closing-info {
        flex-direction: column;
        text-align: center;
    }
    
    .main-content {
        margin-top: -60px;
        padding: 0 1rem 3rem;
    }
    
    .nominees-grid {
        grid-template-columns: 1fr;
    }
    
    .announcement-box {
        flex-direction: column;
        text-align: center;
    }
}