:root {
  color-scheme: dark;
  --bg: #0d1e36;
  --text: #e8eefb;
  --muted: #a9b7d7;
  --line: rgba(156, 182, 220, 0.3);
  --accent: #6fcdf6;
  --glass: rgba(169, 195, 232, 0.14);
  --radius: 18px;
  --container: 1120px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(1100px 420px at -6% -10%, rgba(71, 126, 194, 0.22), transparent 60%),
    radial-gradient(900px 360px at 102% -2%, rgba(112, 196, 170, 0.15), transparent 58%),
    linear-gradient(180deg, #0c1a31 0%, #132744 50%, #10233e 100%);
}

a { color: var(--accent); }
.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.section { padding: 4rem 0; }

.skip-link {
  position: absolute;
  top: -40px;
  left: 12px;
  background: #fff;
  color: #111;
  padding: 8px 10px;
  border-radius: 6px;
  z-index: 1000;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(12, 24, 42, 0.48);
  backdrop-filter: saturate(150%) blur(24px);
  -webkit-backdrop-filter: saturate(150%) blur(24px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  text-decoration: none;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.2rem;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.top-nav a {
  text-decoration: none;
  color: #dce9ff;
  font-size: 0.88rem;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(196, 224, 255, 0.42);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.28), rgba(193, 221, 255, 0.14));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), 0 8px 18px rgba(4, 12, 24, 0.22);
  color: #e7f2ff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.nav-toggle span {
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.top-nav > a:not(.btn),
.top-nav .menu-dropdown summary {
  position: relative;
  padding: 0.08rem 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: color 160ms ease, opacity 160ms ease, background-color 180ms ease, box-shadow 180ms ease;
  overflow: hidden;
}

.top-nav > a:not(.btn)::after,
.top-nav .menu-dropdown summary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-20deg);
  transition: left 560ms ease;
  pointer-events: none;
}

.top-nav > a:not(.btn):hover::after,
.top-nav > a:not(.btn):focus-visible::after,
.top-nav .menu-dropdown summary:hover::before,
.top-nav .menu-dropdown summary:focus-visible::before {
  left: 160%;
}

.top-nav > a:not(.btn),
.top-nav > .menu-dropdown {
  margin-left: 0.45rem;
  padding-left: 0.85rem;
}

.top-nav > a:not(.btn):first-of-type {
  margin-left: 0;
  padding-left: 0;
}

.top-nav > a:not(.btn):not(:first-of-type)::before,
.top-nav > .menu-dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 18px;
  transform: translateY(-50%);
  background: rgba(166, 191, 225, 0.45);
}

.top-nav > a:not(.btn):hover,
.top-nav > a:not(.btn):focus-visible,
.top-nav .menu-dropdown summary:hover,
.top-nav .menu-dropdown summary:focus-visible {
  color: #f0f5ff;
  opacity: 0.96;
}

.top-nav > a[aria-current="page"]:not(.btn) {
  color: #f1f7ff;
  text-decoration: underline;
  text-underline-offset: 0.22rem;
  text-decoration-color: rgba(152, 192, 242, 0.65);
}

.menu-dropdown { position: relative; }
.menu-dropdown summary {
  list-style: none;
  cursor: pointer;
  color: #d7e4ff;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.menu-dropdown summary::-webkit-details-marker { display: none; }
.menu-dropdown summary::after {
  content: "▾";
  font-size: 0.7rem;
  opacity: 0.85;
  transition: transform 160ms ease;
}
.menu-dropdown[open] summary::after { transform: rotate(180deg); }

.menu-panel {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  padding: 0.45rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(16, 28, 46, 0.74);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.38);
  backdrop-filter: saturate(132%) blur(20px);
  -webkit-backdrop-filter: saturate(132%) blur(20px);
  display: grid;
  gap: 0.15rem;
  z-index: 30;
}

.menu-panel a {
  color: #d7e4ff;
  text-decoration: none;
  padding: 0.45rem 0.58rem;
  border-radius: 8px;
  font-size: 0.84rem;
  white-space: nowrap;
}

