/* # Theme variables: stores the blue, red, grey, and shared layout values. */
:root {
  --blue: #1457a8;
  --blue-dark: #0d376d;
  --red: #c8272d;
  --red-dark: #9f1d22;
  --grey-900: #20242b;
  --grey-700: #4e5866;
  --grey-500: #8490a0;
  --grey-200: #dde3ea;
  --grey-100: #f4f6f8;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(32, 36, 43, 0.14);
  --radius: 8px;
}

/* # Base reset: keeps sizing and typography predictable in every browser. */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--white);
  color: var(--grey-900);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  margin: 0;
}

a {
  color: inherit;
}

/* # Form font inheritance: keeps fields and buttons visually consistent. */
button,
input,
select,
textarea {
  font: inherit;
}

/* # Accessibility helper: lets keyboard users jump past repeated navigation. */
.skip-link {
  left: 1rem;
  position: absolute;
  top: -4rem;
  z-index: 20;
}

.skip-link:focus {
  top: 1rem;
}

/* # Header and navigation: styles the sticky top area and five main tabs. */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
  position: sticky;
  top: 0;
  z-index: 10;
}

.top-strip {
  align-items: center;
  background: var(--blue-dark);
  color: var(--white);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.35rem 1rem;
  font-size: 0.9rem;
}

.language-toggle {
  background: var(--white);
  border: 0;
  border-radius: var(--radius);
  color: var(--blue-dark);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  margin-left: auto;
  min-height: 1.8rem;
  padding: 0.35rem 0.65rem;
}

.language-toggle:hover,
.language-toggle:focus {
  background: var(--grey-100);
}

.nav-shell {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  min-height: 4.7rem;
  padding: 0 1.25rem;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 0.8rem;
  text-decoration: none;
}

.brand-logo {
  align-items: center;
  background: var(--white);
  border: 2px solid var(--grey-200);
  border-radius: 50%;
  display: inline-flex;
  height: 3rem;
  justify-content: center;
  overflow: hidden;
  padding: 0.25rem;
  width: 3rem;
}

.brand-logo img {
  display: block;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--grey-700);
  font-size: 0.85rem;
}

.nav-toggle {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  display: none;
  gap: 0.22rem;
  height: 2.6rem;
  justify-content: center;
  padding: 0;
  width: 2.6rem;
}

.nav-toggle span {
  background: var(--grey-900);
  border-radius: 999px;
  display: block;
  height: 2px;
  width: 1.15rem;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 0.55rem;
  font-size: 0.95rem;
}

.page-tab {
  border-radius: var(--radius);
  color: var(--grey-700);
  font-weight: 800;
  min-height: 2.55rem;
  padding: 0.62rem 0.82rem;
  text-decoration: none;
}

.nav-dropdown {
  align-items: center;
  display: inline-flex;
  position: relative;
}

.subtab-toggle {
  align-items: center;
  background: var(--grey-100);
  border: 0;
  border-bottom-right-radius: var(--radius);
  border-left: 1px solid var(--grey-200);
  border-top-right-radius: var(--radius);
  color: var(--blue-dark);
  cursor: pointer;
  display: none;
  font-weight: 800;
  height: 2.55rem;
  justify-content: center;
  width: 2rem;
}

.subtab-menu {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: none;
  min-width: 11rem;
  padding: 0.35rem;
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 20;
}

.subtab-menu::before {
  content: "";
  height: 0.45rem;
  left: 0;
  position: absolute;
  right: 0;
  top: -0.45rem;
}

.subtab-menu a {
  border-radius: 6px;
  color: var(--grey-700);
  display: block;
  font-weight: 800;
  padding: 0.65rem 0.75rem;
  text-decoration: none;
}

.subtab-menu a:hover,
.subtab-menu a:focus {
  background: var(--grey-100);
  color: var(--blue);
}

.nav-dropdown:hover .subtab-menu,
.nav-dropdown:focus-within .subtab-menu,
.nav-dropdown.is-open .subtab-menu {
  display: block;
}

.page-tab:hover,
.page-tab:focus,
.page-tab.is-active {
  background: var(--grey-100);
  color: var(--blue);
}

.nav-cta {
  background: var(--red);
  color: var(--white) !important;
}

.nav-cta.is-active,
.nav-cta:hover,
.nav-cta:focus {
  background: var(--red-dark);
  color: var(--white) !important;
}

