/* ================================
   Alberta Children's Hospital Lottery — Healthcare Theme
   Palette: Navy Blue + Teal + Warm Gray
   ================================ */

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

/* ---- Theme Tokens ---- */
:root {
    /* Brand */
    --healthcare-primary: #1e3a8a;      /* navy blue */
    --healthcare-secondary: #0d9488;    /* teal */
    --healthcare-accent: #3b82f6;       /* soft blue */
    --healthcare-neutral: #374151;      /* warm gray */

    /* Text */
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;

    /* Surfaces */
    --bg-surface: #f9fafb;
    --bg-element: #ffffff;

    /* Borders & subtle fills */
    --border-light: rgba(30, 58, 138, 0.18);
    --border-medium: rgba(30, 58, 138, 0.28);
    --fill-primary: rgba(30, 58, 138, 0.08);
    --fill-accent: rgba(59, 130, 246, 0.12);

    /* Shadows / glows */
    --shadow-subtle: 0 4px 16px rgba(31, 41, 55, 0.12);
    --shadow-elevated: 0 10px 40px rgba(31, 41, 55, 0.18);

    --glow-primary: rgba(30, 58, 138, 0.38);
    --glow-accent: rgba(59, 130, 246, 0.38);

    /* Controls */
    --input-bg: #f3f4f6;
    --input-border: #d1d5db;

    /* Gradient */
    --grad-healthcare: linear-gradient(135deg, var(--healthcare-primary) 0%, var(--healthcare-accent) 100%);
    --grad-healthcare-hover: linear-gradient(135deg, #1e2937 0%, #1d4ed8 100%);
}

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

/* Age Verification */
.healthcare-age-gate {
    display: flex;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(55, 65, 81, 0.92);
    backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.4s ease;
}

.healthcare-age-gate.hidden {
    display: none;
}

.healthcare-age-dialog {
    background: var(--bg-element);
    padding: 52px 44px;
    border-radius: 24px;
    text-align: center;
    max-width: 520px;
    width: 90%;
    box-shadow: var(--shadow-elevated), 0 0 52px var(--glow-primary), 0 0 42px var(--glow-accent);
    animation: slideIn 0.4s ease;
    border: 1px solid var(--border-medium);
}

.healthcare-age-indicator {
    width: 88px;
    height: 88px;
    background: var(--grad-healthcare);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 32px;
    margin: 0 auto 24px;
    box-shadow: 0 0 28px var(--glow-primary), 0 0 56px var(--glow-accent);
}

.healthcare-age-dialog h2 {
    margin: 0 0 18px 0;
    color: var(--text-primary);
    font-size: 29px;
    font-weight: 800;
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.3px;
}

.healthcare-age-dialog > p {
    margin: 0 0 32px 0;
    color: var(--text-muted);
    font-size: 16px;
}

.healthcare-age-controls {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.healthcare-btn-confirm {
    background: var(--grad-healthcare);
    color: #fff;
    border: none;
    padding: 16px 44px;
    font-size: 17px;
    font-weight: 700;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 22px var(--glow-primary), 0 5px 16px rgba(55, 65, 81, 0.20);
}

.healthcare-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 32px var(--glow-primary), 0 0 48px var(--glow-accent), 0 8px 24px rgba(55, 65, 81, 0.24);
    background: var(--grad-healthcare-hover);
}

.healthcare-btn-decline {
    background: #fafbfc;
    color: var(--text-muted);
    border: 1px solid #d4d7db;
    padding: 16px 44px;
    font-size: 17px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.healthcare-btn-decline:hover {
    background: #f4f5f7;
    color: var(--text-secondary);
    border-color: #9fa4aa;
}

.healthcare-age-reminder {
    margin-top: 22px;
    font-size: 13px;
    color: #9ca3af;
    font-style: italic;
}

/* Main Container */
.healthcare-main-wrapper {
    max-width: 1340px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.healthcare-main-wrapper[style*="display: none"] {
    display: none !important;
}

.healthcare-main-wrapper[style*="display: flex"] {
    display: flex !important;
}

/* Site Header */
.healthcare-header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 27px 37px;
    margin-bottom: 32px;
    background: var(--bg-element);
    border-radius: 17px;
    box-shadow: var(--shadow-subtle), 0 0 40px rgba(30, 58, 138, 0.12);
    flex-wrap: wrap;
    gap: 22px;
    border: 1px solid var(--border-light);
}

.healthcare-brand-section {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 210px;
}

.healthcare-brand-title {
    font-family: 'Playfair Display', serif;
    font-size: 29px;
    color: var(--healthcare-primary);
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.healthcare-brand-logo {
    max-height: 82px;
    max-width: 320px;
    object-fit: contain;
}

.healthcare-brand-alt h1 {
    font-size: 25px;
    color: #ffffff;
    font-weight: 700;
    margin: 0;
}

.healthcare-mission-statement {
    flex: 1;
    text-align: center;
    min-width: 210px;
}

.healthcare-mission-statement p {
    margin: 0;
    font-size: 17px;
    color: var(--text-muted);
    font-weight: 600;
}

.healthcare-age-indicator {
    background: var(--grad-healthcare);
    color: #fff;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    box-shadow: 0 0 20px var(--glow-primary), 0 3px 12px rgba(55, 65, 81, 0.22);
    flex-shrink: 0;
}

/* Primary Content */
.healthcare-content-section {
    flex: 1;
    background: var(--bg-element);
    border-radius: 17px;
    padding: 47px;
    box-shadow: var(--shadow-subtle), 0 0 40px rgba(30, 58, 138, 0.12);
    margin-bottom: 32px;
    border: 1px solid var(--border-light);
}

.healthcare-content-container {
    max-width: 1240px;
    margin: 0 auto;
}

/* Featured Section */
.healthcare-hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 80px;
    padding: 44px 0;
}

.healthcare-hero-image-wrapper {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 16px 56px rgba(55, 65, 81, 0.28), 0 0 68px rgba(59, 130, 246, 0.22);
}

.healthcare-hero-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    display: block;
    border-radius: 22px;
    border: 1px solid rgba(59, 130, 246, 0.35);
    transition: transform 0.5s ease;
}

.healthcare-hero-image:hover {
    transform: scale(1.03);
}

.healthcare-hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.healthcare-hero-heading {
    font-family: 'Playfair Display', serif;
    font-size: 58px;
    color: var(--healthcare-primary);
    margin: 0 0 22px 0;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1.1px;
}

.healthcare-hero-description {
    font-size: 22px;
    color: var(--text-muted);
    margin: 0;
    font-weight: 400;
    line-height: 1.6;
}

/* Description Section */
.healthcare-description-section {
    margin-bottom: 58px;
}

.healthcare-description-content {
    font-size: 19px;
    line-height: 1.8;
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
}

.healthcare-description-content p {
    margin-bottom: 20px;
}

.healthcare-description-content p:last-child {
    margin-bottom: 0;
}

/* Information Panels */
.healthcare-info-panels {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 64px;
}

.healthcare-info-panel {
    background: var(--fill-primary);
    padding: 37px;
    border-radius: 17px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-subtle), 0 0 28px rgba(30, 58, 138, 0.12);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.healthcare-info-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 38px rgba(55, 65, 81, 0.20), 0 0 56px rgba(59, 130, 246, 0.18);
    border-color: var(--border-medium);
}

