/*
 * Get Health Coverage Now - Main Styles
 *
 * SPEC_SITE_REVAMP.md. This file is versioned (style.YYYY-MM.css) because this host caches
 * .css for 120 days by file extension (nginx, measured 2026-09-03), so a returning visitor who
 * held the old stylesheet against new HTML would get a broken page for up to four months. The
 * name changes when the bytes change; all thirty pages link this exact file, and the checker
 * fails the build if any page links a different one. responsive.css was folded in at the end of
 * this file (§8c), so web/site/css/ now holds exactly one stylesheet.
 */

/* ===== DESIGN TOKENS ===== */
:root {
    /* One four-step type scale (§5): the site had eight ad-hoc sizes across two stylesheets
       (2rem, 1.8rem, 1.75rem, 1.5rem, 1.2rem, 1rem, 0.9rem, 0.8rem). Collapsed to four steps
       plus a 17px body. h1 is the page subject, h2 a section heading, h3 a subhead, .small the
       fine print. */
    --fs-h1: 1.9rem;
    --fs-h2: 1.45rem;
    --fs-h3: 1.2rem;
    --fs-small: 0.9rem;

    /* Prose measure. Line length was the bigger of the two type defects (§5): .container is
       1200px with no cap on the text, so a paragraph ran past 150 characters, roughly twice what
       Baymard measured. 68ch is inside the 50-75 band and under the WCAG 1.4.8 ceiling of 80. */
    --measure: 68ch;

    --blue: #0052D4;
    --blue-dark: #003da0;
    --form-blue: #005BFF;
    /* Decorative accent green, used for bullet markers only — never behind text. */
    --accent-green: #00C853;
    /* The call-to-action band carries WHITE TEXT, so its green has to clear WCAG AA 4.5:1 with
       white. The original #00C853 was 2.23:1 — a real contrast failure on the primary CTA on all
       thirty pages (§9 correction). This green is 5.2:1 with white. */
    --cta-green: #0a7d3f;
    --text: #333;
    /* Footer copyright: white at opacity 0.7 over the blue footer was 4.03:1, under AA (§9). This
       light blue is 5.3:1 over #0052D4 at full opacity. */
    --footer-muted: #dce6fb;
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 17px;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background-color: #fff;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* The measure cap on running prose. Applied to the readable content inside <main> and to the
   .prose utility, but not to the header, the footer, the nav or the compliance fine print, which
   are not paragraphs a person reads line after line. Headings may run wider. */
.prose,
main p,
main li,
.contact-info p {
    max-width: 68ch;
}

/* ===== SKIP LINK ===== */
/* First focusable element in the body, off-screen until focused (§7). */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 1000;
    background-color: var(--blue);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    left: 0;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.25;
}

h1 {
    font-size: var(--fs-h1);
}

h2 {
    font-size: var(--fs-h2);
}

h3 {
    font-size: var(--fs-h3);
}

p {
    margin-bottom: 1rem;
}

.required {
    color: #c62828;
}

/* ===== HEADER & NAVIGATION ===== */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
    padding: 0.5rem 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}

