/* ============================================
   NAIFA Blazor - Seoly-Inspired Custom Styles
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    --primary: #3E95D1;
    --primary-dark: #2d7ab8;
    --primary-hover: #2E8BC0;
    --primary-text: #2878AD;
    --secondary: #1a1a1a;
    --dark: #111111;
    --gray: #4a4a4a;
    --light-bg: #f5f8fb;
    --gradient-hero: linear-gradient(135deg, #e8f4fd 0%, #f0f7fc 50%, #ffffff 100%);
    --gradient-light: linear-gradient(180deg, #f5f8fb 0%, #ffffff 100%);
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,.1);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: color .2s ease, background-color .2s ease, transform .2s ease, box-shadow .2s ease, border-color .2s ease, opacity .2s ease;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

/* ---------- Page Entrance Animation ---------- */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

main > .page-animate {
    animation: slideInFromLeft 0.3s ease-out both;
}

html {
    /* The navbar is always visible, so in-page jumps must clear it */
    scroll-padding-top: 120px;
    /* Always reserve scrollbar space so opening/closing the enroll modal
       doesn't shift the page sideways (the "screen shake"). */
    scrollbar-gutter: stable;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    line-height: 1.7;
    overflow-x: hidden;
}

a { color: var(--primary-text); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
.skip-link:focus-visible { outline: none; }
h1:focus, h1:focus-visible { outline: none; }

img { max-width: 100%; height: auto; }

.section-padding { padding: 85px 0; }
/* Compact bands (single heading + blurb + CTA) */
.section-padding-tight { padding: 60px 0; }

#coverages,
#reportaclaim,
#risk-management,
#contact {
    padding-block: clamp(32px, 4vw, 48px);
}

/* Interior page hero: tighter top padding under the fixed navbar */
.page-hero-top { padding-top: 120px; }

/* ---------- Buttons ---------- */
.btn-primary,
.btn-outline-primary {
    position: relative;
    overflow: hidden;
    font-weight: 600;
    transition: var(--transition);
    z-index: 1;
}
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}
.btn-primary::before,
.btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary-hover);
    transition: width .6s ease;
    z-index: -1;
}
.btn-primary:hover::before,
.btn-outline-primary:hover::before {
    width: 100%;
}
.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46,139,192,.35);
}
.btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(62,149,209,.25);
}
.btn-primary:active,
.btn-outline-primary:active {
    transform: translateY(0) scale(0.99);
}

/* ---------- Brand / Logo ---------- */
.brand-dot {
    display: inline-block;
    width: 12px; height: 12px;
    border-radius: 50%;
    margin-right: 2px;
}
.brand-dot--blue { background: var(--primary); }
.brand-dot--orange { background: var(--secondary); }
.brand-text { font-size: 1.4rem; font-weight: 800; color: var(--dark); margin-left: 4px; }

/* ---------- Navbar ---------- */
#mainNav {
    display: block;
    padding: 0;
    background: transparent;
    z-index: 1050;
}

/* Top utility strip: sponsor + quick actions.
   Collapses away (0fr) once the page is scrolled. */
.nav-utility {
    display: grid;
    grid-template-rows: 1fr;
    width: 100%;
    background: #0f2b3d;
    color: #cfe4f2;
    font-size: .84rem;
    letter-spacing: .02em;
    transition: grid-template-rows .4s ease, opacity .3s ease;
    opacity: 1;
}
.nav-utility-inner {
    overflow: hidden;
    min-height: 0;
}
.nav-utility-inner > .container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    height: 56px;
}
#mainNav.scrolled .nav-utility {
    grid-template-rows: 0fr;
    opacity: 0;
}
.nav-utility-label {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 700;
    font-size: .72rem;
    color: #7fb4d6;
    white-space: nowrap;
}
.nav-utility-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}
.nav-utility-actions a {
    color: #cfe4f2;
    font-weight: 600;
    white-space: nowrap;
}
.nav-utility-actions a:hover,
.nav-utility-actions a:focus-visible {
    color: #fff;
}
.nav-utility-sponsor {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-utility-sponsor > a {
    display: flex;
    flex-shrink: 0;
}
.nav-utility-sponsor img {
    height: 36px;
    width: auto;
    max-width: none;
    filter: brightness(0) invert(1);
    opacity: .9;
}

/* Main bar */
.nav-main {
    background: #fff;
    padding: 14px 0;
    transition: box-shadow .3s ease;
}
.nav-main > .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}
#mainNav.scrolled .nav-main {
    box-shadow: var(--shadow-sm);
}

/* Left-anchored brand lockup */
.nav-lockup {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    padding: 0;
}
.nav-lockup-logo {
    height: 76px;
    width: auto;
    flex-shrink: 0;
}
.nav-lockup-words {
    line-height: 1.15;
}
.nav-lockup-t1 {
    display: block;
    font-weight: 800;
    font-size: 1.08rem;
    color: var(--dark);
    white-space: nowrap;
}
.nav-lockup-t2 {
    display: block;
    font-size: .76rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--primary-text);
    font-weight: 700;
    white-space: nowrap;
}

