.navbar,
.navbar * {
    color: #000 !important;
}
footer,
footer * {
    color: #000000 !important;
}

:root {
    --btncolor: #8ac6ed;
    --apply_heading: #b7b7b7;
    --header-bg: #ffffff;
    --footer-bg: #b7b7b7;
}

/* Form header styling */
.form-head {
    background-color: var(--apply_heading);
    color: white;
    font-weight: bold;
    padding: 15px;
    text-align: center;
}

/* Button styling */
.btn-primary,
.btn-submit {
    background-color: var(--btncolor);
    border-color: var(--btncolor);
}

.btn-primary:hover,
.btn-submit:hover {
    background-color: var(--btncolor);
    border-color: var(--btncolor);
    opacity: 0.9;
}

.btn-call {
    background-color: var(--btncolor);
    border-color: var(--btncolor);
    color: var(--btn-text-color, white);
}

/* Dynamic text color calculation for call button */
.btn-call,
.btn-call * {
    --btn-text-color: white; /* Default to white for most button colors */
}

/* For light colored buttons (yellow, light colors), use black text */
:root:has([style*="--btncolor: #FFE"]),
:root:has([style*="--btncolor: #FFF"]),
:root:has([style*="--btncolor: #EEE"]),
:root:has([style*="--btncolor: #DDD"]) {
    --btn-text-color: black;
}