header a {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

/* The logo is a link now, not an <h1>: the page's <h1> names the page, not the site (§7). */
.logo {
    color: var(--blue);
    font-weight: bold;
    margin-bottom: 0;
    font-size: 1.5rem;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    display: none;
    padding: 0.3rem;
    line-height: 0;
}

/* The hamburger is an inline SVG now, not a Font Awesome glyph (§10). */
.menu-toggle svg {
    width: 1.6rem;
    height: 1.6rem;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.main-nav ul {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.main-nav li {
    margin-left: 1rem;
    list-style: none;
    white-space: nowrap;
}

.main-nav a {
    color: var(--text);
    font-weight: 500;
    transition: all 0.3s;
    text-decoration: none;
    padding: 0.25rem 0;
    position: relative;
    font-size: var(--fs-small);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--blue);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--blue);
}

.main-nav a.nav-button {
    background-color: var(--blue);
    color: white;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s;
    display: inline-block;
    font-size: var(--fs-small);
}

.main-nav a.nav-button:hover {
    background-color: var(--blue-dark);
    color: white;
}

.main-nav a.nav-button.active::after {
    display: none;
}

/* ===== FORM SECTION ===== */
.form-section {
    background-color: var(--form-blue);
    padding: 3rem 0;
}

.form-container {
    background-color: var(--form-blue);
    border-radius: 8px;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* JotForm Customization */
.form-container iframe {
    width: 100%;
    min-height: 300px;
    border: none;
}

/* ===== BENEFITS SECTION ===== */
.benefits-section {
    background-color: var(--form-blue);
    color: white;
    padding: 3rem 0;
}

.benefits-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.health-coverage-image {
    flex: 0 0 359px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.health-coverage-image img {
    max-width: 100%;
    height: auto;
    display: block;
    width: 359px;
}

.benefits-list {
    flex: 1;
}

.benefits-list ul li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.benefits-list ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-size: 1.5rem;
}

/* ===== INSTRUCTIONS SECTION ===== */
.instructions-section {
    background-color: white;
    padding: 3rem 0;
}

.instructions-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text);
}

.instructions-section ul {
    max-width: 600px;
    margin: 0 auto;
}

.instructions-section ul li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.instructions-section ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--blue);
    font-size: 1.5rem;
}

/* ===== CONTACT SECTION ===== */
/* The call-to-action band. White text on a green that clears WCAG AA — see --cta-green. */
.contact-section {
    background-color: var(--cta-green);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.contact-section p {
    margin-bottom: 0.5rem;
}

.email {
    font-size: 1.2rem;
}

.call-to-action {
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    margin: 1rem 0;
}

/* The band at the foot of every page. It used to be a phone CTA ("CALL TO SPEAK TO A LIVE
   AGENT NOW!" over the number); it is now a link to the lead form, because the form is the
   conversion path and everything downstream of it is automated. Renamed from .phone-number
   on 2026-09-02 — a class called .phone-number wrapped round a form link is a lie the next
   person has to read past. */
.section-cta {
    font-size: 1.8rem;
    font-weight: bold;
}

.contact-section .section-cta a {
    color: white;
    text-decoration: underline;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--blue);
    color: white;
    padding: 2rem 0;
}

.social-links {
    text-align: center;
    margin-bottom: 1.5rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #4267B2;
    border-radius: 50%;
    color: white;
    margin: 0 0.5rem;
    transition: opacity 0.3s;
}

.social-links a:hover {
    opacity: 0.8;
}

/* The Facebook mark is an inline SVG now, not a Font Awesome glyph (§10). */
.social-links a svg {
    width: 1.2rem;
    height: 1.2rem;
    fill: currentColor;
    display: block;
}