/* Rotating program contact numbers (left of the Enroll CTA) */
.nav-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-right: 16px;
}
.nav-phone-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(62,149,209,.12);
    color: var(--primary-text);
    display: grid;
    place-items: center;
    font-size: .98rem;
    flex-shrink: 0;
}
.nav-phone-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.nav-phone-stack {
    display: grid;
    line-height: 1.2;
}
.nav-phone-hours {
    display: block;
    font-size: .67rem;
    letter-spacing: .04em;
    color: var(--gray);
    opacity: .8;
    line-height: 1.3;
    white-space: nowrap;
}
.nav-phone-item {
    grid-area: 1 / 1;
    display: block;
    white-space: nowrap;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .35s ease, transform .35s ease, visibility .35s;
}
.nav-phone-item.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
}
.nav-phone-number {
    display: block;
    font-size: .99rem;
    font-weight: 700;
    color: var(--dark);
    transition: color .2s ease;
}
.nav-phone-program {
    display: block;
    font-size: .73rem;
    letter-spacing: .03em;
    color: var(--gray);
}
.nav-phone-item:hover .nav-phone-number,
.nav-phone-item:focus-visible .nav-phone-number {
    color: var(--primary-text);
}
@media (prefers-reduced-motion: reduce) {
    .nav-phone-item {
        transition: opacity .01s linear, visibility .01s linear;
        transform: none;
    }
}
@media (max-width: 991.98px) {
    .nav-utility { font-size: .72rem; }
    .nav-utility-inner > .container {
        height: auto;
        flex-wrap: wrap;
        padding-top: 6px;
        padding-bottom: 6px;
        gap: 12px;
    }
    .nav-utility-sponsor .nav-utility-label { display: none; }
    .nav-utility-actions { gap: 14px; }
    .nav-utility-sponsor img { height: 28px; }
}
@media (max-width: 767.98px) {
    .nav-utility-actions > a { display: none; }
}
@media (min-width: 992px) {
    /* Keep the lockup, links and CTA on one line */
    .nav-main > .container { flex-wrap: nowrap; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    .nav-utility-label { display: none; }
    /* No room for the phone block alongside the links and CTA */
    .nav-phone { display: none; }
}
@media (min-width: 992px) and (max-width: 1399.98px) {
    /* Not enough room for the wordmark - fall back to the mark alone */
    .nav-lockup-words { display: none; }
}
/* Below the lg breakpoint the phone block and the Enroll CTA are relocated
   next to the logo (out of the collapsible menu) - see site.js and the
   mobile sizing overrides at the end of this file */
.nav-mobile-actions { display: none; }
@media (max-width: 991.98px) {
    /* Logo stays left; the CTA and the toggler are pushed to the right.
       (.nav-lockup carries Bootstrap's .m-0, so margin-left on the actions
       is used instead of margin-right on the lockup.) */
    .nav-main > .container > .nav-mobile-actions { margin-left: auto; }
    .nav-mobile-actions {
        display: flex;
        align-items: center;
        gap: 12px;
        min-width: 0;
    }
    .nav-mobile-actions .nav-phone { margin-right: 0; }
}
#mainNav .nav-link {
    font-weight: 700;
    font-size: .94rem;
    letter-spacing: 0.3px;
    color: var(--dark);
    padding: 10px 14px;
    white-space: nowrap;
    transition: var(--transition);
}
@media (min-width: 1400px) {
    #mainNav .nav-link {
        font-size: 1.02rem;
        padding: 10px 19px;
    }
}
#mainNav .nav-link:hover { color: var(--primary); }
#mainNav .dropdown-toggle::after {
    margin-left: 0.75em;
}
@media (min-width: 992px) {
    #mainNav .dropdown:hover:not(.dropdown-clicked) > .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}
#mainNav .dropdown-menu {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
}
#mainNav .dropdown-item {
    font-size: .95rem;
    font-weight: 500;
    padding: 10px 20px;
    transition: var(--transition);
}
#mainNav .dropdown-item:hover {
    background: var(--light-bg);
    color: var(--primary);
}
#mainNav .dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--primary);
}
#mainNav .dropdown-claim > .dropdown-menu {
    left: 0;
    transform: none;
}
.btn-animated {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px 30px;
    border: 4px solid transparent;
    font-size: .95rem;
    background-color: transparent;
    border-radius: 100px;
    font-weight: 600;
    color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary);
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-animated svg {
    position: absolute;
    width: 24px;
    fill: var(--primary);
    z-index: 9;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-animated .arr-1 {
    right: 16px;
}

.btn-animated .arr-2 {
    left: -25%;
}

/* Sized as a percentage of the button so the fill always covers it,
   no matter how wide the button gets on large screens. */
.btn-animated .circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0%;
    aspect-ratio: 1 / 1;
    background-color: var(--primary);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-animated .text {
    position: relative;
    z-index: 1;
    transform: translateX(-12px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-animated:hover {
    box-shadow: 0 0 0 12px transparent;
    color: #ffffff;
    border-radius: 12px;
}

.btn-animated:hover .arr-1 {
    right: -25%;
}

.btn-animated:hover .arr-2 {
    left: 16px;
}

.btn-animated:hover .text {
    transform: translateX(12px);
}

.btn-animated:hover svg {
    fill: #ffffff;
}

.btn-animated:active {
    scale: 0.95;
    box-shadow: 0 0 0 4px var(--primary);
}

.btn-animated:hover .circle {
    width: 250%;
    opacity: 1;
}

.btn-animated.btn-wide {
    padding-left: 64px;
    padding-right: 64px;
    min-width: 280px;
}

/* Inverted variant: solid primary fill that wipes to white on hover */
.btn-animated.btn-animated-invert {
    background-color: var(--primary);
    color: #ffffff;
}

.btn-animated.btn-animated-invert svg {
    fill: #ffffff;
}

.btn-animated.btn-animated-invert .circle {
    background-color: #ffffff;
}

.btn-animated.btn-animated-invert:hover {
    color: var(--primary);
    background-color: #ffffff;
}

.btn-animated.btn-animated-invert:hover svg {
    fill: var(--primary);
}

/* Trust reassurance line under external "Enroll Now" buttons */
.secure-partner-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.75rem;
    margin-bottom: 0;
    font-size: 0.8rem;
    line-height: 1.35;
    color: #4a5568;
}

.secure-partner-note i {
    color: var(--primary);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.secure-partner-note strong {
    color: #2d3748;
}

/* Centered variant for the coverage cards on the home page */
.secure-partner-note.text-center {
    justify-content: center;
    text-align: center;
}

/* ===== Interstitial transfer page ===== */
.transfer-section {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 160px 1rem 3rem;
    background: var(--gradient-hero);
}

.transfer-card {
    max-width: 520px;
    width: 100%;
    text-align: center;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 2.5rem 2rem;
}

.transfer-logo {
    height: auto;
    max-width: 220px;
    margin-bottom: 1.5rem;
}

/* Co-branded header (e.g. CITA program enrollment) */
.transfer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}

.transfer-brand .transfer-logo {
    margin-bottom: 0;
    max-width: 150px;
}

.transfer-logo-cita {
    max-width: 220px;
    margin-bottom: 0.5rem;
}

.transfer-brought-by {
    font-size: 0.6rem;
    color: #718096;
    margin: 0.35rem 0;
    letter-spacing: 0.04em;
}

.transfer-spinner {
    display: block;
    width: 5em;
    margin: 0 auto 1.5rem;
    transform-origin: center;
    animation: transfer-rotate 2s linear infinite;
}

.transfer-spinner circle {
    fill: none;
    stroke: hsl(214, 97%, 59%);
    stroke-width: 2;
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
    stroke-linecap: round;
    animation: transfer-dash 1.5s ease-in-out infinite;
}

@keyframes transfer-rotate {
    100% { transform: rotate(360deg); }
}

@keyframes transfer-dash {
    0% {
        stroke-dasharray: 1, 200;
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dasharray: 90, 200;
        stroke-dashoffset: -35px;
    }

    100% {
        stroke-dashoffset: -125px;
    }
}

.transfer-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.transfer-text {
    color: #4a5568;
    margin-bottom: 1.25rem;
}

.transfer-domain {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md, 8px);
    background: #f8fafc;
    text-decoration: none;
}

.transfer-domain i {
    color: var(--primary);
}

.transfer-fallback {
    margin-top: 1.5rem;
    margin-bottom: 0;
    font-size: 0.85rem;
    color: #718096;
}

@media (prefers-reduced-motion: reduce) {
    .transfer-spinner,
    .transfer-spinner circle { animation: none; }

    .transfer-spinner circle { stroke-dasharray: 90, 200; }
}

/* Underline phone/email/text contact links on hover (coverage pages),
   matching the breadcrumb hover style */
.page-hero-bg p a {
    text-decoration: none;
    text-underline-offset: 0.2rem;
    transition: color 0.2s ease, text-decoration-color 0.2s ease, text-decoration-thickness 0.2s ease;
}

.page-hero-bg p a:hover,
.page-hero-bg p a:focus-visible {
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

/* Larger "Enroll Now" button text on coverage section pages only */
.page-hero-bg .btn-animated {
    font-size: 1.15rem;
}

.page-hero-bg .btn-animated .text {
    font-size: 1.15rem;
}

/* Smaller "Learn More / Get a Quote" buttons inside the coverage cards */
#coverages .service-card .btn-animated {
    padding: 8px 30px;
    font-size: 0.9rem;
}

#coverages .service-card .btn-animated .text {
    font-size: 0.9rem;
}

