/* ================================
   Alberta Children's Hospital Lottery — Charity Theme
   Palette: Forest Green + Lavender Purple + Slate Gray
   ================================ */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ---- Theme Tokens ---- */
:root {
    /* Brand */
    --lotto-primary: #2d5a27;        /* forest green */
    --lotto-secondary: #4ade80;      /* emerald green */
    --lotto-accent: #7c3aed;         /* lavender purple */
    --lotto-dark: #334155;           /* slate gray */

    /* Text */
    --text-main: #1e293b;
    --text-soft: #475569;
    --text-muted: #64748b;

    /* Surfaces */
    --bg-page: #f8fafc;
    --bg-card: #ffffff;

    /* Borders & subtle fills */
    --border-soft: rgba(45, 90, 39, 0.22);
    --border-strong: rgba(45, 90, 39, 0.35);
    --soft-primary: rgba(45, 90, 39, 0.10);
    --soft-accent: rgba(124, 58, 237, 0.15);

    /* Shadows / glows */
    --shadow-elev: 0 6px 22px rgba(30, 41, 59, 0.14);
    --shadow-elev-2: 0 14px 55px rgba(30, 41, 59, 0.22);

    --glow-primary: rgba(45, 90, 39, 0.45);
    --glow-secondary: rgba(124, 58, 237, 0.45);

    /* Controls */
    --input-bg: #f1f5f9;
    --input-border: #cbd5e1;

    /* Gradient */
    --grad-lotto: linear-gradient(135deg, var(--lotto-primary) 0%, var(--lotto-accent) 100%);
    --grad-lotto-hover: linear-gradient(135deg, #1e3a1e 0%, #581c87 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-main);
    background: var(--bg-page);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Age Verification */
.age-verification-overlay {
    display: flex;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(51, 65, 85, 0.94);
    backdrop-filter: blur(14px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.4s ease;
}

.age-verification-overlay.hidden {
    display: none;
}

.age-verification-dialog {
    background: var(--bg-card);
    padding: 54px 46px;
    border-radius: 26px;
    text-align: center;
    max-width: 540px;
    width: 90%;
    box-shadow: var(--shadow-elev-2), 0 0 58px var(--glow-primary), 0 0 48px var(--glow-secondary);
    animation: slideIn 0.4s ease;
    border: 1px solid var(--border-strong);
}

.age-verification-icon {
    width: 92px;
    height: 92px;
    background: var(--grad-lotto);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 34px;
    margin: 0 auto 26px;
    box-shadow: 0 0 34px var(--glow-primary), 0 0 68px var(--glow-secondary);
}

.age-verification-dialog h2 {
    margin: 0 0 19px 0;
    color: var(--text-main);
    font-size: 31px;
    font-weight: 800;
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.4px;
}

.age-verification-dialog > p {
    margin: 0 0 34px 0;
    color: var(--text-muted);
    font-size: 17px;
}

.age-verification-buttons {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-age-confirm {
    background: var(--grad-lotto);
    color: #fff;
    border: none;
    padding: 18px 46px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 27px var(--glow-primary), 0 6px 19px rgba(51, 65, 85, 0.22);
}

.btn-age-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 38px var(--glow-primary), 0 0 58px var(--glow-secondary), 0 10px 28px rgba(51, 65, 85, 0.26);
    background: var(--grad-lotto-hover);
}

.btn-age-decline {
    background: #f9fafb;
    color: var(--text-muted);
    border: 1px solid #d1d5db;
    padding: 18px 46px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-age-decline:hover {
    background: #f3f4f6;
    color: var(--text-soft);
    border-color: #9ca3af;
}

.age-verification-notice {
    margin-top: 24px;
    font-size: 14px;
    color: #9ca3af;
    font-style: italic;
}

/* Main Container */
.site-container {
    max-width: 1380px;
    margin: 0 auto;
    padding: 22px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-container[style*="display: none"] {
    display: none !important;
}

.site-container[style*="display: flex"] {
    display: flex !important;
}

/* Site Header */
.site-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 29px 39px;
    margin-bottom: 34px;
    background: var(--bg-card);
    border-radius: 19px;
    box-shadow: var(--shadow-elev), 0 0 47px rgba(45, 90, 39, 0.14);
    flex-wrap: wrap;
    gap: 24px;
    border: 1px solid var(--border-soft);
}

.organization-brand {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 215px;
}

.organization-title {
    font-family: 'Playfair Display', serif;
    font-size: 31px;
    color: var(--lotto-primary);
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.4px;
}

.organization-logo {
    max-height: 88px;
    max-width: 330px;
    object-fit: contain;
}

.organization-fallback h1 {
    font-size: 27px;
    color: #ffffff;
    font-weight: 700;
    margin: 0;
}

.charity-purpose {
    flex: 1;
    text-align: center;
    min-width: 215px;
}

.charity-purpose p {
    margin: 0;
    font-size: 18px;
    color: var(--text-muted);
    font-weight: 600;
}

.eligibility-badge {
    background: var(--grad-lotto);
    color: #fff;
    border-radius: 50%;
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 22px;
    box-shadow: 0 0 24px var(--glow-primary), 0 3px 14px rgba(51, 65, 85, 0.24);
    flex-shrink: 0;
}

/* Primary Content */
.main-content-area {
    flex: 1;
    background: var(--bg-card);
    border-radius: 19px;
    padding: 49px;
    box-shadow: var(--shadow-elev), 0 0 47px rgba(45, 90, 39, 0.14);
    margin-bottom: 34px;
    border: 1px solid var(--border-soft);
}

.content-wrapper {
    max-width: 1270px;
    margin: 0 auto;
}

/* Featured Section */
.featured-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 68px;
    align-items: center;
    margin-bottom: 87px;
    padding: 47px 0;
}

.featured-visual-container {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 68px rgba(51, 65, 85, 0.32), 0 0 78px rgba(124, 58, 237, 0.26);
}

.featured-visual {
    width: 100%;
    height: 100%;
    min-height: 428px;
    object-fit: cover;
    display: block;
    border-radius: 24px;
    border: 1px solid rgba(124, 58, 237, 0.40);
    transition: transform 0.5s ease;
}

.featured-visual:hover {
    transform: scale(1.03);
}

.featured-text-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-title {
    font-family: 'Playfair Display', serif;
    font-size: 61px;
    color: var(--lotto-primary);
    margin: 0 0 24px 0;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1.2px;
}

.featured-subtitle {
    font-size: 24px;
    color: var(--text-muted);
    margin: 0;
    font-weight: 400;
    line-height: 1.6;
}

/* Description Section */
.program-description {
    margin-bottom: 62px;
}

.program-details {
    font-size: 20px;
    line-height: 1.9;
    color: var(--text-soft);
    font-weight: 400;
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
}

.program-details p {
    margin-bottom: 22px;
}

.program-details p:last-child {
    margin-bottom: 0;
}

/* Information Panels */
.program-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 34px;
    margin-bottom: 67px;
}

.program-feature {
    background: var(--soft-primary);
    padding: 39px;
    border-radius: 19px;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-elev), 0 0 34px rgba(45, 90, 39, 0.14);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.program-feature:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 45px rgba(51, 65, 85, 0.22), 0 0 68px rgba(124, 58, 237, 0.22);
    border-color: var(--border-strong);
}

.program-feature-icon {
    font-size: 52px;
    line-height: 1;
    margin-bottom: 14px;
    filter: drop-shadow(0 0 14px rgba(124, 58, 237, 0.30));
}

.program-feature-content {
    flex: 1;
}

.program-feature-title {
    margin: 0 0 18px 0;
    color: var(--lotto-primary);
    font-size: 27px;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.program-feature-text {
    margin: 0 0 16px 0;
    color: var(--text-main);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.6;
}

.program-feature-note {
    margin: 18px 0 0 0;
    color: var(--text-muted);
    font-size: 16px;
    font-style: italic;
    line-height: 1.6;
}

.licensing-feature {
    background: var(--soft-primary);
    border-color: var(--border-soft);
}

.participation-feature {
    background: var(--soft-accent);
    border-color: rgba(124, 58, 237, 0.32);
}

.participation-feature:hover {
    box-shadow: 0 14px 43px rgba(30, 41, 59, 0.20), 0 0 62px rgba(124, 58, 237, 0.24);
    border-color: rgba(124, 58, 237, 0.42);
}

/* Call to Action */
.participation-cta {
    text-align: center;
    margin-top: 67px;
    padding: 47px 0;
}

.btn-participate {
    background: var(--grad-lotto);
    color: #fff;
    border: none;
    padding: 24px 62px;
    font-size: 22px;
    font-weight: 700;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px var(--glow-primary), 0 0 52px var(--glow-secondary), 0 9px 29px rgba(51, 65, 85, 0.24);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.btn-participate:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 38px var(--glow-primary), 0 0 66px var(--glow-secondary), 0 13px 38px rgba(51, 65, 85, 0.28);
    background: var(--grad-lotto-hover);
}

.btn-participate:active {
    transform: translateY(0);
}

/* Footer */
.site-footer {
    background: var(--bg-card);
    color: var(--text-main);
    padding: 37px;
    border-radius: 17px;
    text-align: center;
    box-shadow: var(--shadow-elev), 0 0 42px rgba(45, 90, 39, 0.12);
    border: 1px solid var(--border-soft);
}

.footer-navigation {
    margin-bottom: 22px;
}

.footer-license {
    margin: 17px 0;
    padding: 17px;
    background: rgba(45, 90, 39, 0.10);
    border-radius: 9px;
    font-size: 17px;
    border: 1px solid var(--border-soft);
}

.footer-license p {
    margin: 0;
    color: var(--text-soft);
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 17px;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--lotto-primary);
}

.footer-separator {
    margin: 0 17px;
    color: #cbd5e1;
}

.copyright-notice {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid rgba(45, 90, 39, 0.20);
    font-size: 15px;
    color: var(--text-muted);
}

/* Modal */
.participation-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 41, 59, 0.88);
    backdrop-filter: blur(11px);
    animation: fadeIn 0.4s ease;
}