/* # Page tabs: shows one primary website tab at a time. */
.tab-page {
  margin: 0 auto;
  max-width: 1180px;
  min-height: 56vh;
  padding: clamp(2rem, 5vw, 4rem) 1.25rem;
}

.tab-page[hidden] {
  display: none;
}

.tab-heading {
  max-width: 780px;
}

.eyebrow {
  color: var(--red);
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 0.65rem;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  line-height: 1;
  margin-bottom: 0.85rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.55rem;
}

/* # Home tab: keeps the first tab intentionally small and action-focused. */
.home-hero {
  align-items: center;
  background:
    linear-gradient(rgba(13, 55, 109, 0.74), rgba(20, 87, 168, 0.64)),
    url("photos/companylogo.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: min(126%, 1180px) auto;
  border-radius: var(--radius);
  color: var(--white);
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  min-height: 410px;
  padding: clamp(1.5rem, 5vw, 3.25rem);
}

.home-copy {
  background: rgba(13, 55, 109, 0.48);
  border-radius: var(--radius);
  padding: clamp(1rem, 3vw, 1.35rem);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.home-hero .eyebrow {
  color: #ffd7d9;
}

.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.24rem);
  max-width: 650px;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.logo-placeholder {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px dashed var(--grey-500);
  border-radius: var(--radius);
  color: var(--grey-900);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 15rem;
  padding: 1.25rem;
  text-align: center;
}

.logo-card {
  background: var(--white);
}

.logo-card img {
  aspect-ratio: 1;
  border: 4px solid var(--grey-200);
  border-radius: 50%;
  display: block;
  max-height: 13rem;
  max-width: 13rem;
  object-fit: cover;
}

.logo-placeholder span {
  color: var(--grey-700);
  font-weight: 800;
}

.logo-placeholder b {
  color: var(--blue);
  font-size: 1.35rem;
  margin-top: 0.8rem;
}

/* # Buttons: shared action styles for links and form submits. */
.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
}

.button.primary {
  background: var(--red);
  color: var(--white);
}

.button.primary:hover,
.button.primary:focus {
  background: var(--red-dark);
}

.button.secondary {
  background: var(--white);
  border-color: var(--grey-200);
  color: var(--blue-dark);
}

.home-actions .button,
.home-hero .button.secondary,
.home-hero .button.primary {
  background: var(--white);
  border-color: var(--white);
  color: var(--blue-dark);
  text-shadow: none;
}

.home-actions .button:hover,
.home-actions .button:focus {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.button.muted {
  background: var(--grey-100);
  border-color: var(--grey-200);
  color: var(--grey-700);
  cursor: default;
}

/* # Panels and company lists: supports Medicare, P&C, and About tab content. */
.split-layout,
.option-layout,
.about-grid,
.contact-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.about-grid,
.contact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-panel,
.option-list-panel,
.contact-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.info-panel p,
.option-list-panel p,
.contact-card p {
  color: var(--grey-700);
}

.option-layout {
  align-items: start;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.4fr);
  margin-top: 1.5rem;
}

.option-list-panel {
  position: sticky;
  top: 7.8rem;
}

.option-list-panel .company-list {
  grid-template-columns: 1fr;
}

.crew-card {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: 5rem minmax(0, 1fr);
}

.crew-card img {
  aspect-ratio: 1;
  border: 3px solid var(--grey-200);
  border-radius: 50%;
  display: block;
  object-fit: cover;
  width: 5rem;
}

.crew-card strong {
  color: var(--blue-dark);
  display: block;
  margin-bottom: 0.25rem;
}

.crew-card p {
  margin-bottom: 0;
}