/* "See more" links inside the coverage cards underline on hover */
#coverages .service-card a.text-primary {
    display: inline-block;
    text-decoration: none;
    text-underline-offset: 0.2rem;
    transition: color 0.2s ease, text-decoration-color 0.2s ease, text-decoration-thickness 0.2s ease;
}

#coverages .service-card a.text-primary:hover,
#coverages .service-card a.text-primary:focus-visible {
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

/* Atomic inline box: ancestor underline is not drawn across it */
#coverages .service-card a.text-primary i {
    display: inline-block;
    text-decoration: none;
}

/* "Enroll Today" button in the navbar */
#mainNav .btn-nav-cta {
    font-size: .92rem;
    padding: 9px 28px;
}

#mainNav .btn-nav-cta .text {
    font-size: .92rem;
}


/* ---------- Enroll Modal ---------- */
#enrollModal .modal-content {
    background: linear-gradient(180deg, #eaf4fc 0%, #dceefa 100%);
}
#enrollModal .modal-header {
    padding-top: 2.5rem;
}
#enrollModal .btn-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    transform: none !important;
}
#enrollModal .text-primary.small.fw-semibold {
    display: inline-block;
    text-decoration: none;
    text-underline-offset: 0.2rem;
    transition: text-decoration-color 0.2s ease, text-decoration-thickness 0.2s ease;
}
#enrollModal .text-primary.small.fw-semibold:hover,
#enrollModal .text-primary.small.fw-semibold:focus-visible {
    text-decoration: underline;
    text-decoration-thickness: 2px;
}
/* Atomic inline box: ancestor underline is not drawn across it */
#enrollModal .text-primary.small.fw-semibold i {
    display: inline-block;
    text-decoration: none;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    font-size: 1.15rem;
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
    display: inline-flex;
    margin-bottom: 2rem !important;
}
.breadcrumb-item a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    text-underline-offset: 0.2rem;
    transition: color 0.2s ease, text-decoration-color 0.2s ease, text-decoration-thickness 0.2s ease;
}
.breadcrumb-item a:hover,
.breadcrumb-item a:focus-visible {
    color: var(--primary-dark);
    text-decoration: underline;
    text-decoration-thickness: 2px;
}
.breadcrumb-item.active {
    color: var(--gray);
    font-weight: 600;
}
.breadcrumb-item + .breadcrumb-item {
    padding-left: .75rem;
}
.breadcrumb-item + .breadcrumb-item::before {
    padding-right: .75rem;
    color: var(--primary);
    content: "\f054";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: .65rem;
    position: relative;
    top: 8px;
}