.participation-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.participation-modal-content {
    background-color: var(--bg-card);
    margin: auto;
    padding: 37px;
    border-radius: 21px;
    width: 90%;
    max-width: 620px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-elev-2), 0 0 62px rgba(124, 58, 237, 0.20);
    animation: slideIn 0.4s ease;
    position: relative;
    border: 1px solid rgba(124, 58, 237, 0.30);
}

.confirmation-content {
    text-align: center;
    padding: 52px 32px;
}

.confirmation-icon {
    width: 82px;
    height: 82px;
    background: var(--grad-lotto);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    margin: 0 auto 22px;
    font-weight: 800;
    box-shadow: 0 0 32px var(--glow-primary), 0 0 52px var(--glow-secondary);
}

.modal-close {
    color: var(--text-muted);
    float: right;
    font-size: 29px;
    font-weight: 700;
    cursor: pointer;
    position: absolute;
    top: 17px;
    right: 22px;
    transition: all 0.3s ease;
}

.modal-close:hover,
.modal-close:focus {
    color: var(--lotto-primary);
}

.participation-modal-content h2 {
    margin-bottom: 27px;
    color: var(--lotto-primary);
    font-size: 29px;
    font-weight: 800;
    font-family: 'Playfair Display', serif;
}

.modal-description {
    text-align: left;
    line-height: 1.8;
    color: var(--text-soft);
}