/* Fallback: Use contrast-based approach with mix-blend-mode for better readability */
.navbar .btn-call,
.navbar .btn-call .tracking_href,
.navbar .btn-call .trackingid,
.navbar .btn-call span,
.navbar .btn-call b {
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* For very light button colors, override to use dark text */
.btn-call.light-button,
.btn-call.light-button * {
    color: black !important;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
}

/* Layout: clearance below the fixed single-row header (~72px tall). */
.content {
    padding-top: 100px;
}

/* ------------------------------------------------------------------ */
/* Header / top navigation (modernized, issue #444 phase 13)          */
/* Single row on desktop: logo left, micro-site links center, phone   */
/* CTA far right. Below 992px the links collapse behind a hamburger.  */
/* ------------------------------------------------------------------ */
.navbar {
    background-color: var(--header-bg);
}

.navbar.ms-topnav {
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.ms-topnav-links .nav-link {
    color: #333333 !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.35rem 0.85rem;
    white-space: nowrap;
    text-decoration: none;
}

.ms-topnav-links .nav-link:hover,
.ms-topnav-links .nav-link:focus {
    color: var(--btncolor) !important;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Compact one-line phone CTA pill. Keeps .tracking_href/.trackingid so the
   async tracking_did_loader can swap in the campaign DID. */
.ms-call-cta {
    text-decoration: none;
    white-space: nowrap;
    font-size: 0.95rem;
}

.ms-call-cta:hover,
.ms-call-cta:focus {
    text-decoration: none;
    opacity: 0.9;
}

/* Footer styles */
footer {
    background-color: var(--footer-bg);
}

footer p,
footer a {
    color: #000000 !important;
}

/* Muted footer link strip (issue #444 phase 13): visually quieter than the
   address block -- smaller type, reduced opacity, spaced separators -- but
   still clickable and WCAG-readable. */
footer .footer-links {
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    opacity: 0.75;
}

footer .footer-links a {
    text-decoration: none;
}

footer .footer-links a:hover,
footer .footer-links a:focus {
    text-decoration: underline;
    text-underline-offset: 3px;
}

footer .footer-sep {
    margin: 0 0.4rem;
    opacity: 0.5;
}

/* Background */
body {
    background: url('bg-family.jpg') no-repeat center 22% fixed;
    background-size: cover;
    min-height: 100vh;
}

/* Form container styling */
.custom-bg-top {
    background-color: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Legal-page card (privacy / sms-terms / opt-out): the shared-legal body
   partials render inside this card, which pins dark-on-light text so the
   copy never inherits the white hero text color from bs4_base2's
   `.content { color: white }` rule (the phase-13 white-on-white bug). */
.ms-legal-card {
    color: #212529;
}

.ms-legal-card > .container {
    /* The body partials carry their own `container py-5` wrapper for the
       standalone shared-legal pages; inside the card that padding doubles
       up, so tighten it (py-5 is !important, hence !important here). */
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

/* Main content area */
.masthead-minor {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.text-uppercase {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Logo sizing
 * `width: auto` defeats any HTML `width=""` attribute so the logo keeps its
 * natural aspect ratio when `max-height` clamps it. Override per-blueprint by
 * setting `logo_max_height` on customermodel (rendered as inline style in topnav.html).
 */
.navbar-brand img {
    max-height: 60px;
    width: auto;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    /* Keep logo + CALL pill + hamburger on ONE compact row at 375px:
       tighter brand margin, smaller logo, denser pill and toggler. */
    .navbar.ms-topnav .navbar-brand {
        margin-right: 0.25rem;
    }

    .navbar-brand img {
        /* !important: must beat the inline `max-height: 60px`
           style topnav.html stamps on the img for desktop sizing. */
        max-height: 36px !important;
        width: auto;
    }

    .navbar.ms-topnav .navbar-toggler {
        padding: 0.25rem 0.5rem;
    }

    /* The header is a single compact row (logo + CALL pill + hamburger);
       the expanded link menu overlays the page as a dropdown. Neutralize
       bs4_base2.html's inline 170px mobile body-padding hack (page.css
       loads after that style block) and give the content just enough
       clearance for the collapsed bar. */
    body {
        padding-top: 0;
    }

    .content {
        padding-top: 84px;
    }

    .ms-call-cta {
        font-size: 0.8rem;
        padding: 0.4rem 0.5rem !important;
    }

    /* Expanded mobile menu: stacked links on the header background. */
    .navbar.ms-topnav .navbar-collapse {
        background-color: var(--header-bg);
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        margin-top: 0.5rem;
    }

    .ms-topnav-links .nav-link {
        padding: 0.55rem 0.25rem;
    }
}

/* Hero CTA stack classes (kicker / headline / bullets / tagline) -- used by
 * config-driven herocontent HTML (e.g. micro-site variants). White over the
 * photo like .masthead-minor, with the same legibility shadow. Harmless when
 * a config's herocontent does not use them. */
.hero-stack { max-width: 560px; }
.hero-kicker { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; margin-bottom: 0.35rem; color: #b7b7b7; text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6); }
.hero-headline { font-weight: 700; margin-bottom: 0.75rem; color: #ffffff; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); }
.hero-stack .hero-content strong { font-size: 1.15rem; }
.hero-stack .hero-content p { margin-bottom: 0.75rem; }
.hero-bullets { list-style: none; padding-left: 0; margin-bottom: 0.9rem; }
.hero-bullets li { padding-left: 1.4em; position: relative; margin-bottom: 0.3rem; font-weight: 600; }
.hero-bullets li::before { content: "\2713"; position: absolute; left: 0; color: #8ac6ed; font-weight: 700; text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7); }
.hero-tagline { font-style: italic; font-weight: 600; margin-bottom: 0; }

/* ================================================================== */
/* JetStream direct-mail redesign (index + validate)                  */
/* Scoped with body:has(.jsl-scope) -- bs4_base2 owns <body>, so a
   child template cannot add a body class.                            */
/* Brand: navy #102060 (logo wordmark), sky #88c0e8 -> #8ac6ed (jet   */
/* streak). Namespaced jsl-* so bs4_base2's .form-head/.btn/.content  */
/* rules and the generic hero rules above never leak in.              */
/* ================================================================== */
:root {
    --jsl-navy: #102060;
    --jsl-navy-deep: #0a1540;
    --jsl-sky: #8ac6ed;
    --jsl-sky-strong: #32c2ec;
    --jsl-ink: #1b2340;
    --jsl-muted: #5b6480;
    --jsl-line: #e3e8f2;
    --jsl-red: #c8102e;
}

body:has(.jsl-scope) {
    font-family: 'Inter', 'Montserrat', sans-serif !important;
    /* Client feedback 2026-10-05: the straight color photo, no navy tint. The
       copy sits on .jsl-panel so it stays legible over the photo. */
    background: url('bg-family.jpg') no-repeat center 22% fixed;
    background-size: cover;
}

body:has(.jsl-scope) .content { padding-top: 110px; padding-bottom: 48px; }
body:has(.jsl-scope) .content > .row { margin-top: 0 !important; }

/* ---------- hero ---------- */
/* Red / white / blue copy on a white panel over the untinted photo. */
.jsl-hero { color: var(--jsl-ink); padding-top: 0; }
.jsl-panel {
    background: rgba(255, 255, 255, 0.94); border-radius: 18px; padding: 2rem 2rem 1.75rem;
    margin: 24px 0 32px; box-shadow: 0 30px 60px -20px rgba(5, 12, 40, 0.55);
    border-top: 5px solid var(--jsl-navy);
}
.jsl-kicker {
    display: inline-flex; align-items: center; gap: 0.6rem;
    font-family: 'Montserrat', sans-serif; font-size: 1.15rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--jsl-red); margin-bottom: 0.9rem;
}
.jsl-kicker::before {
    content: ""; width: 34px; height: 4px; border-radius: 3px; background: var(--jsl-red);
}
.jsl-headline {
    font-family: 'Montserrat', sans-serif; font-weight: 800;
    font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.08; letter-spacing: -0.01em;
    margin-bottom: 1.1rem; color: var(--jsl-navy);
}
.jsl-headline .jsl-accent { color: var(--jsl-red); }
.jsl-lead { font-size: 1.12rem; line-height: 1.6; color: var(--jsl-ink); max-width: 560px; }
.jsl-checks { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem 1.5rem; max-width: 560px; }
.jsl-checks li { display: flex; align-items: flex-start; gap: 0.6rem; font-weight: 700; color: var(--jsl-navy); line-height: 1.35; }
.jsl-emoji { flex: 0 0 auto; font-size: 1.1rem; line-height: 1.2; }

/* Google 5-star + BBB A+ rating badges */
.jsl-ratings { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.jsl-rating {
    display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0.9rem;
    background: #fff; border: 1px solid var(--jsl-line); border-radius: 12px;
    box-shadow: 0 4px 12px -6px rgba(16, 32, 96, 0.35);
}
.jsl-rating-logo { height: 34px; width: auto; }
.jsl-rating-text { display: flex; flex-direction: column; line-height: 1.15; }
.jsl-rating-text strong { font-size: 0.82rem; color: var(--jsl-navy); }
.jsl-stars { color: #fbbc04; font-size: 1.15rem; letter-spacing: 0.08em; }
.jsl-grade { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.15rem; color: var(--jsl-red); }

.jsl-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: 1.1rem; }
.jsl-trust-item { display: flex; align-items: center; gap: 0.55rem; font-size: 0.82rem; font-weight: 700; color: var(--jsl-muted); letter-spacing: 0.02em; }
.jsl-trust-item i { color: var(--jsl-navy); font-size: 1.05rem; }
.jsl-trust-bbb { background: #fff; border-radius: 8px; padding: 4px 8px; display: inline-flex; }
.jsl-trust-bbb img { height: 30px; width: auto; }

/* ---------- form card ---------- */
.jsl-card {
    position: relative; background: #fff; color: var(--jsl-ink); border-radius: 18px;
    padding: 2rem 1.75rem 1.5rem; margin: 24px 0 32px;
    box-shadow: 0 30px 60px -20px rgba(5, 12, 40, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08);
    overflow: hidden;
}
.jsl-card::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
    background: var(--jsl-red);
}
.jsl-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.35rem; }
.jsl-step {
    font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--jsl-red); background: #fdecee; border-radius: 999px; padding: 0.3rem 0.7rem;
}
.jsl-step-dots { display: flex; gap: 5px; }
.jsl-step-dots span { width: 22px; height: 5px; border-radius: 4px; background: var(--jsl-line); }
.jsl-step-dots span.on { background: var(--jsl-red); }
.jsl-card-title { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.45rem; color: var(--jsl-red); margin: 0.6rem 0 0.25rem; }
.jsl-card-sub { color: var(--jsl-muted); font-size: 0.93rem; margin-bottom: 1.25rem; }

.jsl-card .inputs { color: var(--jsl-ink); }
.jsl-card .form-label { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--jsl-muted); margin-bottom: 0.3rem; }
.jsl-card .required { color: #d6455d; margin-left: 2px; }
.jsl-card .form-control {
    border: 1.5px solid var(--jsl-line); border-radius: 10px; padding: 0.7rem 0.85rem; height: auto;
    font-size: 1rem; color: var(--jsl-ink); background: #fbfcfe; transition: border-color .15s, box-shadow .15s, background .15s;
}
.jsl-card select.form-control { height: auto; }
.jsl-card .form-control:focus { border-color: var(--jsl-sky-strong); background: #fff; box-shadow: 0 0 0 4px rgba(50, 194, 236, 0.18); }
.jsl-code-field { position: relative; }
.jsl-code-field i { position: absolute; left: 0.95rem; top: 50%; transform: translateY(-50%); color: var(--jsl-sky-strong); }
.jsl-code-field .form-control {
    padding-left: 2.6rem; font-size: 1.2rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
    border-color: #cfe4f5; background: #f4f9fe;
}
.jsl-hint { display: block; font-size: 0.8rem; color: var(--jsl-muted); margin-top: 0.4rem; }

body:has(.jsl-scope) .btn.jsl-cta {
    display: flex; align-items: center; justify-content: center; gap: 0.6rem;
    border: 0; border-radius: 12px; padding: 0.95rem 1rem; margin-top: 0.5rem;
    font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.05rem; letter-spacing: 0.02em; color: #fff;
    background: linear-gradient(100deg, var(--jsl-navy) 0%, #1d3fa0 55%, var(--jsl-sky-strong) 130%);
    box-shadow: 0 12px 24px -10px rgba(16, 32, 96, 0.75); transition: transform .15s, box-shadow .15s, filter .15s;
}
body:has(.jsl-scope) .btn.jsl-cta:hover, body:has(.jsl-scope) .btn.jsl-cta:focus { color: #fff; transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 16px 28px -10px rgba(16, 32, 96, 0.85); }
.jsl-secure { display: flex; align-items: center; justify-content: center; gap: 0.45rem; font-size: 0.8rem; color: var(--jsl-muted); margin: 0.85rem 0 0; }
.jsl-secure i { color: #2e9e6a; }
.jsl-card .jsl-legal { font-size: 0.72rem !important; line-height: 1.5; color: #7a8299 !important; margin-top: 1rem !important; }
.jsl-card #brand-voice-disclaimer { font-size: 0.72rem; color: #7a8299; background: #f6f8fc !important; }
.jsl-card #brand-voice-disclaimer a, .jsl-card .jsl-legal a { color: var(--jsl-navy); }

/* ---------- call band + next steps ---------- */
.jsl-call {
    display: inline-flex; align-items: center; gap: 0.75rem; margin-top: 1.75rem; padding: 0.7rem 1.1rem 0.7rem 0.75rem;
    border-radius: 999px; background: var(--jsl-navy); border: 1px solid var(--jsl-navy);
    color: #fff !important; text-decoration: none !important; font-weight: 700;
}
.jsl-call:hover { filter: brightness(1.15); }
.jsl-call .jsl-call-icon { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--jsl-red); color: #fff; }
.jsl-call small { display: block; font-weight: 600; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); }

.jsl-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 0.5rem 0 1.5rem; }
.jsl-step-card {
    background: rgba(255, 255, 255, 0.94); border: 1px solid var(--jsl-line); border-radius: 16px;
    padding: 1.35rem 1.25rem; color: var(--jsl-ink); box-shadow: 0 16px 32px -18px rgba(5, 12, 40, 0.55);
}
.jsl-step-num {
    width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
    font-family: 'Montserrat', sans-serif; font-weight: 800; color: #fff; background: var(--jsl-navy); margin-bottom: 0.8rem;
}
.jsl-step-card:nth-child(2) .jsl-step-num { background: var(--jsl-red); }
.jsl-step-card h3 { font-family: 'Montserrat', sans-serif; font-size: 1.02rem; font-weight: 800; margin-bottom: 0.35rem; color: var(--jsl-navy); }
.jsl-step-card p { font-size: 0.9rem; line-height: 1.5; color: var(--jsl-ink); margin: 0; }

.jsl-next { list-style: none; padding: 0; margin: 1.6rem 0 0; max-width: 540px; }
.jsl-next li { display: flex; gap: 0.9rem; padding: 0.85rem 0; border-bottom: 1px solid var(--jsl-line); color: var(--jsl-ink); line-height: 1.45; }
.jsl-next li:last-child { border-bottom: 0; }
.jsl-next .jsl-step-num { flex: 0 0 32px; width: 32px; height: 32px; margin: 0; font-size: 0.9rem; }
.jsl-next li:nth-child(2) .jsl-step-num { background: var(--jsl-red); }
.jsl-next strong { color: var(--jsl-navy); display: block; }

.jsl-quote { margin: 0.5rem 0 1rem; padding: 1.4rem 1.6rem; border-left: 4px solid var(--jsl-red); border-radius: 0 14px 14px 0; background: rgba(255, 255, 255, 0.94); color: var(--jsl-navy); font-size: 1.02rem; line-height: 1.6; }
.jsl-quote footer, .jsl-quote cite { background: none !important; color: var(--jsl-red) !important; font-style: normal; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; display: block; margin-top: 0.6rem; }

/* ---------- header call pill + footer on these two pages ---------- */
body:has(.jsl-scope) .navbar .btn-call,
body:has(.jsl-scope) .navbar .ms-call-cta {
    background: var(--jsl-navy) !important; border-color: var(--jsl-navy) !important; border-radius: 999px;
    font-weight: 800; letter-spacing: 0.02em; padding-left: 1.1rem; padding-right: 1.1rem;
}
body:has(.jsl-scope) .navbar .btn-call *,
body:has(.jsl-scope) .navbar .ms-call-cta * ,
body:has(.jsl-scope) .navbar .btn-call,
body:has(.jsl-scope) .navbar .ms-call-cta { color: #fff !important; text-shadow: none !important; }
body:has(.jsl-scope) footer { background: var(--jsl-navy-deep); border-top: 1px solid rgba(138, 198, 237, 0.25); }
body:has(.jsl-scope) footer,
body:has(.jsl-scope) footer p,
body:has(.jsl-scope) footer a,
body:has(.jsl-scope) footer * { color: rgba(255, 255, 255, 0.78) !important; }
body:has(.jsl-scope) footer strong, body:has(.jsl-scope) footer b { color: #fff !important; }
body:has(.jsl-scope) footer a:hover { color: var(--jsl-sky) !important; }

/* "To speak to a live agent" label beside the header phone CTA (index). */
body:has(.jsl-scope) .navbar .jsl-agent-label {
    color: var(--jsl-navy) !important; font-weight: 800; font-size: 0.85rem; white-space: nowrap;
}
@media (max-width: 575.98px) {
    body:has(.jsl-scope) .navbar .jsl-agent-label { font-size: 0.68rem; white-space: normal; line-height: 1.1; max-width: 88px; text-align: right; }
}

/* ---------- responsive ---------- */
@media (max-width: 991.98px) {
    /* Portrait family photo: on phones show the faces at the top. */
    body:has(.jsl-scope) { background-attachment: scroll; background-position: center top; }
    body:has(.jsl-scope) .content { padding-top: 92px; }
    .jsl-hero { padding-top: 0; text-align: left; }
    .jsl-lead { font-size: 1.02rem; }
    .jsl-checks { grid-template-columns: 1fr; }
    .jsl-steps { grid-template-columns: 1fr; }
    .jsl-card { padding: 1.6rem 1.25rem 1.25rem; margin-top: 16px; }
    .jsl-panel { padding: 1.5rem 1.25rem 1.25rem; margin: 16px 0 0; }
    .jsl-kicker { font-size: 1rem; }
}