/* ---------- Hero ---------- */
.hero-section {
    min-height: 100vh;
    padding-top: 210px;
    padding-bottom: 80px;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    background: linear-gradient(135deg, transparent 40%, rgba(62,149,209,0.08) 40%, rgba(62,149,209,0.08) 100%);
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 0;
}
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    background: linear-gradient(160deg, transparent 20%, rgba(62,149,209,0.15) 20%, rgba(62,149,209,0.15) 100%);
    clip-path: polygon(40% 0, 100% 0, 100% 100%, 10% 100%);
    z-index: 0;
}
.hero-section > .container {
    position: relative;
    z-index: 2;
}

/* Hero image full-bleed off the top, right and bottom edges of the section,
   feathered only on its left edge so it dissolves into the gradient */
.hero-media {
    position: absolute;
    top: clamp(130px, 15vh, 240px);
    right: 0;
    bottom: 0;
    width: 50%;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}
.hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% 77%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.45) 12%, rgba(0,0,0,.9) 26%, #000 38%),
                        linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.35) 10%, rgba(0,0,0,.85) 22%, #000 34%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.45) 12%, rgba(0,0,0,.9) 26%, #000 38%),
                linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.35) 10%, rgba(0,0,0,.85) 22%, #000 34%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}
.hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(232,244,253,.85) 0%, rgba(240,247,252,.20) 26%, rgba(62,149,209,.04) 60%, rgba(62,149,209,.06) 100%);
    /* Feathered like the image so the tint never shows as a hard rectangle */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.45) 12%, rgba(0,0,0,.9) 26%, #000 38%),
                        linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.35) 10%, rgba(0,0,0,.85) 22%, #000 34%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.45) 12%, rgba(0,0,0,.9) 26%, #000 38%),
                linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.35) 10%, rgba(0,0,0,.85) 22%, #000 34%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}
.hero-copy {
    max-width: 800px;
}
@media (min-width: 992px) {
    .hero-copy { max-width: min(800px, 60%); }
}
@media (max-width: 991.98px) {
    .hero-media { display: none; }
}
.hero-badge {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: .5px;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--primary-text);
    background: rgba(62,149,209,.12);
    border: 1px solid rgba(62,149,209,.22);
    padding: 7px 18px;
    border-radius: 999px;
    line-height: 1.4;
}
.hero-eyebrow::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}
.hero-title {
    font-size: clamp(1.7rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--dark);
}
.hero-subtitle {
    max-width: 600px;
    color: var(--gray);
    font-size: 1.05rem;
}
.hero-cta {
    font-weight: 600;
    padding: 14px 40px;
}
.hero-badges-row {
    display: flex;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
}
.hero-float-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--dark);
}
.hero-float-icon {
    width: 72px; height: 72px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
}
.hero-float-icon.orange { background: var(--secondary); }
.hero-float-icon.blue { background: var(--primary); }

/* ---------- Section Common ---------- */
.section-badge {
    display: inline-block;
    color: var(--primary-text);
    font-weight: 600;
    font-size: .9rem;
    letter-spacing: .3px;
}
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--dark);
}
.section-subtitle {
    max-width: 560px;
    color: var(--gray);
}
.bg-light-gradient {
    background: var(--gradient-light);
}

/* ---------- Report a Claim intro column ---------- */
@media (min-width: 992px) {
    .claim-intro-sticky {
        position: sticky;
        top: 120px;
    }
}

/* Report a Claim image bleeding off the right edge, feathered into the
   section gradient - same treatment as the hero.
   (#reportaclaim is already position: relative further down.) */
