/*
 * FED QIC – base styles
 * Ported from the live medicareappeal.com component CSS (Mantine + CSS modules)
 * into plain, readable class names.
 */

:root {
  --purple: #502e91;
  --purple-dark: #2b254b;
  --gray-bg: #f0f0f4;
  --border-light: #dbdcf4;
  --text: #3d3d3d;
  --white: #fff;
  --font: AvenirLTStd, "Avenir LT Std", Avenir, "Avenir Next", Arial, sans-serif;
  --font-medium: AvenirLTStdMdm, "Avenir LT Std", Avenir, "Avenir Next", Arial, sans-serif;
}


*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font); color: var(--text); margin-top: 0; }
p { margin-top: 0; }
img { max-width: 100%; }

:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }

.container { width: 100%; padding: 0 16px; margin: 0 auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 1000;
  background: var(--purple); color: var(--white); padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 8px; }

/* ---------- Header ---------- */
.site-header__bar { background: var(--white); padding: 1em 0; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; }
.site-header__logo-link { display: inline-block; padding: 15px 20px; text-decoration: none; }
.site-header__logo { max-height: 60px; width: auto; height: auto; display: block; }

.nav { display: flex; align-items: center; width: 58.3333%; justify-content: flex-start; }
.nav__link {
  color: var(--purple); text-decoration: none; font-size: 18px; font-weight: 400;
  padding: 14px 25px 10px; display: inline-block; border: 0; border-bottom: 4px solid transparent;
  background: transparent; font-family: inherit; line-height: inherit; cursor: pointer;
  transition: all .2s ease;
}
.nav__link:hover, .nav__link:focus, .nav__link[aria-current="page"], .nav__link[data-active] {
  border-bottom-color: var(--purple);
}
.nav__dropdown-wrapper { position: relative; display: inline-block; }
.nav__dropdown {
  display: none; position: absolute; top: 100%; left: 0; z-index: 100;
  background: var(--purple); min-width: 240px;
}
.nav__dropdown-wrapper:hover .nav__dropdown, .nav__dropdown[data-open] { display: block; }
.nav__dropdown-item {
  display: block; color: var(--white); font-size: 18px; padding: 14px 25px;
  border-top: 2px solid var(--white); text-decoration: none;
}
.nav__dropdown-item:hover, .nav__dropdown-item:focus { background: var(--purple-dark); }
.nav__dropdown-item:focus-visible { outline: 2px solid var(--white); outline-offset: -2px; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--purple);
}
.nav-toggle__bar { display: block; width: 26px; height: 3px; background: currentColor; margin: 5px 0; }

.mobile-menu { display: none; flex-direction: column; background: var(--white); border-top: 1px solid var(--border-light); padding: 8px 0; }
.mobile-menu[data-open] { display: flex; }
.mobile-menu__link { color: var(--purple); text-decoration: none; font-size: 18px; padding: 12px 24px; border-bottom: 1px solid var(--gray-bg); }
.mobile-menu__link:hover, .mobile-menu__link:focus, .mobile-menu__link[aria-current="page"] { background: var(--gray-bg); }
.mobile-menu__label { color: var(--purple); font-size: 18px; font-weight: 700; padding: 12px 24px 4px; }
.mobile-menu__link--sub { padding-left: 40px; font-size: 16px; }