/* ===== PAGE HEADER ===== */
.page-header {
    background-color: var(--blue);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

/* The page subject is an <h1> now (§7), promoted from the <h2> that used to sit here. */
.page-header h1 {
    margin-bottom: 0;
    font-size: 2.2rem;
}

/* ===== ABOUT PAGE ===== */
.about-content {
    padding: 3rem 0;
}

.about-intro, .about-mission, .about-values, .about-team, .about-why-choose {
    margin-bottom: 2.5rem;
}

.about-content h3 {
    color: var(--blue);
    margin-bottom: 1rem;
    font-size: var(--fs-h3);
}

.about-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.about-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.about-content ul li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

/* ===== SERVICES PAGE ===== */
.services-content {
    padding: 3rem 0;
}

.service-item {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.service-item:last-child {
    border-bottom: none;
}

.service-item h3 {
    color: var(--blue);
    margin-bottom: 1rem;
    font-size: var(--fs-h3);
}

.service-item p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.service-features {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.service-features li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

/* ===== CONTACT PAGE ===== */
.contact-content {
    padding: 3rem 0;
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-info h3 {
    color: var(--blue);
    margin-bottom: 1rem;
    font-size: var(--fs-h3);
}

.contact-info p {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

/* The phone / envelope / clock icons are inline SVG now, not a Font Awesome glyph (§10). */
.contact-info-item svg {
    width: 1.2rem;
    height: 1.2rem;
    flex: 0 0 auto;
    color: var(--blue);
    fill: currentColor;
    margin-right: 0.75rem;
    margin-top: 0.25rem;
}

.contact-form {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
}

.contact-form h3 {
    color: var(--blue);
    margin-bottom: 1.5rem;
    font-size: var(--fs-h3);
    text-align: center;
}

.form-row {
    margin-bottom: 1.5rem;
}

.form-row label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Inputs never below 16px: below it iOS zooms the viewport on focus, which reads as the form
   breaking mid-entry (§5). 1rem is 17px here. */
.form-row input,
.form-row textarea,
.form-row select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-row textarea {
    min-height: 150px;
    resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 2px rgba(0, 82, 212, 0.2);
}

/* Honeypot (anti-spam). Off-screen, NOT display:none: a bot that ignores CSS still sees a
   real, fillable field named "website", and lead.php treats any value in it as a bot and
   forwards nothing. Left in the layout (moved off-canvas) so headless bots that only skip
   painting still fill it. Every lead.php form on the site carries a .hp-field. */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-submit {
    text-align: center;
}

.form-submit button {
    background-color: var(--blue);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.form-submit button:hover {
    background-color: var(--blue-dark);
}

/* While FORM_ENDPOINT is empty every guarded form ships its submit button `disabled`, and
   js/script.js enables it. So this state is what a visitor sees only when the script did not
   run — no JavaScript, or a script that failed to load. It must not look clickable, because the
   <noscript> note beside it is the real answer and a button that looks live pulls attention off
   it. `disabled` is doing the load-bearing work here, not the styling: it is what stops Enter
   in a text field firing an implicit submit into nowhere. See js/site-config.js. */
.form-submit button:disabled,
.form-submit button:disabled:hover {
    background-color: #6b7280;
    color: #f2f4f8;
    cursor: not-allowed;
}

/* ===== TWO-STEP LEAD FORM ===== */
/* The lead form is one <form> with two visual steps (§3). With JavaScript off, both steps
   render and one submit posts all seven fields. With JavaScript on, script.js hides step two
   until step one has posted a complete, routable lead, so an abandon after step one costs
   nothing. These rules only take effect once the script has marked the form up. */
.lead-form[data-two-step] .form-step[data-step="2"][hidden] {
    display: none;
}

.form-step-note {
    margin: 0 0 1.5rem;
    padding: 0.85rem 1rem;
    border-left: 4px solid var(--cta-green);
    background-color: #eaf7ef;
    color: #14532d;
    line-height: 1.6;
}

/* ===== FAQ PAGE ===== */
.faq-content {
    padding: 3rem 0;
}

.faq-item {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-weight: bold;
    color: var(--blue);
    margin-bottom: 0.75rem;
    font-size: var(--fs-h3);
}

.faq-answer {
    line-height: 1.7;
}

/* ===== LEGAL PAGES (Disclaimer, Terms, Privacy) ===== */
.legal-content {
    padding: 3rem 0;
}

.legal-content h3 {
    color: var(--blue);
    margin: 2rem 0 1rem;
    font-size: var(--fs-h3);
}

.legal-content h4 {
    color: var(--text);
    margin: 1.5rem 0 1rem;
    font-size: 1.05rem;
}

.legal-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.legal-content ul,
.legal-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.legal-content ul li,
.legal-content ol li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.legal-content ul {
    list-style-type: disc;
}

.legal-content ol {
    list-style-type: decimal;
}

.legal-content a {
    color: var(--blue);
    text-decoration: underline;
}

.legal-content a:hover {
    text-decoration: none;
}

.legal-content .last-updated {
    font-style: italic;
    margin-top: 2rem;
    color: #666;
}

/* ===== SECURE FILE UPLOAD PAGE ===== */
.upload-content {
    padding: 3rem 0;
}

.upload-instructions {
    margin-bottom: 2rem;
}

.upload-instructions h3 {
    color: var(--blue);
    margin-bottom: 1rem;
    font-size: var(--fs-h3);
}

.upload-instructions p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.upload-instructions ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.upload-instructions ul li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.file-upload-container {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.file-upload-container h3 {
    color: var(--blue);
    margin-bottom: 1.5rem;
    font-size: var(--fs-h3);
}

.file-upload-area {
    border: 2px dashed #ccc;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.3s;
}

.file-upload-area:hover {
    border-color: var(--blue);
}

/* The upload icon is an inline SVG now, not a Font Awesome glyph (§10). */
.file-upload-area svg {
    width: 3rem;
    height: 3rem;
    color: var(--blue);
    fill: currentColor;
    margin-bottom: 1rem;
}

.file-upload-area p {
    margin-bottom: 0.5rem;
}

.file-upload-area .small {
    font-size: var(--fs-small);
    color: #666;
}

.file-upload-button {
    background-color: var(--blue);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.file-upload-button:hover {
    background-color: var(--blue-dark);
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: white;
    margin: 0 1rem 0.5rem;
    font-size: var(--fs-small);
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 0.8;
}

.copyright {
    text-align: center;
    font-size: var(--fs-small);
    color: var(--footer-muted);
}

/* ===== HOME INTRO / AGENT BIO ===== */
.intro-section {
    padding: 3rem 0;
}

.intro-section h1 {
    color: var(--blue);
}

.intro-section p,
.agent-bio p {
    line-height: 1.7;
}

.agent-bio {
    padding: 3rem 0;
    background-color: #f6f8fb;
}

.agent-bio h2 {
    color: var(--blue);
}

.agent-bio h3 {
    font-size: var(--fs-h3);
    margin-bottom: 0.5rem;
}

.agent-bio dl {
    margin: 0 0 1rem;
}

.agent-bio dt {
    font-weight: bold;
    margin-top: 0.75rem;
}

.agent-bio dd {
    margin: 0 0 0.25rem;
}

/* ===== SHARED LEAD FORM ===== */
.lead-section {
    padding: 3rem 0;
    background-color: #f6f8fb;
    border-top: 1px solid #e2e8f0;
}

.lead-section h2 {
    color: var(--blue);
}

.lead-form {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 2rem;
    max-width: 640px;
}

/* Consent is an affirmative act. The box and its wording sit together so the wording cannot
   drift away from the thing being ticked. */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    min-width: 1.25rem;
    margin-top: 0.25rem;
}

.checkbox-group label {
    font-weight: normal;
    line-height: 1.6;
}

/* The honest answer when a form cannot send. Announced, not just coloured — DESIGN.md §4
   says never convey anything by colour alone, and this is the one message on the page that
   somebody has to actually read. */
.form-status {
    margin: 1rem 0 0;
    padding: 0.85rem 1rem;
    border-left: 4px solid #8a6d00;
    background-color: #fdf6e3;
    color: #4a3b00;
    line-height: 1.6;
}

.form-status:focus {
    outline: 3px solid var(--blue);
    outline-offset: 2px;
}

.form-note {
    margin: 1rem 0 0;
    padding: 0.85rem 1rem;
    border-left: 4px solid #8a6d00;
    background-color: #fdf6e3;
    color: #4a3b00;
    line-height: 1.6;
}

.form-note a {
    color: var(--blue-dark);
    text-decoration: underline;
}

/* ===== REQUIRED DISCLOSURES ===== */
.compliance-section {
    background-color: #eef1f6;
    color: var(--text);
    padding: 2rem 0;
    border-top: 1px solid #d6dce6;
}

.compliance-section h2 {
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #3c4858;
    margin-bottom: 1rem;
}

.compliance-block p {
    font-size: var(--fs-small);
    line-height: 1.6;
    max-width: 80ch;
    margin-bottom: 0.75rem;
}

.compliance-block:last-child p:last-child {
    margin-bottom: 0;
}

.compliance-block + .compliance-block {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #d6dce6;
}

/* ===== STATE COVERAGE PAGES =====
   Seven pages, one shape. The eligibility block is set apart on a tinted ground because it is
   the part that differs by state and the part somebody came to read; the county note and the
   cross-links sit on white after it. Same rhythm and the same blue headings as the about and
   services pages, so a state page reads as part of this site rather than a landing page that
   wandered in. */
.state-links,
.state-eligibility,
.state-coverage-area,
.state-siblings {
    padding: 3rem 0;
}

.state-eligibility,
.state-siblings {
    background-color: #f6f8fb;
}

.state-links h2 {
    color: var(--blue);
    margin-bottom: 1rem;
}

.state-eligibility h3,
.state-coverage-area h3,
.state-siblings h3 {
    color: var(--blue);
    margin-bottom: 1rem;
    font-size: var(--fs-h3);
}

.state-eligibility h3 {
    margin-top: 2.5rem;
}

.state-eligibility > .container > p:first-child {
    font-size: 1.15rem;
}

.state-links p,
.state-eligibility p,
.state-coverage-area p,
.state-siblings p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.state-links ul,
.state-siblings ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    max-width: var(--measure);
}

.state-links ul li,
.state-siblings ul li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

/* ============================================================================================
   RESPONSIVE — folded in from responsive.css (§8c). Two stylesheets were two render-blocking
   requests on every page of a thirty-page site for 4 KB of media queries that belong with the
   rules they modify. One file now.
   ============================================================================================ */

/* ===== LARGE DEVICES (Desktops, less than 1200px) ===== */
@media (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
}

/* ===== MEDIUM DEVICES (Tablets, less than 992px) ===== */
@media (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }

    .benefits-content {
        flex-direction: column;
        text-align: center;
    }

    .benefits-list ul li {
        text-align: left;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
    }

    .footer-links a {
        margin: 0.5rem;
    }
}

/* ===== SMALL DEVICES (Landscape phones, less than 768px) ===== */
@media (max-width: 767.98px) {
    .container {
        max-width: 540px;
    }

    header {
        padding: 0.5rem 0;
    }

    header .container {
        flex-direction: row;
        text-align: left;
        position: relative;
        padding: 0 15px;
    }

    .logo {
        margin-bottom: 0;
        font-size: 1.3rem;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        top: 50%;
        right: 15px;
        transform: translateY(-50%);
        background: transparent;
        border: none;
        color: var(--blue);
        cursor: pointer;
        z-index: 100;
        padding: 0.3rem;
    }

    .main-nav {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 99;
    }

    .main-nav.active {
        max-height: 500px;
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
        padding: 0;
    }

    .main-nav li {
        margin: 0;
        width: 100%;
        text-align: center;
        padding: 0;
        border-top: 1px solid #eee;
    }

    .main-nav a {
        display: block;
        padding: 0.75rem 0;
        font-size: 1rem;
    }

    .main-nav a.active::after {
        display: none;
    }

    .main-nav a.nav-button {
        margin: 0.75rem 2rem;
        border-radius: 4px;
        padding: 0.5rem 0.75rem;
    }

    .form-container {
        padding: 1.5rem;
    }

    .call-to-action {
        font-size: 1.2rem;
    }

    .section-cta {
        font-size: 1.5rem;
    }
}

/* ===== EXTRA SMALL DEVICES (Portrait phones, less than 576px) ===== */
@media (max-width: 575.98px) {
    .container {
        width: 100%;
        padding: 0 10px;
    }

    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .form-container {
        padding: 1rem;
    }

    .health-coverage-image {
        flex: 0 0 250px;
        height: auto;
    }

    .health-coverage-image img {
        width: 100%;
        height: auto;
    }

    .instructions-section h2 {
        font-size: var(--fs-h3);
    }

    .email {
        font-size: 1rem;
    }

    .call-to-action {
        font-size: 1rem;
    }

    .section-cta {
        font-size: 1.25rem;
    }

    .social-links a {
        width: 35px;
        height: 35px;
    }

    /* The sections added with the shared lead form. 2rem of padding inside a card on a 320px
       screen leaves the fields about 250px wide, which is where a phone keyboard starts
       clipping what someone has typed. */
    .lead-form {
        padding: 1rem;
    }

    .intro-section,
    .agent-bio,
    .lead-section {
        padding: 2rem 0;
    }
}