.healthcare-info-icon {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.28));
}

.healthcare-info-content {
    flex: 1;
}

.healthcare-info-title {
    margin: 0 0 16px 0;
    color: var(--healthcare-primary);
    font-size: 25px;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.healthcare-info-text {
    margin: 0 0 14px 0;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.6;
}

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

.healthcare-regulation-panel {
    background: var(--fill-primary);
    border-color: var(--border-light);
}

.healthcare-participation-panel {
    background: var(--fill-accent);
    border-color: rgba(59, 130, 246, 0.28);
}

.healthcare-participation-panel:hover {
    box-shadow: 0 12px 36px rgba(31, 41, 55, 0.18), 0 0 52px rgba(59, 130, 246, 0.20);
    border-color: rgba(59, 130, 246, 0.36);
}

/* Call to Action */
.healthcare-cta-section {
    text-align: center;
    margin-top: 64px;
    padding: 44px 0;
}

.healthcare-btn-primary {
    background: var(--grad-healthcare);
    color: #fff;
    border: none;
    padding: 22px 58px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 26px var(--glow-primary), 0 0 44px var(--glow-accent), 0 8px 26px rgba(55, 65, 81, 0.22);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.healthcare-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 32px var(--glow-primary), 0 0 54px var(--glow-accent), 0 11px 32px rgba(55, 65, 81, 0.26);
    background: var(--grad-healthcare-hover);
}

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

/* Footer */
.healthcare-footer {
    background: var(--bg-element);
    color: var(--text-primary);
    padding: 35px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-subtle), 0 0 36px rgba(30, 58, 138, 0.10);
    border: 1px solid var(--border-light);
}

.healthcare-footer-nav {
    margin-bottom: 20px;
}

.healthcare-footer-license {
    margin: 15px 0;
    padding: 15px;
    background: rgba(30, 58, 138, 0.08);
    border-radius: 8px;
    font-size: 16px;
    border: 1px solid var(--border-light);
}

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

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

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

.healthcare-footer-separator {
    margin: 0 15px;
    color: #d1d5db;
}

.healthcare-copyright {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(30, 58, 138, 0.18);
    font-size: 14px;
    color: var(--text-muted);
}

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

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

.healthcare-modal-content {
    background-color: var(--bg-element);
    margin: auto;
    padding: 35px;
    border-radius: 19px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-elevated), 0 0 54px rgba(59, 130, 246, 0.18);
    animation: slideIn 0.4s ease;
    position: relative;
    border: 1px solid rgba(59, 130, 246, 0.26);
}