/* ---------- Hero ---------- */
.hero { min-height: clamp(160px, 22vw, 300px); overflow-x: clip; position: relative; background: var(--white); }
.hero__inner { display: flex; align-items: flex-start; }
.hero__content { z-index: 4; width: 25%; padding-top: 25px; }
.hero__title {
  color: var(--purple); font-size: 42px; font-weight: 700; line-height: 1.2;
  border-left: 8px solid var(--purple); padding-left: 15px; margin: 0 0 0 15px;
}
.hero__image { z-index: 2; margin-left: 15%; }
.hero__image img { height: clamp(120px, 22vw, 300px); width: auto; max-width: 45vw; object-fit: contain; display: block; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { color: var(--purple); padding: 20px 0; }
.breadcrumb__list { margin: 0; padding: 0; list-style: none; display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; }
.breadcrumb__item { color: var(--purple); font-size: 16px; }
.breadcrumb__item:not(:last-child)::after { content: "/"; padding-left: 10px; }
.breadcrumb__link { color: var(--purple); text-decoration: underline; font-weight: 700; }
.breadcrumb__link:hover { text-decoration: none; }

/* ---------- Page content ---------- */
.page { padding-top: 40px; padding-bottom: 40px; font-size: 24px; }
.page-title { font-size: 36px; font-weight: 700; margin-bottom: .5em; line-height: 1.35; }
.intro { font-size: 24px; line-height: 1.55; margin-bottom: 1em; }

.link { color: var(--purple); font-size: inherit; font-weight: 700; text-decoration: underline; }
.link:hover { text-decoration: none; }

.paragraph { font-size: 24px; line-height: 1.55; margin-bottom: 1em; }
.paragraph--label { font-weight: 700; }

.list, .list ul { list-style: none; padding-left: 40px; margin: 0; }
.list li { font-size: 24px; padding: 10px 0; }
.list li.address { white-space: pre-line; }
.list li::before { content: "•"; color: var(--purple); font-weight: 700; display: inline-block; width: 1em; margin-left: -1em; }

.sub-heading { font-size: 30px; font-weight: 400; margin-bottom: .5em; line-height: 1.4; }

.gray-panel { background: var(--gray-bg); padding-bottom: 15px; margin: 20px 0; }
.gray-panel__heading {
  margin: 0 auto; padding-top: 20px; border-top: 5px solid var(--purple);
  text-align: center; font-size: 36px; font-weight: 400; line-height: 1.4;
}
.columns { display: flex; flex-wrap: wrap; gap: 2em; }
.gray-panel .columns { padding: 1em 15px 0; }
.columns--spaced { margin-top: 40px; }
.column { flex: 1 1 300px; min-width: 0; }

/* Buttons (site's existing "btnBlue" / "btnGreen" styles) */
.btn {
  display: inline-block; border-radius: 12px; padding: 13px 35px; font-size: 18px; font-family: inherit;
  text-decoration: none; text-align: center; border: 1px solid var(--purple); cursor: pointer;
  color: var(--purple); background: var(--white); min-width: 125px;
}
.btn:hover, .btn:focus-visible { background: var(--purple); color: var(--white); }
.btn--primary { background: var(--gray-bg); font-weight: 700; }
.btn--solid { background: var(--purple); color: var(--white); font-weight: 700; }
.btn--solid:hover, .btn--solid:focus-visible { background: var(--purple-dark); border-color: var(--purple-dark); }

/* ---------- NEW: Part A West online form CTA section ---------- */
.cta-section {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  border-left: 8px solid var(--purple); background: var(--white);
  box-shadow: 0 0 0 1px var(--border-light); padding: 28px 32px; margin: 32px 0 40px;
}
.cta-section__body { flex: 1 1 420px; min-width: 0; }
.cta-section__eyebrow { color: var(--purple); font-size: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.cta-section__heading { color: var(--purple); font-size: 30px; font-weight: 700; margin-bottom: 10px; line-height: 1.3; }
.cta-section__text { font-size: 20px; line-height: 1.5; margin: 0; }
.cta-section__action { flex: 0 0 auto; }

/* Home page */
.hero__title--home { font-size: 48px; font-weight: 400; }
.home { font-size: 24px; max-width: 1348px; padding-left: 0; padding-right: 0; }
.home-hero { max-width: 1348px; padding: 0; }
.home-top { display: flex; gap: 15px; align-items: flex-start; margin-bottom: 40px; }
.home-top--intro { padding: 0 15px; }
.home-top > * { min-width: 0; }
.home-stats { flex: 0 0 38%; }
.home-can-do { flex: 0 0 54%; }
.home-portal { flex: 0 0 47.8%; }
.home-benefits { flex: 0 0 45.5%; }
.home-heading { font-size: 36px; font-weight: 400; line-height: 1.3; margin: 0 0 16px; }
.home-text { font-size: 24px; line-height: 1.55; margin: 0 0 16px; }
.home-stats, .home-benefits { background: var(--purple); color: var(--white); padding: 30px 30px 55px; }
.home-stats__heading, .home-benefits__heading { color: var(--white); font-size: 36px; font-weight: 400; line-height: 1.3; margin: 0 0 20px; }
.home-stat { display: flex; align-items: flex-start; margin-bottom: 16px; }
.home-stat p { margin: 0; }
.home-stat__number { color: var(--border-light); font-size: 72px; line-height: 1.03; }
.home-stat__label { color: var(--white); font-size: 24px; line-height: 1.55; }
.home-benefits { padding-left: 40px; }
.home-benefit { display: flex; align-items: flex-start; gap: 0; margin-bottom: 20px; }
.home-benefit img { width: 68px; height: 68px; flex: 0 0 auto; margin-right: 16px; }
.home-benefit p { margin: 0; font-size: 16px; }
.home-benefit__title { color: var(--white); }
.home-benefit__note { color: var(--border-light); }
.home-buttons { display: flex; flex-wrap: wrap; gap: 20px; margin: 0 0 24px; }
.home-btn {
  display: inline-block; background: var(--white); color: var(--purple); border: 1px solid var(--purple);
  border-radius: 12px; padding: 13px 35px; font-size: 18px; line-height: 1.5; text-decoration: none; margin-bottom: 16px;
}
.home-btn:hover, .home-btn:focus-visible { background: var(--purple); color: var(--white); }
.home-btn--filled { background: var(--gray-bg); font-weight: 700; }
.home-buttons .home-btn { margin: 0; }
.home-about { max-width: 1120px; margin: 0 auto 40px; padding: 0 16px; }
.home-partners__heading { font-size: 30px; font-weight: 400; margin: 0 0 32px; }
.home-partners__list { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: 20px; align-items: center; }
.home-partners__list img { width: 100%; height: auto; display: block; }
.home-more { margin: 0; }
@media (max-width: 900px) {
  .home-top, .home-top--intro { flex-direction: column; padding: 0 16px; gap: 30px; }
  .home-top > * { flex: 1 1 auto; width: 100%; }
  .hero__title--home { font-size: 32px; }
  .home-partners__list { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Footer ---------- */
.site-footer { margin-top: 60px; padding-bottom: 5px; background: var(--white); }
.site-footer__row { display: flex; }
.site-footer__logo { width: 25%; padding: 25px 20px; display: flex; align-items: center; justify-content: center; }
.site-footer__links { width: 50%; background: var(--purple); padding: 25px 0 25px 25px; }
.site-footer__contact { width: 25%; background: var(--purple); }
.site-footer__heading { color: var(--white); font-family: var(--font-medium); font-size: 24px; font-weight: 400; margin: 0 0 1rem; }
.site-footer__list { list-style: none; margin: 0; padding: 0; column-count: 2; width: 400px; max-width: 100%; }
.site-footer__list li { padding: 5px 0; }
.site-footer__link { color: var(--white); text-decoration: none; font-size: 18px; }
.site-footer__link:hover { text-decoration: underline; }
.site-footer__link:focus-visible, .site-footer__legal-link:focus-visible { outline-color: var(--white); }
.site-footer__copyright { width: 25%; text-align: right; padding: 20px 20px 20px 0; color: var(--purple); font-size: 16px; margin: 0; }
.site-footer__legal { width: 75%; background: var(--purple); padding: 20px 0; text-align: center; }
.site-footer__legal-link { color: var(--white); text-decoration: none; font-size: 16px; margin-left: 15px; display: inline-block; }
.site-footer__legal-link:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__inner { align-items: center; }
  .hero__content { padding-top: 0; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .nav-toggle { display: block; }
  .site-header__logo { max-height: 50px; }
  .site-header__logo-link { padding: 8px 12px; }

  .hero { padding: 24px 0; }
  .hero__content { width: 60%; }
  .hero__title { font-size: 24px; margin-left: 0; }
  .hero__image { margin-left: auto; }

  .page { font-size: 18px; }
  .page-title, .gray-panel__heading { font-size: 28px; }
  .intro, .paragraph, .list li { font-size: 18px; }
  .sub-heading { font-size: 24px; }
  .list, .list ul { padding-left: 24px; }
  .btn { padding: 12px 24px; }

  .cta-section { padding: 20px; }
  .cta-section__heading { font-size: 24px; }
  .cta-section__text { font-size: 18px; }

  .site-footer__row { flex-direction: column; }
  .site-footer__logo, .site-footer__links, .site-footer__contact,
  .site-footer__copyright, .site-footer__legal { width: 100%; }
  .site-footer__copyright { text-align: center; padding: 10px 0; }
  .site-footer__list { column-count: 1; }
  .site-footer__legal-link { margin-left: 10px; font-size: 14px; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 22px; }
  .hero__image img { height: 90px; }
}