.company-list {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

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

.company-list li {
  background: var(--grey-100);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  font-weight: 800;
  min-height: 2.8rem;
  padding: 0;
}

.insurance-choice {
  background: transparent;
  border: 0;
  color: var(--grey-900);
  cursor: pointer;
  display: block;
  font-weight: 800;
  min-height: 2.8rem;
  padding: 0.65rem 0.75rem;
  text-align: left;
  width: 100%;
}

.insurance-choice:hover,
.insurance-choice:focus {
  color: var(--blue);
}

.company-picker {
  margin-top: 0.8rem;
}

.company-summary {
  background: var(--grey-100);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  margin: 1rem 0 0;
  padding: 0.85rem;
}

.privacy-note,
.trust-note {
  background: var(--grey-100);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 0.75rem;
}

/* # Insurance detail pages: explains a selected insurance option before forms are shown. */
.insurance-detail {
  background: var(--grey-100);
  border: 1px solid var(--grey-200);
  border-left: 5px solid var(--blue);
  border-radius: var(--radius);
  margin-top: 1.5rem;
  padding: 1.25rem;
}

.option-detail-panel {
  margin-top: 0;
}

.insurance-detail h3 {
  color: var(--blue-dark);
}

.detail-list {
  color: var(--grey-700);
  margin: 1rem 0;
  padding-left: 1.2rem;
}

.detail-list li {
  margin-bottom: 0.45rem;
}

.start-panel {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: space-between;
  margin-top: 1rem;
  padding: 1rem;
}

.start-panel p {
  color: var(--grey-900);
  font-weight: 800;
  margin-bottom: 0;
}

.form-reveal[hidden] {
  display: none;
}

.form-dropdown {
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  margin-top: 1.5rem;
  overflow: hidden;
}

.form-dropdown summary {
  background: var(--blue-dark);
  color: var(--white);
  cursor: pointer;
  font-weight: 800;
  list-style-position: inside;
  padding: 0.9rem 1rem;
}

.form-dropdown .intake-form {
  border: 0;
  border-radius: 0;
  margin-top: 0;
}

.form-files {
  padding: 1rem;
}

.form-note {
  color: var(--grey-700);
}

.form-file-list {
  display: grid;
  gap: 0.6rem;
  list-style: none;
  margin: 1rem 0;
  padding: 0;
}

.form-file-list a {
  background: var(--grey-100);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  color: var(--blue-dark);
  display: block;
  font-weight: 800;
  padding: 0.75rem;
  text-decoration: none;
}

.form-file-list a:hover,
.form-file-list a:focus {
  color: var(--red);
}

.forms-directory {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 1.5rem;
}

.form-group {
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 1.25rem;
  scroll-margin-top: 7.5rem;
}

.form-group.is-current {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(20, 87, 168, 0.12);
}

.form-group-head {
  margin-bottom: 1rem;
}

.form-group-head p:last-child {
  color: var(--grey-700);
  margin-bottom: 0;
}

.form-step-card {
  background: var(--grey-100);
  border: 1px solid var(--grey-200);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  margin-top: 1rem;
  padding: 1rem;
}

.form-step-card.is-complete {
  border-left-color: #2e8b57;
}

.step-card-head {
  align-items: start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.step-card-head strong {
  color: var(--blue-dark);
  display: block;
  margin-bottom: 0.2rem;
}

.step-card-head p {
  color: var(--grey-700);
  margin-bottom: 0;
}

.step-check {
  align-items: center;
  color: var(--grey-900);
  display: inline-flex;
  gap: 0.5rem;
  white-space: nowrap;
}

.step-check input {
  min-height: auto;
  width: 1.1rem;
}

.form-download-panel {
  margin-top: 1rem;
}

.pc-detail-panel {
  max-width: 820px;
}

.required-form-link {
  background: var(--blue-dark);
  border-radius: var(--radius);
  color: var(--white);
  display: inline-flex;
  font-weight: 800;
  margin-top: 1.5rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
}

/* # Form fields: lays out customer intake fields and consent rows. */
.intake-form {
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  margin-top: 1.5rem;
  padding: clamp(1rem, 4vw, 1.5rem);
}

.form-head {
  border-bottom: 1px solid var(--grey-200);
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
}

.form-head p {
  color: var(--grey-700);
  margin-bottom: 0;
}

.field-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  color: var(--grey-700);
  display: grid;
  font-size: 0.92rem;
  font-weight: 800;
  gap: 0.35rem;
}

.honeypot-field {
  height: 1px;
  left: -10000px;
  overflow: hidden;
  position: absolute;
  top: auto;
  width: 1px;
}

.field-error {
  color: var(--red-dark);
  font-size: 0.84rem;
  font-weight: 800;
  margin-top: 0.25rem;
}

input,
select,
textarea {
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  color: var(--grey-900);
  min-height: 2.75rem;
  padding: 0.65rem 0.75rem;
  width: 100%;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus,
a:focus {
  outline: 3px solid rgba(20, 87, 168, 0.25);
  outline-offset: 2px;
}

input[type="file"]:disabled {
  color: var(--grey-500);
}

.wide {
  grid-column: 1 / -1;
}

.consent-row {
  align-items: start;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: auto minmax(0, 1fr);
  margin: 1.2rem 0;
}

.consent-row input {
  height: 1.1rem;
  margin-top: 0.25rem;
  min-height: auto;
  width: 1.1rem;
}

.consent-row label {
  color: var(--grey-900);
  display: block;
  font-weight: 400;
}

.form-status {
  color: var(--blue-dark);
  font-weight: 800;
  margin: 1rem 0 0;
}

/* # About placeholders: reserves space for future logo, crew, carrier, and office images. */
.placeholder-band {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.placeholder-slot {
  background: var(--grey-100);
  border: 1px dashed var(--grey-500);
  border-radius: var(--radius);
  min-height: 8rem;
  padding: 1rem;
}

.placeholder-slot span,
.placeholder-slot b {
  display: block;
}

.placeholder-slot span {
  color: var(--grey-700);
  font-size: 0.9rem;
}

.placeholder-slot b {
  color: var(--blue);
  font-size: 1.35rem;
  margin-top: 1.2rem;
}

.image-slot {
  display: grid;
  gap: 0.75rem;
}

.image-slot img {
  align-self: center;
  display: block;
  max-height: 5.5rem;
  max-width: 100%;
  object-fit: contain;
}

/* # Contact placeholders: stores the future Google Maps and street-view content. */
.street-view-placeholder {
  align-items: center;
  background:
    linear-gradient(rgba(20, 87, 168, 0.08), rgba(20, 87, 168, 0.08)),
    repeating-linear-gradient(135deg, #eef2f6 0 16px, #ffffff 16px 32px);
  border: 1px dashed var(--grey-500);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 13rem;
  padding: 1rem;
  text-align: center;
}

.street-view-placeholder span {
  color: var(--grey-700);
  font-weight: 800;
}

.street-view-placeholder b {
  color: var(--blue);
  font-size: 1.35rem;
  margin-top: 0.8rem;
}

/* # Footer and toast: closes the page and displays short form messages. */
.site-footer {
  background: #343a40;
  color: var(--white);
  display: grid;
  font-size: 0.78rem;
  gap: 0.45rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr);
  line-height: 1.25;
  padding: 0.55rem max(1.25rem, calc((100vw - 1180px) / 2));
}

.site-footer p {
  margin-bottom: 0.05rem;
}

.fine-print {
  color: var(--grey-200);
  font-size: 0.7rem;
}

.fine-print a {
  color: #7db7ff;
  font-weight: 800;
}

.toast {
  background: var(--blue-dark);
  border-left: 5px solid var(--red);
  border-radius: var(--radius);
  bottom: 1rem;
  box-shadow: var(--shadow);
  color: var(--white);
  left: 50%;
  max-width: min(90vw, 520px);
  opacity: 0;
  padding: 1rem;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 1rem);
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 30;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* # Responsive layout: adjusts navigation, grids, and forms for tablets. */
@media (max-width: 920px) {
  .nav-toggle {
    display: inline-grid;
  }

  .nav-shell {
    align-items: flex-start;
    flex-wrap: wrap;
    padding-bottom: 0.9rem;
    padding-top: 0.9rem;
  }

  .nav-links {
    align-items: stretch;
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.9rem;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-dropdown {
    align-items: stretch;
    display: block;
  }

  .nav-dropdown .page-tab {
    display: block;
  }

  .subtab-toggle {
    display: none;
  }

  .subtab-menu {
    box-shadow: none;
    grid-column: 1 / -1;
    margin-top: 0.35rem;
    position: static;
    width: 100%;
  }

  .home-hero,
  .split-layout,
  .option-layout,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .option-list-panel {
    position: static;
  }

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

  .site-footer {
    grid-template-columns: 1fr;
  }
}

/* # Mobile layout: stacks content so text and form fields fit narrow screens. */
@media (max-width: 640px) {
  .top-strip {
    justify-content: flex-start;
  }

  .home-hero {
    background-size: min(190%, 900px) auto;
  }

  h1 {
    font-size: 2.65rem;
  }

  .tab-page {
    padding: 1.25rem;
  }

  .company-list,
  .field-grid,
  .placeholder-band {
    grid-template-columns: 1fr;
  }

  .step-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .step-check {
    white-space: normal;
  }

  .button {
    width: 100%;
  }
}