.menu-panel a:hover,
.menu-panel a:focus-visible { background: rgba(130, 177, 255, 0.16); }

.btn {
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  cursor: pointer;
  padding: 0.68rem 1.16rem;
  font-weight: 600;
  font-size: 0.94rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  color: #dce9ff;
  transition: transform 160ms ease, border-color 180ms ease, background-color 180ms ease;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -140%;
  width: 52%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-20deg);
  transition: left 720ms ease;
  pointer-events: none;
}

.btn:hover::after,
.btn:focus-visible::after {
  left: 170%;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(140deg, #6fd8ff, #90e2c8);
  color: #061327;
  border-color: transparent;
}

.hero { padding-top: 4.4rem; }
.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2rem, 5.3vw, 3.1rem); line-height: 1.1; margin-bottom: 0.85rem; }
h2 { font-size: clamp(1.35rem, 3.2vw, 2rem); line-height: 1.25; margin-bottom: 0.7rem; }
.lead { color: #dbe6ff; font-size: 1.08rem; }
.intro-copy, .section-intro { color: var(--muted); max-width: 84ch; }

.prefill-note {
  min-height: 1.2rem;
  margin: 0.4rem 0 0.2rem;
  color: #a5efd5;
  font-size: 0.9rem;
}

.card,
.cta-card,
.question-card,
.step-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(145deg, var(--glass), rgba(18, 34, 64, 0.58));
  backdrop-filter: saturate(128%) blur(22px);
  -webkit-backdrop-filter: saturate(128%) blur(22px);
}

.card,
.cta-card { padding: 1.1rem; }

.icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
}

.icon-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.icon-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #dbe5fb;
}

.visual-break {
  display: grid;
  gap: 1rem;
  align-items: center;
}

.visual-break-media {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(147, 176, 218, 0.34);
  background: rgba(15, 30, 55, 0.48);
}

.visual-break-media img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
}

.visual-break-media figcaption {
  padding: 0.55rem 0.7rem;
  color: #a9b7d7;
  font-size: 0.82rem;
}

.questions-grid,
.question-grid {
  margin-top: 1rem;
  display: grid;
  gap: 0.9rem;
}

.question-item {
  margin: 0;
  padding: 1.05rem 1rem 1rem;
  min-inline-size: 0;
}

.question-item .question-title {
  display: block;
  color: #ebf3ff;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 0.82rem;
}

.question-item .answer-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.05rem;
}

.health-form {
  margin-top: 1rem;
  display: grid;
  gap: 0.9rem;
}

.form-grid {
  display: grid;
  gap: 0.8rem;
}

label {
  display: grid;
  gap: 0.35rem;
  color: #dbe5fb;
  font-size: 0.92rem;
}

input,
select,
textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(147, 176, 218, 0.36);
  background: rgba(15, 30, 55, 0.74);
  color: var(--text);
  padding: 0.64rem 0.72rem;
  font: inherit;
}

/* Keep quick-question radio options independent from generic form field rules. */
.question-item .answer-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  color: #d5e2ff;
  font-size: 0.95rem;
  cursor: pointer;
  width: fit-content;
}

.question-item input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  margin: 0;
  border-radius: 999px;
  border: 1px solid rgba(166, 189, 225, 0.72);
  background: rgba(255, 255, 255, 0.06);
  display: inline-block;
  vertical-align: middle;
  flex: 0 0 15px;
}

.question-item input[type="radio"]:checked {
  border-color: rgba(125, 240, 214, 0.95);
  background:
    radial-gradient(circle at 50% 50%, rgba(125, 240, 214, 0.95) 0 45%, transparent 46%),
    rgba(64, 112, 171, 0.26);
  box-shadow: 0 0 0 3px rgba(125, 240, 214, 0.16);
}

.question-item input[type="radio"]:focus-visible {
  outline: 2px solid rgba(125, 240, 214, 0.65);
  outline-offset: 2px;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(110, 205, 246, 0.38);
  outline-offset: 1px;
  border-color: rgba(135, 189, 244, 0.72);
}

