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

:root {
    --btncolor: #fcb900;
    --apply_heading: #abb8c3;
    --header-bg: #030663;
    --footer-bg: #030663;
}

/* 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: #ffffff !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.jpg') no-repeat center center 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: #abb8c3; 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: #fcb900; 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; }

/* ------------------------------------------------------------------ */
/* Lemon Daddy hero + lead form (index / validate), 2026-09-22.         */
/* Brand: navy #030663, amber #fcb900, Montserrat. The bg.jpg photo is  */
/* generic stock; a fixed navy tint turns it into a backdrop and gives  */
/* the white hero copy real contrast instead of relying on text-shadow. */
/* ------------------------------------------------------------------ */
body {
    position: relative;
    z-index: 0;
    /* Fallback under the photo. bs4_base2's `background:` shorthand resets the
       color to transparent, so wherever the fixed image does not paint (iOS
       ignores `fixed`, slow image loads, full-page captures) the page went white
       and the white step titles vanished. Navy keeps the layout coherent. */
    background-color: #0b1050;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        180deg,
        rgba(3, 6, 99, 0.62) 0%,
        rgba(3, 6, 99, 0.42) 45%,
        rgba(3, 6, 99, 0.70) 100%
    );
    pointer-events: none;
}

/* Hero panel: a translucent navy card with an amber rule, so the copy has
   a surface of its own on top of the photo. */
.ld-hero {
    max-width: 600px;
    padding: 1.75rem 1.9rem 1.5rem;
    border-radius: 14px;
    border-left: 5px solid var(--btncolor);
    background: rgba(3, 6, 99, 0.58);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.ld-hero .ld-greet {
    color: var(--btncolor);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    margin-bottom: 0.35rem;
    text-shadow: none;
}

.ld-hero .hero-kicker {
    color: #d7dde3;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    margin-bottom: 0.6rem;
}

.ld-hero .hero-headline {
    font-size: 2rem;
    line-height: 1.15;
    margin-bottom: 0.85rem;
}

.ld-hero .ld-lede {
    font-size: 1.02rem;
    line-height: 1.55;
    font-weight: 500;
    margin-bottom: 1rem;
    text-shadow: none;
}

.ld-hero .hero-bullets li {
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.45rem;
}

/* Proof strip: three numbers the customer publishes on lemondaddy.com. */
.ld-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.ld-proof span {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    text-shadow: none;
}

.ld-proof b {
    color: var(--btncolor);
    font-size: 1.05rem;
    font-weight: 800;
}

/* "What happens next" list on the validate page. */
.ld-next {
    list-style: none;
    padding-left: 0;
    margin: 0 0 0.25rem;
    counter-reset: ldnext;
}

.ld-next li {
    counter-increment: ldnext;
    position: relative;
    padding-left: 2.4rem;
    margin-bottom: 0.7rem;
    line-height: 1.4;
    text-shadow: none;
}

.ld-next li::before {
    content: counter(ldnext);
    position: absolute;
    left: 0;
    top: 0.05rem;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    background: var(--btncolor);
    color: var(--header-bg);
    font-weight: 800;
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.7rem;
}

.ld-next li strong {
    display: block;
    font-weight: 700;
}

.ld-next li span {
    font-size: 0.92rem;
    opacity: 0.92;
}

/* Lead form card. */
.custom-bg-top.ld-card {
    background-color: rgba(255, 255, 255, 0.96) !important;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}

.ld-card .form-head {
    background-color: var(--header-bg);
    color: #ffffff;
    font-size: 1.15rem;
    padding: 18px 20px 14px;
    border-bottom: 4px solid var(--btncolor);
    margin-bottom: 0 !important;
}

.ld-card .form-head small {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: #d7dde3;
    text-transform: none;
    letter-spacing: 0;
}

.ld-card .ld-form-body {
    padding-top: 1.1rem;
}

.ld-card .ld-section {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6c757d;
    margin: 0.35rem 0 0.6rem;
}

.ld-card .form-label {
    font-weight: 600;
    font-size: 0.92rem;
    color: #212529;
}

/* The card's title lives in .form-head; keep it white on the navy band. */
.ld-card .form-head .form-label {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
}

/* The panel is the contrast surface now; the inherited photo shadow only blurs. */
.ld-hero,
.ld-hero * {
    text-shadow: none;
}

.ld-card .form-control,
.ld-card .form-select {
    border-radius: 8px;
    padding: 0.55rem 0.8rem;
    border-color: #cfd6de;
}

.ld-card .form-control:focus,
.ld-card .form-select:focus {
    border-color: var(--btncolor);
    box-shadow: 0 0 0 0.2rem rgba(252, 185, 0, 0.30);
}

.ld-card .form-text {
    color: #6c757d;
    font-size: 0.82rem;
}

/* Amber button with navy text: #fcb900 fails contrast with white text. */
.ld-card .btn-submit {
    color: var(--header-bg) !important;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(252, 185, 0, 0.35);
}

.ld-card .btn-submit:hover,
.ld-card .btn-submit:focus {
    opacity: 1;
    filter: brightness(1.05);
    box-shadow: 0 8px 20px rgba(252, 185, 0, 0.45);
}

.ld-card .ld-fine {
    margin: 0.7rem 0 0;
    font-size: 0.8rem;
    color: #6c757d;
    text-align: center;
}

.ld-card #brand-voice-disclaimer {
    background-color: #f4f6f8 !important;
    color: #495057;
    font-size: 0.8rem;
    line-height: 1.45;
}

/* Column rhythm: hero and card share the same top edge. */
.ld-hero-col,
.ld-form-col {
    padding-top: 1.5rem;
}

/* How-it-works strip (index): the customer's own four steps. */
.ld-steps-wrap {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.ld-steps-title {
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.ld-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.ld-step {
    background: rgba(3, 6, 99, 0.58);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    color: #ffffff;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.ld-step .ld-step-n {
    flex: 0 0 auto;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 50%;
    background: var(--btncolor);
    color: var(--header-bg);
    font-weight: 800;
    text-align: center;
    line-height: 1.9rem;
}

.ld-step strong {
    display: block;
    font-size: 0.92rem;
    line-height: 1.25;
}

.ld-step span {
    font-size: 0.8rem;
    opacity: 0.85;
}

@media (max-width: 991.98px) {
    .ld-hero {
        max-width: none;
        padding: 1.35rem 1.2rem 1.2rem;
    }

    .ld-hero .hero-headline {
        font-size: 1.5rem;
    }

    .ld-hero .ld-lede {
        font-size: 0.97rem;
    }

    .ld-hero-col {
        padding-top: 0.5rem;
    }

    .ld-form-col {
        padding-top: 1.25rem;
    }

    .ld-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .ld-steps {
        grid-template-columns: 1fr;
    }

    .ld-proof span {
        font-size: 0.78rem;
    }
}
