/* Shared customer-facing polish layer.
   Loaded after each page's original CSS so it can unify the mixed templates. */
:root {
  --lua-bg: #fbfaf8;
  --lua-surface: #ffffff;
  --lua-surface-soft: #f4f7fb;
  --lua-navy: #111b31;
  --lua-ink: #17223a;
  --lua-muted: #536078;
  --lua-line: #e3e8f0;
  --lua-blue: #146bb3;
  --lua-blue-dark: #0f578f;
  --lua-green: #24764f;
  --lua-gold: #d8a335;
  --lua-gold-soft: #f2c561;
  --lua-shadow: 0 20px 55px rgba(17, 27, 49, .09);
}

html {
  scroll-padding-top: 88px;
}

body,
body.v8-page,
body:has(.medicare-page),
body:has(.landing-page) {
  background: var(--lua-bg) !important;
  color: var(--lua-ink) !important;
}

body {
  text-rendering: optimizeLegibility;
}

a,
button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
h4 {
  color: var(--lua-navy);
  letter-spacing: 0 !important;
}

p {
  color: var(--lua-muted);
}

img {
  image-rendering: auto;
}

.wrap {
  width: min(1180px, calc(100% - 48px));
}

.topbar,
.brand-header {
  min-height: 86px !important;
  background: rgba(255, 255, 255, .98) !important;
  color: var(--lua-navy) !important;
  border-bottom: 1px solid var(--lua-line) !important;
  box-shadow: 0 8px 28px rgba(17, 27, 49, .04);
}

.brand-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  padding: 12px 24px;
}

.brand img,
.brand-full img {
  width: 112px !important;
  max-width: 112px !important;
}

.brand-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  color: var(--lua-muted);
  font-weight: 700;
}

.top-actions,
.nav-actions {
  align-items: center;
  gap: 14px;
}

.mobile,
.menu {
  display: none !important;
}

.phone,
.coming {
  color: var(--lua-navy) !important;
  font-weight: 800;
}

.coming {
  display: inline-flex !important;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--lua-line);
  border-radius: 999px;
  background: var(--lua-surface-soft);
}

.phone {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
}

.nav {
  height: auto !important;
  min-height: 60px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 0 24px;
  background: rgba(255, 255, 255, .96) !important;
  color: var(--lua-navy) !important;
  border-bottom: 1px solid var(--lua-line) !important;
  box-shadow: 0 10px 24px rgba(17, 27, 49, .04);
}

.nav-inner,
.nav {
  align-items: center;
}

.nav > .links,
.nav > .nav-actions {
  display: flex;
  align-items: center;
}

.nav > .nav-actions {
  gap: 12px;
}

.nav-icon,
.sticky-icon {
  display: none !important;
}

.links {
  gap: 24px !important;
  color: var(--lua-navy);
  font-family: Georgia, serif;
  font-size: 15px !important;
}

.links a {
  color: #3f4a61 !important;
  opacity: 1 !important;
}

.links a.active,
.links a:hover {
  color: var(--lua-blue) !important;
}

.links .dropdown:after {
  color: var(--lua-gold) !important;
}

.btn,
.apply,
.lead-form button,
.lp-form button {
  border-radius: 7px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  min-height: 46px;
}

.btn.gold,
.apply,
.lead-form button,
.lp-form button {
  background: var(--lua-blue) !important;
  color: #fff !important;
  border: 1px solid var(--lua-blue) !important;
  box-shadow: 0 12px 26px rgba(20, 107, 179, .18) !important;
}

.btn.outline {
  background: #fff !important;
  color: var(--lua-navy) !important;
  border: 1px solid var(--lua-line) !important;
  box-shadow: 0 10px 22px rgba(17, 27, 49, .06);
}

.btn:hover,
.apply:hover,
.service-card:hover,
.v8-card:hover,
.v8-resource:hover,
.path-card:hover,
.med-path-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 56px rgba(20, 107, 179, .14) !important;
}

.spanish {
  display: none !important;
}