.modal-description h3 {
    margin-top: 27px;
    margin-bottom: 12px;
    color: var(--lotto-primary);
    font-size: 21px;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.modal-description ul {
    margin-left: 22px;
    margin-bottom: 17px;
}

.modal-description li {
    margin-bottom: 9px;
}

/* Form Styles */
.participation-form {
    margin-top: 22px;
}

.form-field {
    margin-bottom: 22px;
}

.form-field label {
    display: block;
    margin-bottom: 9px;
    color: var(--text-main);
    font-weight: 600;
    font-size: 15px;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="number"] {
    width: 100%;
    padding: 13px;
    border: 1px solid var(--input-border);
    border-radius: 11px;
    font-size: 16px;
    background: var(--input-bg);
    color: var(--text-main);
    transition: all 0.3s ease;
}

.form-field input::placeholder {
    color: #94a3b8;
}

.form-field input:focus {
    outline: none;
    border-color: rgba(45, 90, 39, 0.58);
    box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.20), 0 0 22px rgba(124, 58, 237, 0.14);
    background: #ffffff;
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
}

.consent-checkbox {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: normal;
    color: var(--text-soft);
}

.consent-checkbox input[type="checkbox"] {
    margin-right: 11px;
    margin-top: 3px;
    width: 19px;
    height: 19px;
    cursor: pointer;
    accent-color: var(--lotto-primary);
}

