
.health-page {
    background: var(--sand);
}

.health-header {
    position: absolute;
    inset: 0 0 auto;
    z-index: 10;
    background: transparent;
    border-top: 1px solid rgba(10, 31, 60, .14);
}

.health-header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.health-home-link,
.text-button {
    color: var(--navy);
    font: inherit;
    font-weight: 700;
}

.text-button {
    padding: 0;
    border: 0;
    background: transparent;
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
}

.health-hero {
    padding: 104px 0 42px;
    background: linear-gradient(145deg, var(--sand), var(--white) 54%, var(--mist));
    border-bottom: 1px solid var(--line);
}

.health-hero-inner {
    max-width: 860px;
}

.health-hero h1 {
    max-width: 820px;
    margin: 7px 0 16px;
    font-size: clamp(2.15rem, 4vw, 3.7rem);
    line-height: 1.02;
}

.health-lede {
    max-width: 720px;
    margin-bottom: 0;
    font-size: clamp(.96rem, 1.35vw, 1.08rem);
    line-height: 1.58;
    color: var(--muted);
}

.health-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.health-meta span {
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,255,255,.52);
    color: var(--navy);
    font-size: .78rem;
    font-weight: 700;
}

.health-workspace {
    padding: 42px 0 100px;
    background: var(--white);
}

.health-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 820px);
    gap: clamp(34px, 6vw, 84px);
    justify-content: center;
    align-items: start;
}

.health-progress-panel {
    position: sticky;
    top: 28px;
    padding: 24px 0;
}

.health-progress-panel strong {
    display: block;
    margin: 8px 0 12px;
    font-size: 1.55rem;
    color: var(--navy);
}

.health-progress-panel p:not(.section-label) {
    color: var(--muted);
    line-height: 1.55;
    font-size: .9rem;
}

.health-progress-track {
    height: 7px;
    overflow: hidden;
    margin-bottom: 18px;
    border-radius: 999px;
    background: var(--mist);
}

#progress-fill {
    width: 0;
    height: 100%;
    background: var(--teal);
    transition: width .2s ease;
}

.health-form {
    display: grid;
    gap: 44px;
}

.health-section-group {
    display: grid;
    gap: 20px;
}

.health-section-group + .health-section-group {
    margin-top: 6px;
}

.health-section-heading {
    padding: 18px 2px 2px;
}

.health-section-heading h2 {
    margin: 4px 0 8px;
    color: var(--navy);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.health-section-heading p {
    color: var(--muted);
    line-height: 1.6;
}

.health-card {
    display: block;
    grid-template-columns: none;
    gap: 0;
    align-items: initial;
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--white);
    box-shadow: 0 15px 40px rgba(10,31,60,.055);
}

.question-number {
    margin: 0 0 9px;
    color: var(--teal);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .11em;
}

.health-card h3,
.health-card h2 {
    margin: 0 0 20px;
    color: var(--navy);
}

.health-card h3 {
    font-size: clamp(1.15rem, 2vw, 1.38rem);
    line-height: 1.38;
}

.health-options {
    display: grid;
    gap: 9px;
}

.health-options.multi {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.health-option {
    position: relative;
}

.health-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.health-option span {
    display: block;
    min-height: 48px;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.health-option input:checked + span {
    border-color: var(--teal);
    background: var(--mist);
    color: var(--navy);
    font-weight: 700;
}

.health-option span:hover {
    border-color: rgba(11,125,119,.55);
    transform: translateY(-1px);
}

.health-textarea,
.identity-grid input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
}

.health-textarea {
    min-height: 126px;
    padding: 15px;
    resize: vertical;
}

.identity-card {
    margin-top: 14px;
    background: var(--mist);
}

.identity-card > p:not(.question-number) {
    color: var(--muted);
    line-height: 1.6;
}

.identity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin: 26px 0;
}

.identity-grid label span {
    display: block;
    margin-bottom: 7px;
    color: var(--navy);
    font-size: .9rem;
    font-weight: 750;
}

.identity-grid label small {
    color: var(--muted);
    font-weight: 500;
}

.identity-grid input {
    height: 48px;
    padding: 0 13px;
}

.identity-email {
    grid-column: 1 / -1;
}

.identity-email > small {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    line-height: 1.45;
}

.consent-row {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    margin: 12px 0;
    color: var(--ink);
    line-height: 1.5;
}

.consent-row input {
    margin-top: 4px;
}

.health-submit-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-top: 26px;
}

#submit-state {
    color: var(--muted);
    font-size: .9rem;
}

.honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.health-results {
    grid-column: 2;
    padding-top: 10px;
}

.health-results > h2 {
    max-width: 760px;
    margin: 8px 0 12px;
    color: var(--navy);
    font-size: clamp(2.1rem, 4vw, 3.6rem);
    line-height: 1.05;
}

.result-intro {
    color: var(--muted);
    font-size: 1.05rem;
}

.result-block {
    margin-top: 44px;
}

.result-grid {
    display: grid;
    gap: 14px;
}

.result-card {
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
}

.result-card h3 {
    margin: 0 0 8px;
    color: var(--navy);
    font-size: 1.16rem;
}

.result-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.result-question {
    margin-top: 46px;
    padding: clamp(26px, 5vw, 46px);
    border-radius: 20px;
    background: var(--navy);
    color: var(--white);
}

.result-question .question-number {
    color: var(--gold);
}

.result-question h3 {
    max-width: 720px;
    margin: 0;
    color: var(--white);
    font-size: clamp(1.65rem, 3vw, 2.55rem);
    line-height: 1.22;
}

.result-next {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 30px;
    align-items: center;
    margin-top: 22px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--mist);
}

.result-next h3 {
    margin: 4px 0 8px;
    color: var(--navy);
}

.result-next p:not(.section-label) {
    margin: 0;
    max-width: 620px;
    color: var(--muted);
    line-height: 1.6;
}

.field-error {
    outline: 2px solid #9e2f2f;
    outline-offset: 3px;
}

@media (max-width: 900px) {
    .health-layout {
        grid-template-columns: 1fr;
    }

    .health-progress-panel {
        position: static;
        padding: 0 0 10px;
    }

    .health-results {
        grid-column: 1;
    }

    .result-next {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .health-hero {
        padding: 82px 0 28px;
    }

    .health-hero h1 {
        margin-bottom: 12px;
        font-size: clamp(2rem, 9.5vw, 2.75rem);
        line-height: 1.03;
    }

    .health-lede {
        font-size: .96rem;
        line-height: 1.52;
    }

    .health-meta {
        margin-top: 16px;
        gap: 6px;
    }

    .health-meta span {
        padding: 5px 9px;
        font-size: .72rem;
    }

    .health-workspace {
        padding: 28px 0 70px;
    }

    .health-options.multi,
    .identity-grid {
        grid-template-columns: 1fr;
    }

    .identity-email {
        grid-column: auto;
    }

    .health-card {
        border-radius: 16px;
    }

    .health-header-inner {
        min-height: 64px;
    }
}


#submit-health-check:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#submit-health-check:disabled:hover {
    background: var(--navy);
    transform: none;
}


.report-delivery {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    align-items: center;
    margin-top: 24px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--mist);
}

.report-delivery p {
    margin: 0;
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.5;
}