.claim-media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 54%;
    z-index: 0;
    pointer-events: none;
    user-select: none;
}
.claim-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 78% center;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.15) 14%, rgba(0,0,0,.75) 34%, #000 56%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.15) 14%, rgba(0,0,0,.75) 34%, #000 56%);
}
.claim-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(245,248,251,.95) 0%, rgba(245,248,251,.45) 32%, rgba(62,149,209,.10) 70%, rgba(62,149,209,.16) 100%);
    /* Feathered like the image so the tint never shows as a hard rectangle */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.15) 14%, rgba(0,0,0,.75) 34%, #000 56%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.15) 14%, rgba(0,0,0,.75) 34%, #000 56%);
}
@media (max-width: 1399.98px) {
    .claim-media { display: none; }
}

/* Two claim cards stacked in one slot, cross-fading like a carousel so the
   photo behind them stays visible. Pauses on hover / keyboard focus. */
.claim-card-rotator {
    display: grid;
}
/* Below xxl the right column narrows and would squeeze the card into a tall,
   skinny box. The sibling half of the row is empty, so hold the card at the
   width it has at xxl and let it spill into that unused space. */
@media (min-width: 992px) and (max-width: 1399.98px) {
    .claim-card-rotator {
        min-width: 356px;
    }
}
.claim-card-rotator > .service-card {
    grid-area: 1 / 1;
    animation: claim-card-cycle 10s ease-in-out infinite;
}
.claim-card-rotator > .service-card:nth-child(2) {
    animation-delay: -5s;
}
.claim-card-rotator:hover > .service-card,
.claim-card-rotator:focus-within > .service-card {
    animation-play-state: paused;
}
/* The stacked cards overlap, so the lift-on-hover would fire on whichever card
   happens to be on top rather than the visible one */
.claim-card-rotator > .service-card:hover {
    transform: none;
    box-shadow: none;
    border-color: #f1f5f9;
}

@keyframes claim-card-cycle {
    0%, 44% { opacity: 1; }
    50%, 94% { opacity: 0; }
    100% { opacity: 1; }
}

/* Below lg the photo is hidden and the column is full width, so there is room
   to show both cards side by side instead of cross-fading them. */
@media (max-width: 991.98px) {
    .claim-card-rotator {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    .claim-card-rotator > .service-card {
        grid-area: auto;
        animation: none;
        opacity: 1;
    }
    .claim-card-rotator > .service-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-lg);
        border-color: transparent;
    }
}

@media (max-width: 767.98px) {
    .claim-card-rotator {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .claim-card-rotator {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    .claim-card-rotator > .service-card {
        animation: none;
        opacity: 1;
    }
}

/* ---------- Service Cards ---------- */
.service-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: var(--transition);
    height: 100%;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

/* Whole-card click target (stretched "See more" link) */
.service-card-clickable {
    position: relative;
    cursor: pointer;
}
.service-card-clickable:focus-within {
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
/* Keep the "Enroll Now" button above the stretched link overlay */
.service-card-clickable .btn-animated {
    position: relative;
    z-index: 2;
}

.service-icon {
    width: 56px; height: 56px;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 20px;
}
/* Phosphor icons render on the text baseline; nudge for optical centering */
i[class^="ph-"], i[class*=" ph-"], i.ph { vertical-align: -0.125em; }
.service-icon i[class^="ph-"] { font-size: 1.6rem; vertical-align: 0; }

.service-icon.blue { background: var(--primary); }
.service-icon.orange { background: var(--secondary); }
.service-icon.green { background: #22c55e; }
.service-icon.purple { background: #8b5cf6; }
.service-icon.teal { background: #14b8a6; }
.service-icon.red { background: #ef4444; }

.service-card h5 { font-weight: 700; margin-bottom: 10px; }
.service-card p { color: var(--gray); font-size: .95rem; }
.service-link {
    font-weight: 600;
    font-size: .9rem;
    display: inline-flex;
    align-items: center;
}
.service-link:hover { gap: 4px; }

/* ---------- Multi-item Carousel (coverage cards) ---------- */
.multi-carousel-wrap {
    position: relative;
    padding: 0 8px;
}

.multi-carousel-container {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    padding: 14px 0 24px;
    cursor: grab;
    touch-action: pan-y;
}

.multi-carousel-container:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
    border-radius: var(--radius-lg);
}

.multi-carousel-container.dragging {
    cursor: grabbing;
    user-select: none;
    -webkit-user-select: none;
}

/* Scroll-linked drift layer */
.multi-carousel-viewport {
    will-change: transform;
}

.multi-carousel-inner {
    display: flex;
    align-items: stretch;
    transition: transform .5s cubic-bezier(.25, .46, .45, .94);
}

.multi-carousel-item {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
    padding: 0 12px;
    box-sizing: border-box;
    display: flex;
}

.multi-carousel-item > .service-card {
    width: 100%;
}

.multi-carousel-item img,
.multi-carousel-item svg {
    -webkit-user-drag: none;
}

.multi-carousel-control-prev,
.multi-carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 5;
}

.multi-carousel-control-prev:hover,
.multi-carousel-control-next:hover {
    filter: brightness(1.1);
    transform: translateY(-50%) scale(1.08);
}

.multi-carousel-control-prev { left: -14px; }
.multi-carousel-control-next { right: -14px; }

@media (max-width: 1279.98px) {
    .multi-carousel-item {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 850px) {
    .multi-carousel-item {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .multi-carousel-control-prev { left: 0; }
    .multi-carousel-control-next { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .multi-carousel-inner { transition: none; }
}

/* ---------- Report a Claim ---------- */
#reportaclaim {
    position: relative;
    overflow: hidden;
}
#reportaclaim::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 55%;
    height: 100%;
    background: linear-gradient(225deg, transparent 40%, rgba(62,149,209,0.08) 40%, rgba(62,149,209,0.08) 100%);
    clip-path: polygon(0 0, 70% 0, 100% 100%, 0 100%);
    transform: scaleY(-1);
    z-index: 0;
}
#reportaclaim::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 45%;
    height: 100%;
    background: linear-gradient(200deg, transparent 20%, rgba(62,149,209,0.15) 20%, rgba(62,149,209,0.15) 100%);
    clip-path: polygon(0 0, 60% 0, 90% 100%, 0 100%);
    transform: scaleY(-1);
    z-index: 0;
}
#reportaclaim > .container {
    position: relative;
    z-index: 1;
}

/* ---------- About ---------- */
.about-check-item {
    display: flex;
    align-items: center;
    font-weight: 500;
}
.about-image-placeholder {
    background: var(--gradient-hero);
    border-radius: var(--radius-lg);
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #cbd5e1;
}

/* ---------- Stats ---------- */
#stats {
    background: linear-gradient(135deg, #222222 0%, #111111 100%);
}
.stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
}
.stat-label {
    font-size: .95rem;
    opacity: .85;
}

/* ---------- Testimonials ---------- */
.testimonial-swiper {
    padding-bottom: 50px;
}
.testimonial-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid #f1f5f9;
}
.testimonial-avatar {
    color: var(--primary);
    opacity: .6;
}
.testimonial-card p {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.8;
}
.swiper-pagination-bullet-active {
    background: var(--primary) !important;
}

/* ---------- Contact ---------- */
.contact-form-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}
.contact-info-item {
    display: flex;
    align-items: flex-start;
    color: var(--gray);
}
.form-control {
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    padding: 12px 18px;
    font-size: .95rem;
    transition: var(--transition);
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(62,149,209,.15);
}
.social-links { display: flex; gap: 12px; }
.social-link {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: .9rem;
}
.social-link:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-3px);
}