.form-actions {
  margin-top: 0.3rem;
  display: flex;
  justify-content: flex-start;
}

.form-error {
  min-height: 1.3rem;
  margin: 0;
  color: #ff9dac;
}

.form-success {
  min-height: 1.3rem;
  margin: 0.75rem 0 0;
  color: #97efce;
}

.steps-grid {
  margin-top: 1rem;
  display: grid;
  gap: 0.9rem;
}

.step-card { padding: 1rem; }
.step-card h3 { margin-bottom: 0.35rem; }

.cta-card {
  text-align: center;
  display: grid;
  gap: 0.9rem;
  justify-items: center;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.2rem 0;
  background: rgba(9, 18, 34, 0.55);
}

.footer-inner {
  display: grid;
  gap: 0.3rem;
  text-align: center;
  color: var(--muted);
}

.footer-brand {
  color: var(--text);
  font-weight: 700;
}

@media (min-width: 700px) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .questions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .visual-break { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
}

@media (min-width: 980px) {
  .steps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .header-inner { position: relative; }
  .nav-toggle { display: inline-flex; }
  .top-nav {
    gap: 0.55rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .top-nav > a:not(.btn),
  .top-nav .menu-dropdown { display: none; }

  .top-nav:not(.is-open) {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
  }

  .top-nav:not(.is-open) .btn {
    order: 1;
  }

  .top-nav:not(.is-open) .nav-toggle {
    order: 2;
    margin-left: 0.5rem;
  }

  .top-nav.is-open {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.75rem;
    border: 1px solid rgba(206, 230, 255, 0.48);
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(238, 247, 255, 0.95), rgba(196, 217, 243, 0.88));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), inset 0 -1px 0 rgba(132, 171, 224, 0.34), 0 20px 40px rgba(4, 12, 24, 0.28);
    backdrop-filter: saturate(210%) blur(42px);
    -webkit-backdrop-filter: saturate(210%) blur(42px);
    z-index: 60;
  }
  .top-nav.is-open > a:not(.btn),
  .top-nav.is-open .menu-dropdown {
    display: block;
    margin-left: 0;
    padding-left: 0;
  }

  .top-nav.is-open > a:not(.btn)::before,
  .top-nav.is-open > .menu-dropdown::before {
    display: none;
  }

  .top-nav.is-open .menu-dropdown summary {
    display: flex;
    justify-content: space-between;
  }

  .top-nav.is-open .menu-panel {
    position: static;
    min-width: 0;
    margin-top: 0.35rem;
  }

  .top-nav.is-open .btn {
    width: 100%;
    color: #0a2141;
    border-color: rgba(88, 122, 174, 0.45);
    background: rgba(255, 255, 255, 0.38);
  }

  .top-nav.is-open > a:not(.btn),
  .top-nav.is-open .menu-dropdown summary {
    color: #102b50;
    font-weight: 600;
  }

  .top-nav.is-open .menu-panel {
    background: rgba(246, 252, 255, 0.86);
    border-color: rgba(141, 173, 221, 0.38);
  }

  .top-nav.is-open .menu-panel a {
    color: #11315a;
  }


  .btn { padding-inline: 1rem; font-size: 0.88rem; }
  .hero { padding-top: 3.4rem; }
}

.footer-inner {
  position: relative;
  padding-right: 5rem;
}

.footer-favicon {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 128px;
  height: 128px;
  object-fit: contain;
  opacity: 0.95;
  filter: drop-shadow(0 8px 18px rgba(6, 14, 28, 0.3));
}

@media (max-width: 860px) {
  .footer-inner {
    padding-right: 0;
  }

  .footer-favicon {
    position: static;
    transform: none;
    margin: 0.7rem auto 0;
    width: 84px;
    height: 84px;
  }
}

.footer-favicon-link {
  text-decoration: none;
}

.footer-favicon-link:focus-visible {
  outline: 2px solid rgba(130, 210, 246, 0.72);
  outline-offset: 4px;
  border-radius: 10px;
}