.form-controls {
    display: flex;
    gap: 17px;
    margin-top: 32px;
}

.btn-submit-form {
    flex: 1;
    background: var(--grad-lotto);
    color: #fff;
    border: none;
    padding: 16px;
    font-size: 19px;
    font-weight: 700;
    border-radius: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 24px var(--glow-primary), 0 0 44px rgba(124, 58, 237, 0.24), 0 7px 19px rgba(30, 41, 59, 0.20);
}

.btn-submit-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 32px var(--glow-primary), 0 0 56px rgba(124, 58, 237, 0.30), 0 11px 25px rgba(30, 41, 59, 0.24);
    background: var(--grad-lotto-hover);
}

.btn-cancel-form {
    flex: 1;
    background: #f8fafc;
    color: var(--text-muted);
    border: 1px solid var(--input-border);
    padding: 16px;
    font-size: 19px;
    font-weight: 700;
    border-radius: 11px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel-form:hover {
    background: #eef2f7;
    color: var(--text-soft);
    border-color: #cbd5e1;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-52px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.08);
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .featured-display {
        grid-template-columns: 1fr;
        gap: 42px;
        margin-bottom: 62px;
    }

    .featured-visual {
        min-height: 308px;
    }

    .featured-title {
        font-size: 44px;
    }

    .featured-subtitle {
        font-size: 19px;
    }

    .program-features {
        grid-template-columns: 1fr;
        gap: 26px;
    }
}

@media (max-width: 768px) {
    .site-container {
        padding: 12px;
    }

    .site-navigation {
        flex-direction: column;
        gap: 16px;
        padding: 22px;
        text-align: center;
    }

    .organization-brand {
        justify-content: center;
    }

    .organization-title {
        font-size: 23px;
        text-align: center;
    }

    .charity-purpose {
        order: 2;
    }

    .eligibility-badge {
        order: 3;
    }

    .main-content-area {
        padding: 27px 22px;
    }

    .featured-display {
        margin-bottom: 52px;
        padding: 22px 0;
    }

    .featured-title {
        font-size: 37px;
    }

    .featured-subtitle {
        font-size: 17px;
    }

    .featured-visual {
        min-height: 256px;
    }

    .program-description {
        margin-bottom: 44px;
    }

    .program-details {
        font-size: 17px;
        text-align: left;
    }

    .program-features {
        margin-bottom: 44px;
    }

    .program-feature {
        padding: 27px;
    }

    .program-feature-title {
        font-size: 21px;
    }

    .program-feature-text {
        font-size: 16px;
    }

    .participation-cta {
        margin-top: 44px;
        padding: 32px 0;
    }

    .btn-participate {
        padding: 19px 42px;
        font-size: 17px;
    }

    .participation-modal-content {
        width: 95%;
        padding: 22px;
    }

    .form-controls {
        flex-direction: column;
    }

    .footer-navigation {
        display: flex;
        flex-direction: column;
        gap: 11px;
    }

    .footer-separator {
        display: none;
    }
}

@media (max-width: 480px) {
    .featured-title {
        font-size: 29px;
    }

    .featured-subtitle {
        font-size: 16px;
    }

    .featured-visual {
        min-height: 206px;
    }

    .program-details {
        font-size: 16px;
    }

    .program-feature {
        padding: 22px;
    }

    .program-feature-icon {
        font-size: 38px;
    }

    .program-feature-title {
        font-size: 19px;
    }

    .eligibility-badge {
        width: 52px;
        height: 52px;
        font-size: 19px;
    }

    .organization-title {
        font-size: 21px;
    }

    .organization-fallback h1 {
        font-size: 25px;
    }
}