/* ---------- Utility Sidebar ---------- */
.utility-sidebar {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    margin-top: 60px;
}
.col-lg-4:has(.utility-sidebar) {
    position: sticky;
    top: 100px;
    align-self: flex-start;
}
.utility-sidebar-title {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

/* ---------- Collapsible Reminder ---------- */
.reminder-collapse {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
}
.reminder-collapse.expanded {
    grid-template-rows: 1fr;
}
.reminder-collapse-inner {
    overflow: hidden;
}

.utility-links li {
    margin-bottom: 12px;
}
.utility-links a {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: var(--radius);
    color: var(--dark);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    background: #fff;
    border: 1px solid #e2e8f0;
}
.utility-links a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateX(4px);
}
.utility-links a i {
    color: var(--primary);
    min-width: 20px;
}
.utility-links a:hover i {
    color: #fff;
}

/* ---------- Page Triangle Background ---------- */
.page-hero-bg {
    position: relative;
    background: var(--gradient-hero);
    min-height: 100vh;
}
.page-hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    background: linear-gradient(135deg, transparent 40%, rgba(62,149,209,0.08) 40%, rgba(62,149,209,0.08) 100%);
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 0;
}
.page-hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    background: linear-gradient(160deg, transparent 20%, rgba(62,149,209,0.15) 20%, rgba(62,149,209,0.15) 100%);
    clip-path: polygon(40% 0, 100% 0, 100% 100%, 10% 100%);
    z-index: 0;
}
.page-hero-bg > .container {
    position: relative;
    z-index: 1;
}

/* ---------- Footer ---------- */
.footer-section {
    background: var(--dark);
    padding: 60px 0 0;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
}
.footer-links li > i {
    flex-shrink: 0;
    margin-top: 3px;
}
.footer-links a,
.footer-section a.text-white-50,
.footer-section a.text-white-50.small {
    color: rgba(255,255,255,.7);
    font-size: .9rem;
    text-decoration: none;
    text-underline-offset: 0.2rem;
    transition: color 0.2s ease, text-decoration-color 0.2s ease, text-decoration-thickness 0.2s ease;
}
.footer-links a:hover,
.footer-links a:focus-visible,
.footer-section a.text-white-50:hover,
.footer-section a.text-white-50:focus-visible,
.footer-section a.text-white-50.small:hover,
.footer-section a.text-white-50.small:focus-visible {
    color: #fff;
    text-decoration: underline;
    text-decoration-thickness: 2px;
}
.footer-section .input-group .form-control {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    color: #fff;
    border-radius: var(--radius) 0 0 var(--radius);
}
.footer-section .input-group .form-control::placeholder { color: rgba(255,255,255,.4); }
.footer-section .input-group .btn {
    border-radius: 0 var(--radius) var(--radius) 0;
}

