/* --- CSS Reset & Variables --- */
:root {
    --primary: #0A2540;
    --primary-light: #1A3E6D;
    --accent: #7AD0E2; /* Changed from #00A8FF */
    --accent-hover: #5EBCD0; /* Changed from #008DDB */
    --bg-color: #f0f4f8;
    --text-main: #2d3748;
    --text-muted: #718096;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow-soft: 0 8px 32px rgba(10, 37, 64, 0.15);
    --radius-lg: 24px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --font-head: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

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

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

/* Background image */
.page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

/* Overlay to ensure text readability */
.page-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10,37,64,0.85) 0%, rgba(10,37,64,0.4) 100%);
    z-index: -1;
}

.hidden {
    display: none !important;
}

/* --- Layout --- */
.app-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 40px 20px;
}

.main-container {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* --- Header & Logo --- */

.logo-container {
    text-align: center;
    margin-bottom: 10px;
}

.site-logo {
    height: 80px;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.site-logo:hover {
    transform: scale(1.05);
}

.hero-header {
    text-align: center;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
}

.tagline {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.3);
}

.main-title {
    font-family: var(--font-head);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.text-accent {
    color: var(--accent);
}

.subtitle {
    font-size: 1.15rem;
    font-weight: 400;
    opacity: 0.9;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* --- Countdown --- */
.countdown-section {
    text-align: center;
    width: 100%;
}

.countdown-wrapper {
    margin-top: 10px;
    display: inline-block;
    background: rgba(10, 37, 64, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 20px 40px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.countdown-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--accent);
}

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

.cd-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.cd-item span:first-child {
    font-family: var(--font-head);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.cd-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    font-weight: 600;
    letter-spacing: 1px;
}

.ended-msg {
    font-family: var(--font-head);
    font-size: 1.5rem;
    color: #ff6b6b;
    font-weight: 700;
}

/* --- Grid & Cards --- */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: stretch;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-soft);
}

/* --- Left Column: Prize Details --- */
.prize-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.prize-header {
    display: flex;
    gap: 24px;
    align-items: stretch; /* Change to match text height */
}

.prize-image-container {
    flex: 0 0 140px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.prize-image-link {
    display: block;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.prize-image-link:hover {
    transform: scale(1.05);
}

.prize-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prize-info h2 {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary);
    line-height: 1.3;
    margin-bottom: 8px;
}

.prize-info .light-text {
    font-weight: 600;
    color: var(--text-muted);
}

.value-tag {
    display: inline-block;
    background: var(--accent);
    color: var(--primary); /* Changed for contrast */
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.prize-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.entry-steps h3 {
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.steps-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.steps-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
}

.steps-list .icon {
    font-size: 1.2rem;
    line-height: 1.2;
}

.quick-facts {
    margin-top: auto;
    background: rgba(10, 37, 64, 0.04);
    padding: 20px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fact {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--primary);
}

.fact svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--accent);
}

/* --- Right Column: Form --- */
.form-title {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.form-subtitle {
    color: var(--text-muted);
    margin-bottom: 30px;
}

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

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

.req {
    color: #e53e3e;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--text-main);
}

.form-group select {
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%232d3748' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat; 
    background-position: right 16px center;
    cursor: pointer;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(122, 208, 226, 0.25);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 30px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent);
}

.checkbox-group label {
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1.4;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--accent);
    color: var(--primary); /* changed for contrast */
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(122, 208, 226, 0.3);
}

.submit-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.submit-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(122, 208, 226, 0.4);
}

.submit-btn:hover svg {
    transform: translateX(4px);
}

.submit-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.error-message {
    background: #fed7d7;
    color: #c53030;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border-left: 4px solid #e53e3e;
}

.status-box {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 600;
    color: var(--primary);
    border: 2px solid #e2e8f0;
}

/* --- Thank You State --- */
#thank-you-view {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    width: 72px;
    height: 72px;
    background: #48bb78;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 8px 24px rgba(72, 187, 120, 0.3);
}

.success-icon svg {
    width: 36px;
    height: 36px;
}

.success-title {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}

.success-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* Share Panel */
.share-panel {
    background: rgba(10, 37, 64, 0.03);
    border: 1px dashed rgba(10, 37, 64, 0.2);
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: left;
}

.share-header h3 {
    font-family: var(--font-head);
    color: var(--primary);
    margin-bottom: 8px;
}

.share-header p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.share-url-container {
    display: flex;
    margin-bottom: 20px;
}

.share-url-container input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--text-muted);
    background: var(--white);
    outline: none;
}

.copy-btn {
    padding: 0 20px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: var(--primary-light);
}

.social-share {
    display: flex;
    gap: 12px;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.social-btn:hover {
    opacity: 0.9;
}

.social-btn svg {
    width: 18px;
    height: 18px;
}

.social-btn.facebook { background: #1877f2; }
.social-btn.twitter { background: #000000; }

/* Interactive Bonus List */
.interactive-bonus-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.interactive-bonus-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.6);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(10, 37, 64, 0.1);
}

.bonus-task {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.bonus-task .icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.bonus-task a {
    color: var(--accent);
    text-decoration: underline;
    font-weight: 700;
}

.bonus-task a:hover {
    color: var(--accent-hover);
}

.bonus-action-btn {
    padding: 8px 16px;
    background: var(--accent);
    color: var(--primary);
    border: none;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    margin-left: 10px;
    box-shadow: 0 2px 6px rgba(122, 208, 226, 0.3);
}

.bonus-action-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.bonus-action-btn.completed {
    background: #48bb78;
    box-shadow: none;
    cursor: default;
    transform: none;
}


/* --- Footer & Modal --- */
.site-footer {
    margin-top: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.text-link {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-family: inherit;
    font-size: 0.9rem;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s;
}

.text-link:hover {
    color: white;
}

.inline-link {
    background: none;
    border: none;
    color: var(--accent);
    font-family: inherit;
    font-size: inherit;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    display: inline;
}

.inline-link:hover {
    color: var(--accent-hover);
}

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

.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-backdrop {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--white);
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    z-index: 1001;
}

.modal-header {
    padding: 24px 30px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-family: var(--font-head);
    color: var(--primary);
    font-size: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--primary);
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    font-size: 0.95rem;
    line-height: 1.7;
    white-space: pre-wrap;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .prize-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .prize-image-container {
        width: 100%;
        height: 200px;
    }
    
    .hero-header {
        padding: 0 10px;
    }
}

@media (max-width: 600px) {
    .countdown {
        gap: 15px;
    }
    .cd-item {
        min-width: 50px;
    }
    .cd-item span:first-child {
        font-size: 2rem;
    }
    .countdown-wrapper {
        padding: 15px 20px;
    }
    .glass-panel {
        padding: 24px;
    }
    
    .social-share {
        flex-direction: column;
    }
    
    .interactive-bonus-list li {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .bonus-action-btn {
        margin-left: 0;
        width: 100%;
    }
}