.healthcare-confirmation-content {
    text-align: center;
    padding: 48px 30px;
}

.healthcare-confirmation-icon {
    width: 78px;
    height: 78px;
    background: var(--grad-healthcare);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 20px;
    font-weight: 800;
    box-shadow: 0 0 26px var(--glow-primary), 0 0 42px var(--glow-accent);
}

.healthcare-modal-close {
    color: var(--text-muted);
    font-size: 27px;
    font-weight: 700;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
    transition: all 0.3s ease;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

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

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

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

.healthcare-modal-description h3 {
    margin-top: 25px;
    margin-bottom: 11px;
    color: var(--healthcare-primary);
    font-size: 20px;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.healthcare-modal-description ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

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

/* Form Styles */
.healthcare-form {
    margin-top: 20px;
}

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

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

.healthcare-form-group input[type="text"],
.healthcare-form-group input[type="email"],
.healthcare-form-group input[type="tel"],
.healthcare-form-group input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--input-border);
    border-radius: 10px;
    font-size: 15px;
    background: var(--input-bg);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

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

.healthcare-form-group input:focus {
    outline: none;
    border-color: rgba(30, 58, 138, 0.52);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.18), 0 0 20px rgba(59, 130, 246, 0.12);
    background: #ffffff;
}

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

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

.healthcare-consent-checkbox input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 2px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--healthcare-primary);
}

.healthcare-form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.healthcare-btn-submit {
    flex: 1;
    background: var(--grad-healthcare);
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px var(--glow-primary), 0 0 36px rgba(59, 130, 246, 0.22), 0 6px 17px rgba(31, 41, 55, 0.18);
}

.healthcare-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 26px var(--glow-primary), 0 0 46px rgba(59, 130, 246, 0.28), 0 9px 22px rgba(31, 41, 55, 0.22);
    background: var(--grad-healthcare-hover);
}

.healthcare-btn-cancel {
    flex: 1;
    background: #f9fafb;
    color: var(--text-muted);
    border: 1px solid var(--input-border);
    padding: 15px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.healthcare-btn-cancel:hover {
    background: #f0f2f5;
    color: var(--text-secondary);
    border-color: #d1d5db;
}

/* 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) {
    .healthcare-hero-section {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 58px;
    }

    .healthcare-hero-image {
        min-height: 300px;
    }

    .healthcare-hero-heading {
        font-size: 42px;
    }

    .healthcare-hero-description {
        font-size: 18px;
    }

    .healthcare-info-panels {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .healthcare-main-wrapper {
        padding: 12px;
    }

    .healthcare-header-nav {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        text-align: center;
    }

    .healthcare-brand-section {
        justify-content: center;
    }

    .healthcare-brand-title {
        font-size: 22px;
        text-align: center;
    }

    .healthcare-mission-statement {
        order: 2;
    }

    .healthcare-age-indicator {
        order: 3;
    }

    .healthcare-content-section {
        padding: 25px 20px;
    }

    .healthcare-hero-section {
        margin-bottom: 48px;
        padding: 20px 0;
    }

    .healthcare-hero-heading {
        font-size: 35px;
    }

    .healthcare-hero-description {
        font-size: 16px;
    }

    .healthcare-hero-image {
        min-height: 240px;
    }

    .healthcare-description-section {
        margin-bottom: 40px;
    }

    .healthcare-description-content {
        font-size: 16px;
        text-align: left;
    }

    .healthcare-info-panels {
        margin-bottom: 40px;
    }

    .healthcare-info-panel {
        padding: 25px;
    }

    .healthcare-info-title {
        font-size: 20px;
    }

    .healthcare-info-text {
        font-size: 15px;
    }

    .healthcare-cta-section {
        margin-top: 40px;
        padding: 30px 0;
    }

    .healthcare-btn-primary {
        padding: 18px 40px;
        font-size: 16px;
    }

    .healthcare-modal-content {
        width: 95%;
        padding: 20px;
    }

    .healthcare-form-actions {
        flex-direction: column;
    }

    .healthcare-footer-nav {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .healthcare-footer-separator {
        display: none;
    }
}

@media (max-width: 480px) {
    .healthcare-hero-heading {
        font-size: 28px;
    }

    .healthcare-hero-description {
        font-size: 15px;
    }

    .healthcare-hero-image {
        min-height: 200px;
    }

    .healthcare-description-content {
        font-size: 15px;
    }

    .healthcare-info-panel {
        padding: 20px;
    }

    .healthcare-info-icon {
        font-size: 36px;
    }

    .healthcare-info-title {
        font-size: 18px;
    }

    .healthcare-age-indicator {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }

    .healthcare-brand-title {
        font-size: 20px;
    }

    .healthcare-brand-alt h1 {
        font-size: 24px;
    }
}