/* ---------- Footer contact switcher ---------- */
.footer-contact-switch {
    position: relative;
}
.footer-tab-input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    overflow: hidden;
}
.footer-switch-title {
    color: #fff;
    font-weight: 600;
    margin-bottom: 4px;
}
.footer-switch-hint {
    color: rgba(255,255,255,.55);
    font-size: .85rem;
    margin-bottom: 20px;
}
.footer-tab-list {
    list-style: disc;
    padding: 0 0 0 1.25rem;
    margin: 0;
}
.footer-tab-list li {
    margin-bottom: 14px;
}
.footer-tab-list li::marker {
    color: var(--primary);
    font-size: 1.1em;
}
.footer-tab {
    display: inline-block;
    margin: 0;
    cursor: pointer;
    color: rgba(255,255,255,.7);
    font-size: .95rem;
    font-weight: 500;
    line-height: 1.4;
    text-underline-offset: 0.2rem;
    transition: color .25s ease, text-decoration-color .25s ease;
}
.footer-tab:hover {
    color: #fff;
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

/* Active item */
#fcIndividual:checked ~ .footer-switch-row .footer-tab[for="fcIndividual"],
#fcAgency:checked ~ .footer-switch-row .footer-tab[for="fcAgency"],
#fcRia:checked ~ .footer-switch-row .footer-tab[for="fcRia"],
#fcCyber:checked ~ .footer-switch-row .footer-tab[for="fcCyber"] {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-decoration-color: var(--primary);
}

/* Keyboard focus ring on the visible label */
#fcIndividual:focus-visible ~ .footer-switch-row .footer-tab[for="fcIndividual"],
#fcAgency:focus-visible ~ .footer-switch-row .footer-tab[for="fcAgency"],
#fcRia:focus-visible ~ .footer-switch-row .footer-tab[for="fcRia"],
#fcCyber:focus-visible ~ .footer-switch-row .footer-tab[for="fcCyber"] {
    outline: 2px solid #fff;
    outline-offset: 3px;
    border-radius: 2px;
}

/* Stacked cards — all share one grid cell so height stays stable */
.footer-contact-panels {
    display: grid;
}
.footer-contact-card {
    grid-area: 1 / 1;
    align-self: start;
    background: #fff;
    border: 1px solid #f1f5f9;
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 28px 26px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease, visibility .3s;
}
#fcIndividual:checked ~ .footer-switch-row .footer-contact-card[data-panel="fcIndividual"],
#fcAgency:checked ~ .footer-switch-row .footer-contact-card[data-panel="fcAgency"],
#fcRia:checked ~ .footer-switch-row .footer-contact-card[data-panel="fcRia"],
#fcCyber:checked ~ .footer-switch-row .footer-contact-card[data-panel="fcCyber"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
.footer-card-title {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}
.footer-card-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-card-links li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: .9rem;
}
.footer-card-links li:last-child { margin-bottom: 0; }
.footer-card-links li > i {
    flex-shrink: 0;
    width: 16px;
    margin-top: 4px;
    text-align: center;
    color: var(--primary);
}
.footer-card-links a {
    color: var(--dark);
    text-decoration: none;
    text-underline-offset: 0.2rem;
    transition: color .2s ease;
}
.footer-card-links a:hover,
.footer-card-links a:focus-visible {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-thickness: 2px;
}
.legal-disclaimer {
    display: block;
    margin: .75rem 0 0;
    padding-top: .15rem;
    color: #52616f;
    font-size: .8rem;
    font-weight: 400;
    font-style: normal;
    line-height: 1.6;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}
.legal-disclaimer--center {
    max-width: 44rem;
    margin-inline: auto;
    text-align: center;
}
.footer-card-links address {
    margin: 0;
    color: var(--gray);
    font-style: normal;
    line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
    .footer-tab,
    .footer-contact-card {
        transition: none;
    }
}

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 3px solid transparent;
    background: transparent;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    box-shadow: 0 0 0 2px var(--primary);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 999;
}
.back-to-top::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--primary);
    border-radius: 50%;
    transform: scale(0.2);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}
.back-to-top i {
    position: relative;
    z-index: 1;
    transition: all 0.6s ease;
}
.back-to-top:hover,
.back-to-top:focus-visible {
    color: #fff;
    box-shadow: 0 0 0 12px transparent;
    border-radius: 16px;
    transform: translateY(-3px);
}
.back-to-top:hover::before,
.back-to-top:focus-visible::before {
    transform: scale(1.8);
    opacity: 1;
    border-radius: 16px;
}
.back-to-top.visible { opacity: 1; visibility: visible; }