.site-language-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
}

.site-language-control label {
  color: var(--lua-muted);
  font-size: 12px;
  font-weight: 800;
}

.site-language-control select {
  appearance: none;
  min-width: 148px;
  border: 1px solid var(--lua-line);
  border-radius: 8px;
  background: #fff;
  color: var(--lua-navy);
  padding: 12px 34px 12px 13px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(17, 27, 49, .05);
}

.site-language-control:after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--lua-muted);
  border-bottom: 2px solid var(--lua-muted);
  transform: rotate(45deg);
  margin-left: -30px;
  margin-top: -4px;
  pointer-events: none;
}

#google_translate_element {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.goog-te-banner-frame,
.goog-te-gadget-icon {
  display: none !important;
}

body {
  top: 0 !important;
}

.hero,
.page-hero,
.medicare-hero,
.med-hero,
.v8-hero,
.lp-hero {
  background: var(--lua-bg) !important;
  border-bottom: 1px solid var(--lua-line) !important;
}

.hero h1,
.page-hero h1,
.medicare-copy h1,
.med-copy h1,
.v8-copy h1,
.lp-copy h1 {
  color: var(--lua-navy) !important;
  line-height: 1.02 !important;
}

.hero h1 span,
.page-hero h1 span,
.medicare-copy h1 span,
.med-copy h1 span,
.v8-copy h1 span,
.lp-copy h1 span,
.gold-text {
  color: var(--lua-blue) !important;
}

.eyebrow,
.v8-eyebrow,
.lp-eyebrow,
.section-eyebrow,
.med-copy .eyebrow {
  color: var(--lua-green) !important;
  font-family: Georgia, serif;
  font-size: 15px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.hero p,
.page-hero p,
.medicare-copy p,
.med-copy p,
.v8-copy p,
.lp-copy p,
.center > p,
.v8-section p.lead,
.lp-center p {
  color: var(--lua-muted) !important;
  max-width: 62ch;
}

.page-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: 42px;
  padding: 74px 0 !important;
  padding-left: max(24px, calc((100vw - 1180px) / 2)) !important;
  padding-right: max(24px, calc((100vw - 1180px) / 2)) !important;
}

.page-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--lua-bg) 0%, rgba(251, 250, 248, .92) 48%, rgba(251, 250, 248, .48) 100%),
    var(--hero-img) right center / cover no-repeat;
  opacity: 1;
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

.service-photo {
  min-height: 340px;
  border-radius: 8px;
  background: var(--hero-img) center / cover no-repeat;
  box-shadow: var(--lua-shadow);
  border: 1px solid rgba(255, 255, 255, .72);
}

