:root {
  color-scheme: light;
  --green: #104a34;
  --green-dark: #083323;
  --green-soft: #e7efe8;
  --ink: #12251c;
  --muted: #52645a;
  --line: #cfd8d1;
  --line-strong: #809589;
  --canvas: #f6f3eb;
  --surface: #ffffff;
  --surface-soft: #edf2ed;
  --highlight: #dce8b5;
  --error: #9b3d32;
  --sans: "Manrope", "Helvetica Neue", Helvetica, sans-serif;
  --header-height: 72px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body {
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
button, input, a { font: inherit; }
button, label { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.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;
}
:focus-visible { outline: 3px solid #3d7259; outline-offset: 3px; }
.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: #fff;
  background: var(--green);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.intake-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.intake-header-inner {
  width: min(1180px, calc(100vw - 40px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}
.intake-brand { line-height: 0; }
.intake-brand img { width: 112px; height: auto; }
.intake-back, .intake-private {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}
.intake-back { width: fit-content; text-decoration: none; }
.intake-back:hover { color: var(--green); }
.intake-back svg, .intake-private svg { width: 17px; height: 17px; }
.intake-private { justify-self: end; }

.intake-main { padding: 36px 0 48px; }
.intake-shell { width: min(1120px, calc(100vw - 40px)); margin-inline: auto; }
.intake-page-title { margin-bottom: 26px; }
.intake-page-title > p {
  margin: 0 0 7px;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.intake-page-title h1 {
  margin: 0 0 9px;
  font-size: clamp(32px, 4vw, 43px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.08;
}
.intake-page-title > span { max-width: 760px; display: block; color: var(--muted); font-size: 14px; line-height: 1.5; }

.intake-layout {
  display: grid;
  grid-template-columns: 255px minmax(0, 770px);
  justify-content: space-between;
  align-items: start;
  gap: clamp(34px, 6vw, 68px);
}
.intake-aside {
  position: sticky;
  top: 28px;
  padding: 25px;
  background: var(--green);
  color: #fff;
  border-radius: 6px;
}
.aside-mark { width: 42px; height: auto; margin-bottom: 20px; filter: brightness(0) invert(1); }
.aside-label {
  margin: 0 0 8px;
  color: rgba(255,255,255,0.58);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.intake-aside h2 { margin: 0 0 20px; font-size: 23px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.15; }
.intake-aside ul { margin: 0; padding: 0; display: grid; gap: 13px; list-style: none; }
.intake-aside li { display: grid; grid-template-columns: 17px 1fr; gap: 8px; color: rgba(255,255,255,0.82); font-size: 11px; line-height: 1.45; }
.intake-aside li svg { width: 16px; height: 16px; margin-top: 1px; }
.aside-help { margin-top: 26px; padding-top: 18px; display: grid; gap: 3px; border-top: 1px solid rgba(255,255,255,0.22); }
.aside-help strong { font-size: 11px; }
.aside-help a { color: rgba(255,255,255,0.78); font-size: 11px; text-underline-offset: 3px; }

.form-panel {
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(8, 51, 35, 0.07);
}
.progress-header { padding: 18px 26px 16px; background: var(--green-soft); border-bottom: 1px solid var(--line); }
.progress-meta { margin-bottom: 10px; display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; font-weight: 600; }
.progress-track { height: 4px; overflow: hidden; background: #dfe4e0; border-radius: 4px; }
.progress-track span { width: 25%; height: 100%; display: block; background: var(--green); transition: width 220ms ease; }
.progress-steps { margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; }
.progress-steps li { position: relative; display: flex; align-items: center; gap: 6px; color: #77867d; font-size: 10px; }
.progress-steps li:not(:last-child)::after { position: absolute; top: 50%; right: 10px; left: calc(50% + 22px); height: 1px; content: ""; background: var(--line); }
.progress-steps li span { width: 19px; height: 19px; display: grid; place-items: center; border: 1px solid #aab4ad; border-radius: 50%; font-size: 8px; }
.progress-steps li b { font-weight: 500; }
.progress-steps li.is-active { color: var(--green); }
.progress-steps li.is-active span { color: #fff; background: var(--green); border-color: var(--green); }
.progress-steps li.is-complete { color: var(--green); }
.progress-steps li.is-complete span { color: var(--green); border-color: var(--green); }

.intake-form { min-height: 320px; padding: 30px 34px 18px; }
.form-step[hidden] { display: none; }
.step-heading { margin-bottom: 22px; }
.step-heading > p {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.step-heading h2 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(28px, 3.6vw, 36px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.1;
}
.step-heading h2[tabindex="-1"]:focus { outline: none; }
.step-heading > span { max-width: 620px; display: block; margin-top: 9px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.choice-list { margin: 0; padding: 0; display: grid; gap: 9px; border: 0; }
.choice-row {
  position: relative;
  min-height: 60px;
  padding: 11px 15px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease;
}
.choice-row:hover { border-color: var(--line-strong); }
.choice-row:has(input:checked) { background: #edf4ee; border-color: var(--green); }
.choice-row:has(input:focus-visible) { outline: 3px solid #3d7259; outline-offset: 2px; }
.choice-row input { position: absolute; opacity: 0; pointer-events: none; }
.choice-row > span:last-child { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.choice-row b { font-size: 14px; font-weight: 600; }
.choice-row small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.choice-control {
  position: relative;
  width: 18px;
  height: 18px;
  border: 1px solid #89958e;
  border-radius: 50%;
}
.choice-control::after { position: absolute; inset: 4px; content: ""; background: var(--green); border-radius: 50%; opacity: 0; }
.choice-row:has(input:checked) .choice-control { border-color: var(--green); }
.choice-row:has(input:checked) .choice-control::after { opacity: 1; }
.choice-checkbox .choice-control { border-radius: 4px; }
.choice-checkbox .choice-control::after { inset: 0; border-radius: 3px; background: var(--green); }
.choice-checkbox .choice-control::before { position: absolute; z-index: 1; top: 3px; left: 5px; width: 5px; height: 8px; content: ""; border-right: 1.5px solid #fff; border-bottom: 1.5px solid #fff; opacity: 0; transform: rotate(42deg); }
.choice-checkbox:has(input:checked) .choice-control::before { opacity: 1; }

.review-table { border: 1px solid var(--line); border-radius: 5px; }
.review-table > div { min-height: 58px; padding: 10px 14px; display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); }
.review-table > div:last-child { border-bottom: 0; }
.review-table span { color: var(--muted); font-size: 11px; }
.review-table b { font-size: 13px; font-weight: 600; line-height: 1.45; }
.review-table button { padding: 5px 0; color: var(--green); background: transparent; border: 0; cursor: pointer; font-size: 10px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.acknowledgement { margin-top: 16px; display: grid; grid-template-columns: 18px 1fr; align-items: start; gap: 11px; color: var(--muted); cursor: pointer; font-size: 11px; line-height: 1.5; }
.acknowledgement input { width: 17px; height: 17px; margin: 0; accent-color: var(--green); }
.handoff-note { margin-top: 16px; padding: 13px; display: grid; grid-template-columns: 20px 1fr; gap: 11px; color: var(--green); background: var(--green-soft); border-radius: 5px; }
.handoff-note svg { width: 18px; height: 18px; }
.handoff-note b { display: block; margin-bottom: 2px; font-size: 11px; }
.handoff-note p { margin: 0; color: #506259; font-size: 10px; line-height: 1.5; }
.form-alert { min-height: 18px; margin: 16px 0 0; color: var(--error); font-size: 10px; line-height: 1.5; }

.form-actions { min-height: 70px; padding: 10px 18px; display: flex; justify-content: space-between; align-items: center; gap: 14px; background: var(--green-soft); border-top: 1px solid var(--line); }
.back-button, .next-button { min-height: 48px; padding: 10px 17px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 5px; cursor: pointer; font-size: 12px; font-weight: 700; }
.back-button { color: var(--green); background: #fff; border: 1px solid var(--line); }
.next-button { min-width: 150px; color: #fff; background: var(--green); border: 1px solid var(--green); }
.back-button svg, .next-button svg { width: 16px; height: 16px; }
.back-button:disabled, .next-button:disabled { color: #89928d; background: #eef0ee; border-color: #dfe3e0; cursor: not-allowed; }
.next-button:not(:disabled):hover { background: var(--green-dark); }
.back-button:not(:disabled):hover { border-color: var(--green); }
.intake-disclaimer { max-width: 780px; margin: 18px 0 0 auto; color: #66756c; font-size: 10px; line-height: 1.5; }
.intake-disclaimer a { color: #214837; text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 900px) {
  .intake-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 34px; }
  .intake-aside { padding: 22px; }
  .progress-steps li b { display: none; }
  .progress-steps li:not(:last-child)::after { left: 30px; }
}

@media (max-width: 720px) {
  :root { --header-height: 64px; }
  .intake-header-inner, .intake-shell { width: min(100% - 28px, 620px); }
  .intake-header-inner { grid-template-columns: 1fr auto 1fr; }
  .intake-brand img { width: 101px; }
  .intake-back span, .intake-private span { display: none; }
  .intake-private svg, .intake-back svg { width: 19px; height: 19px; }
  .intake-main { padding: 24px 0 30px; }
  .intake-page-title { margin-bottom: 20px; }
  .intake-page-title h1 { font-size: 31px; }
  .intake-page-title > span { font-size: 12px; }
  .intake-layout { grid-template-columns: 1fr; gap: 20px; }
  .intake-aside { position: static; padding: 16px; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; }
  .aside-mark { width: 36px; margin: 0; grid-row: 1 / 3; }
  .aside-label { margin-bottom: 3px; }
  .intake-aside h2 { margin: 0; font-size: 18px; }
  .intake-aside ul, .aside-help { display: none; }
  .form-panel { border-radius: 8px; }
  .progress-header { padding: 16px 18px 14px; }
  .progress-steps { margin-top: 12px; }
  .progress-steps li { justify-content: center; }
  .progress-steps li:not(:last-child)::after { right: -22px; left: calc(50% + 17px); }
  .intake-form { min-height: 0; padding: 24px 18px 16px; }
  .step-heading { margin-bottom: 22px; }
  .step-heading h2 { font-size: 28px; }
  .step-heading > span { font-size: 12px; }
  .choice-row { min-height: 58px; padding: 10px 13px; }
  .review-table > div { grid-template-columns: 85px 1fr auto; gap: 9px; }
  .form-actions { position: sticky; bottom: 0; z-index: 10; min-height: 72px; padding: 10px 13px; }
  .next-button { min-width: 135px; }
  .intake-disclaimer { margin-left: 0; }
}

@media (max-width: 390px) {
  .intake-header-inner, .intake-shell { width: calc(100% - 22px); }
  .review-table > div { grid-template-columns: 1fr auto; }
  .review-table > div > span:first-child { grid-column: 1 / -1; }
  .back-button span { display: none; }
  .back-button { width: 48px; padding-inline: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Flat assessment presentation shared with the public site. */
:root {
  --green-soft: #d8d0c2;
  --canvas: #e8e1d6;
  --surface: #f3eee4;
  --surface-soft: #ddd5c7;
  --highlight: #cbbda8;
}

.intake-header,
.choice-row,
.back-button {
  background: var(--surface);
}

.form-panel {
  background: var(--surface);
  box-shadow: none;
}

.intake-aside,
.form-panel,
.progress-track,
.progress-steps li span,
.choice-row,
.choice-control,
.choice-control::after,
.choice-checkbox .choice-control,
.choice-checkbox .choice-control::after,
.review-table,
.handoff-note,
.back-button,
.next-button {
  border-radius: 0;
}

.intake-aside ul {
  counter-reset: intake-note;
}

.intake-aside li {
  counter-increment: intake-note;
}

.intake-aside li::before {
  content: counter(intake-note, decimal-leading-zero);
  color: #cbbda8;
  font-family: var(--sans);
  font-size: 9px;
}

.handoff-note {
  grid-template-columns: 1fr;
  border: 1px solid var(--line);
}

*,
*::before,
*::after {
  box-shadow: none !important;
  text-shadow: none !important;
  animation: none !important;
  transition: none !important;
}