/* ---------- Blazor Error Boundary ---------- */
.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}
.blazor-error-boundary::after {
    content: "An error has occurred.";
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .nav-main {
        box-shadow: var(--shadow-sm);
        padding: 8px 0;
    }

    .nav-lockup-logo { height: 56px; }
    .nav-lockup-t1 { font-size: .88rem; }
    .nav-lockup-t2 { font-size: .62rem; }

    #mainNav .navbar-toggler {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: #fff;
        border: 1px solid #dbe7f3 !important;
        box-shadow: 0 4px 14px rgba(17,17,17,.08);
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    #mainNav .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(62,149,209,.2);
    }

    #mainNav .navbar-nav {
        gap: 8px !important;
    }

    #mainNav .nav-link {
        font-size: 1rem;
        font-weight: 700;
        padding: 12px 14px;
        text-align: center;
        border-radius: 12px;
        background: #fff;
        border: 1px solid #e7edf5;
    }

    #mainNav .nav-link:hover,
    #mainNav .nav-link:focus {
        background: #f3f8fd;
        border-color: #cfe3f4;
        color: var(--primary-dark);
    }

    .hero-section { min-height: auto; padding-top: 160px; padding-bottom: 60px; }
    .section-padding { padding: 60px 0; }
    .page-hero-top { padding-top: 66px; }
    .hero-badges-row { gap: 40px; }
    .contact-form-card { padding: 24px; }

    #mainNav .navbar-collapse {
        background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
        border-radius: 16px;
        padding: 16px;
        margin-top: 12px;
        border: 1px solid #d9e8f5;
        box-shadow: var(--shadow-lg);
    }

    #mainNav .dropdown-menu {
        position: static;
        float: none;
        transform: none;
        border: 1px solid #e4edf7;
        border-radius: 12px;
        background: #f8fbff;
        box-shadow: none;
        margin-top: 8px;
        padding: 8px;
    }

    #mainNav .dropdown-item {
        border-radius: 10px;
        padding: 10px 12px;
        font-size: .95rem;
        text-align: center;
    }

    #mainNav .dropdown-divider {
        margin: 6px 0;
        border-top-color: #dbe7f3;
    }

    #mainNav .btn-nav-cta {
        width: 100%;
        justify-content: center;
        text-align: center;
        font-size: .95rem;
        padding: 10px 16px !important;
    }
}

@media (max-width: 575.98px) {
    .page-hero-top { padding-top: 44px; }
    .hero-title { font-size: 1.8rem; }
    .hero-eyebrow { font-size: .7rem; padding: 6px 14px; }
    .stat-number { font-size: 1.8rem; }
    .hero-badges-row { gap: 24px; }
    .hero-float-icon { width: 56px; height: 56px; font-size: 1.2rem; }
    .footer-tab { font-size: .9rem; }
    .footer-contact-card { padding: 22px 20px; }
}

/* Coverage cards: switch to 2 per row at 1445px */
@media (max-width: 1600px) {
    #coverages .row > [class*="col-xl-3"],
    #enrollModal .row > [class*="col-xl-3"] {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Coverage buttons: hide quote suffix from 1767px down */
@media (max-width: 1767px) {
    #coverages .service-card .btn-animated .d-xl-inline {
        display: none !important;
    }
}

/* Coverage buttons: bring quote suffix back at 1600px and below */
@media (max-width: 1600px) {
    #coverages .service-card .btn-animated .d-xl-inline {
        display: inline !important;
    }
}

/* Coverage buttons: hide quote suffix again at 1200px and below */
@media (max-width: 1200px) {
    #coverages .service-card .btn-animated .d-xl-inline {
        display: none !important;
    }
}

/* Coverage cards: single column on mobile */
@media (max-width: 815px) {
    #coverages .row > [class*="col-"],
    #enrollModal .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Enroll modal cards: single column at tablet widths */
@media (max-width: 980px) {
    #enrollModal .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 1200px) {
    #mainNav .nav-link {
        font-size: 1rem;
        padding: 10px 12px;
        letter-spacing: 0.3px;
    }

    #mainNav .btn-nav-cta {
        font-size: 0.9rem;
        padding: 8px 34px !important;
    }
}

/* ---------- Mobile header actions (phone + Enroll CTA beside the logo) ---------- */
@media (max-width: 991.98px) {
    /* The pill scales fluidly with the viewport instead of stepping at breakpoints,
       and drops the sliding arrows so it stays compact */
    #mainNav .nav-mobile-actions .btn-nav-cta {
        width: auto !important;
        margin: 0;
        align-self: center;
        font-size: clamp(.68rem, 1.9vw, .88rem) !important;
        padding: clamp(5px, 1.1vw, 9px) clamp(14px, 3.4vw, 26px) !important;
        border-width: clamp(2px, .5vw, 4px);
        gap: clamp(2px, .6vw, 4px);
    }
    #mainNav .nav-mobile-actions .btn-nav-cta .text { font-size: inherit; }
    #mainNav .nav-mobile-actions .btn-nav-cta svg { display: none; }
    #mainNav .nav-mobile-actions .btn-nav-cta .text,
    #mainNav .nav-mobile-actions .btn-nav-cta:hover .text { transform: none; }
}
@media (max-width: 767.98px) {
    /* Keep the wordmark next to the mark, just scaled down to fit */
    .nav-lockup { gap: 8px; min-width: 0; }
    .nav-lockup-logo { height: 48px; }
    .nav-lockup-t1 { font-size: .74rem; }
    .nav-lockup-t2 { font-size: .54rem; letter-spacing: .1em; }
    /* No room for the phone block - the numbers stay reachable in the footer */
    .nav-phone { display: none; }
}
@media (max-width: 479.98px) {
    /* Keep the larger mark, CTA and toggler on the same row. */
    .nav-lockup { flex-shrink: 1; gap: 6px; max-width: 122px; }
    .nav-lockup-words { display: none; }
    .nav-lockup-t1 {
        font-size: .62rem;
        white-space: normal;
    }
    .nav-lockup-t2 {
        font-size: .46rem;
        letter-spacing: .06em;
        white-space: normal;
    }
    .nav-main > .container {
        gap: 8px;
        padding-left: 10px;
        padding-right: 10px;
    }
    .nav-mobile-actions { gap: 6px; }
    #mainNav .navbar-toggler {
        width: 38px;
        height: 38px;
    }
}