main > .section:not(.v8-section):not(.lp-section) {
  width: min(1180px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

.v8-hero:before,
.med-hero:before,
.lp-hero:before {
  opacity: .22 !important;
  filter: saturate(.95);
}

.v8-hero:after,
.med-hero:after,
.lp-hero:after {
  background: linear-gradient(90deg, var(--lua-bg) 0%, rgba(251, 250, 248, .92) 47%, rgba(251, 250, 248, .58) 100%) !important;
}

.v8-hero .wrap,
.med-hero .wrap,
.lp-hero .wrap {
  position: relative;
  z-index: 2;
}

.services,
.section,
.v8-section,
.lp-section,
.timeline-section,
.resource-tie,
.wizard-section,
.resource-section,
.partners {
  background: var(--lua-bg) !important;
  color: var(--lua-ink) !important;
}

.section h2,
.center h2,
.v8-section h2,
.lp-center h2,
.lp-split h2,
.path-title h2,
.wizard-left h2,
.wizard-right h2,
.resource-header h2,
.final-banner h2 {
  color: var(--lua-navy) !important;
}

.card,
.selector-grid a,
.service-card,
.path-card,
.med-path-card,
.resource-card,
.v8-card,
.v8-resource,
.v8-box,
.v8-panel,
.v8-step,
.timeline div,
.timeline-item,
.wizard-box,
.wizard-result,
.wizard-options label,
.lp-card,
.lp-form-card,
.lead-form,
.faq details,
.faq-list details,
.lp-faq details,
.v8-faq div,
.v8-partners,
.carrier,
.final-banner,
.v8-final,
.lp-final-box,
.contact > form,
.qr {
  background: var(--lua-surface) !important;
  color: var(--lua-ink) !important;
  border: 1px solid var(--lua-line) !important;
  border-radius: 8px !important;
  box-shadow: var(--lua-shadow);
}

.v8-card-body,
.v8-resource-body,
.path-card div,
.med-path-card .body,
.resource-card div,
.service-body {
  background: #fff !important;
}

.service-body p,
.path-card p,
.med-path-card p,
.resource-card p,
.v8-card p,
.v8-resource p,
.v8-box p,
.lp-card p,
.faq-list p,
.lp-faq p,
.lead-form label,
.consent,
.lp-note,
.lp-disclaimer {
  color: var(--lua-muted) !important;
}

.service-body h3,
.path-card h3,
.med-path-card h3,
.resource-card h3,
.v8-card h3,
.v8-resource h3,
.v8-box h3,
.lp-card h3,
.timeline-item b,
.timeline b {
  color: var(--lua-navy) !important;
}

.service-img,
.path-card img,
.med-path-card img,
.resource-card img,
.v8-card-img,
.v8-resource-img,
.v8-photo,
.med-photo,
.lp-split img,
.final-banner img,
.v8-final img {
  overflow: hidden;
  background-color: #e9eef5;
  border-color: var(--lua-line) !important;
}

.service-img,
.path-card img,
.med-path-card img,
.resource-card img,
.v8-card-img img,
.v8-resource-img img,
.v8-photo img,
.med-photo img,
.lp-split img,
.final-banner img,
.v8-final img,
.hero-card {
  filter: saturate(1.04) contrast(1.01);
}

.service-img,
.path-card img,
.med-path-card img,
.v8-card-img,
.v8-resource-img,
.resource-card img {
  aspect-ratio: 16 / 10;
  height: auto !important;
  min-height: 150px;
}

.lua-trust-strip {
  background: var(--lua-bg);
  border-bottom: 1px solid var(--lua-line);
  padding: 22px 0;
}

.lua-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.lua-trust-grid div {
  min-height: 78px;
  padding: 16px 18px;
  border: 1px solid var(--lua-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(17, 27, 49, .06);
}

.lua-trust-grid strong {
  display: block;
  color: var(--lua-navy);
  font-size: 15px;
  line-height: 1.25;
}

.lua-trust-grid span {
  display: block;
  margin-top: 5px;
  color: var(--lua-muted);
  font-size: 13px;
  line-height: 1.35;
}

.round-icon,
.card-icon,
.v8-icon,
.lp-icon,
.timeline-number,
.v8-num,
.trust-icon {
  background: #fff !important;
  color: var(--lua-blue) !important;
  border-color: var(--lua-gold) !important;
}

.learn,
.path-card strong,
.med-path-card strong,
.v8-card a,
.v8-resource a,
.resource-item h4,
.footer h4,
.lp-bullets div:before,
.faq-list summary:after {
  color: var(--lua-blue) !important;
}

.lp-bullets .lp-trust-strip:before {
  content: none !important;
  display: none !important;
}

.checklist,
.lp-list,
.v8-checks,
.checks {
  gap: 12px;
}

.checklist p,
.lp-list div,
.v8-check,
.checks label,
.lp-bullets div,
.lp-trust-strip span {
  background: var(--lua-surface-soft) !important;
  color: var(--lua-ink) !important;
  border: 1px solid var(--lua-line) !important;
  border-radius: 8px !important;
  padding: 12px 14px !important;
}

.lead-form input,
.lead-form select,
.lead-form textarea,
.lp-form input,
.lp-form select,
.lp-form textarea,
.v8-form input,
.v8-form select,
.v8-form textarea {
  background: #fff !important;
  color: var(--lua-navy) !important;
  border: 1px solid var(--lua-line) !important;
  border-radius: 7px !important;
  min-height: 46px;
}

.lead-form input::placeholder,
.lp-form input::placeholder,
.v8-form input::placeholder,
.lead-form textarea::placeholder,
.lp-form textarea::placeholder,
.v8-form textarea::placeholder {
  color: #778196;
}

.lua-form-status {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 7px;
  background: rgba(20, 107, 179, .1);
  border: 1px solid rgba(20, 107, 179, .24);
  color: var(--lua-navy);
  font-weight: 700;
  line-height: 1.45;
}

.lua-form-status[data-type="success"] {
  background: rgba(35, 120, 83, .1);
  border-color: rgba(35, 120, 83, .26);
  color: #175c3c;
}

.lua-form-status[data-type="error"] {
  background: rgba(176, 59, 59, .1);
  border-color: rgba(176, 59, 59, .28);
  color: #8c2727;
}

.lead-form button:disabled,
.lp-form button:disabled,
.v8-form button:disabled {
  opacity: .72;
  cursor: wait;
}

.community,
.final-cta-inner {
  border-radius: 8px !important;
  border-color: rgba(20, 107, 179, .18) !important;
  box-shadow: var(--lua-shadow);
}

.community:before,
.final-cta-inner {
  background:
    linear-gradient(90deg, rgba(17, 27, 49, .88), rgba(17, 27, 49, .64)),
    url('../assets/resource-center-bg.jpg') center / cover no-repeat !important;
}

.community h2,
.community h2 span,
.community p,
.resource-item p,
.resource-item h4,
.final-cta-inner h2,
.final-cta-inner p {
  color: #fff !important;
}

.footer,
footer.footer,
body > footer:not(.footer) {
  background: #111b31 !important;
  color: #fff !important;
  border-top: 1px solid rgba(255, 255, 255, .08) !important;
}

body > footer:not(.footer) {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, 1fr);
  gap: 28px;
  padding: 42px max(24px, calc((100vw - 1180px) / 2)) 22px;
}

body > footer:not(.footer) a {
  display: block;
  margin: 6px 0;
}

body > footer:not(.footer) .legal {
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.footer p,
.footer a,
.footer .legal,
footer p,
footer a,
footer .legal,
.copyright {
  color: rgba(255, 255, 255, .78) !important;
}

.footer h4,
footer h4 {
  color: #fff !important;
}

.legal,
.copyright,
.lp-disclaimer {
  font-size: 12px !important;
  line-height: 1.55 !important;
}

.lua-compliance-note {
  width: min(1180px, calc(100% - 48px));
  margin: 18px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .wrap {
    width: min(100% - 32px, 1180px) !important;
  }

  .topbar,
  .brand-header {
    min-height: 74px !important;
  }

  .brand img,
  .brand-full img {
    width: 126px !important;
    max-width: 126px !important;
  }

  .brand-meta,
  .nav-actions .apply,
  .hero-trust,
  .v8-proof,
  .med-trust,
  .micro-trust,
  .lp-bullets,
  .lp-trust-strip {
    display: none !important;
  }

  .top-actions,
  .nav-actions {
    display: flex !important;
    margin-left: auto;
  }

  .top-actions > :not(.site-language-control):not(.phone),
  .nav-actions > :not(.site-language-control):not(.coming) {
    display: none !important;
  }

  .phone,
  .coming {
    font-size: 12px;
    min-height: 34px;
    padding: 0 9px;
  }

  .mobile,
  .menu {
    display: block !important;
    margin-left: auto;
    background: #fff !important;
    color: var(--lua-navy) !important;
    border: 1px solid var(--lua-line) !important;
    border-radius: 7px !important;
    padding: 10px 12px !important;
  }

  body.open .links {
    display: grid !important;
    grid-template-columns: 1fr;
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 8px);
    background: #fff;
    border: 1px solid var(--lua-line);
    border-radius: 8px;
    padding: 14px;
    box-shadow: var(--lua-shadow);
    z-index: 60;
  }

  .nav,
  .nav-inner {
    position: sticky;
    top: 0;
  }

  .site-language-control {
    margin-left: auto;
  }

  .site-language-control label {
    display: none;
  }

  .site-language-control select {
    min-width: 122px;
    padding: 10px 30px 10px 11px;
    font-size: 13px;
  }

  .hero,
  .page-hero,
  .medicare-hero,
  .med-hero,
  .v8-hero,
  .lp-hero {
    min-height: auto !important;
    padding: 46px 0 !important;
  }

  .hero-inner,
  .page-hero .wrap,
  .medicare-hero-inner,
  .med-hero-grid,
  .v8-hero-grid,
  .lp-grid,
  .split-grid,
  .lp-split,
  .wizard-box,
  .wizard-panel,
  .final-banner,
  .v8-final,
  .contact {
    grid-template-columns: 1fr !important;
  }

  .hero h1,
  .page-hero h1,
  .medicare-copy h1,
  .med-copy h1,
  .v8-copy h1,
  .lp-copy h1 {
    font-size: clamp(34px, 11vw, 46px) !important;
    line-height: 1.05 !important;
    margin-bottom: 16px !important;
  }

  .hero p,
  .page-hero p,
  .medicare-copy p,
  .med-copy p,
  .v8-copy p,
  .lp-copy p {
    font-size: 16px !important;
    line-height: 1.55 !important;
    max-width: 32ch !important;
  }

  .hero-mark {
    width: 170px !important;
    margin-bottom: 18px !important;
  }

  .hero-buttons,
  .button-row,
  .v8-actions {
    gap: 10px !important;
  }

  .btn,
  .apply {
    width: auto;
    min-width: 0;
    padding: 13px 16px !important;
    font-size: 14px !important;
  }

  .service-grid,
  .med-path-cards,
  .resource-grid,
  .v8-grid-3,
  .v8-grid-4,
  .v8-grid-2,
  .lp-cards,
  .timeline,
  .timeline-grid,
  .faq-list,
  .lp-faq,
  .cards,
  .selector-grid,
  .resource-items,
  .lua-trust-grid,
  .footer-grid {
    grid-template-columns: 1fr !important;
  }

  .section,
  .v8-section,
  .lp-section {
    padding: 46px 0 !important;
  }

  .service-photo,
  .v8-mosaic .wide,
  .v8-mosaic .small,
  .med-photo.large,
  .med-photo.small,
  .lp-split img {
    min-height: 220px !important;
    height: 220px !important;
  }

  .service-card,
  .v8-card,
  .v8-resource,
  .path-card,
  .med-path-card {
    min-height: 0 !important;
  }

  .lead-form,
  .lp-form-card,
  .v8-panel,
  .v8-final .content,
  .final-banner .final-copy {
    padding: 22px !important;
  }

  .copyright {
    display: block !important;
  }
}

@media (max-width: 560px) {
  .hero:after,
  body.light-home .hero:after {
    height: 120px !important;
  }

  .services-intro .eyebrow,
  .center .eyebrow,
  .v8-eyebrow,
  .lp-eyebrow {
    margin-bottom: 8px !important;
  }

  .services-intro h2,
  .section h2,
  .center h2,
  .v8-section h2,
  .lp-center h2 {
    font-size: 30px !important;
    line-height: 1.12 !important;
  }

  .hero-copy p:not(.eyebrow),
  .page-hero p:not(.eyebrow),
  .v8-copy p,
  .med-copy p,
  .lp-copy p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

body:not(.light-home) .community:before,
body:not(.light-home) .final-cta-inner {
  background:
    linear-gradient(90deg, rgba(17, 27, 49, .88), rgba(17, 27, 49, .64)),
    url('page-images-20260621-v2/resource-center-bg.jpg') center / cover no-repeat !important;
}
