:root {
  color-scheme: light;
  --ink: #183c35;
  --ink-soft: #40564f;
  --ink-muted: #52675f;
  --forest: #174c3e;
  --forest-deep: #173f37;
  --forest-hover: #0f382e;
  --lime: #d6ee66;
  --copper: #a85432;
  --paper: #f3f6f2;
  --white: #fff;
  --line: #cbd6cd;
  --line-strong: #9aada0;
  --error: #9f2f26;
  --error-wash: #fff0eb;
  --shadow: 0 16px 40px rgb(24 60 53 / 8%);
  font-family: Inter, "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
}

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

a { color: inherit; }

button, a, input, select, textarea, summary {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid #9a6a00;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  z-index: 10;
  top: 8px;
  left: 8px;
  transform: translateY(-160%);
  padding: 10px 16px;
  background: var(--white);
  color: var(--ink);
}

.skip-link:focus { transform: translateY(0); }

.masthead {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 72px);
  background: var(--forest-deep);
  color: var(--white);
}

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

.brand-mark { width: 34px; height: 34px; }
.brand-name { font-size: 14px; letter-spacing: -.02em; }
.brand-name strong { font-weight: 750; }
.brand-locale {
  margin-left: 4px;
  padding-left: 13px;
  border-left: 1px solid rgb(255 255 255 / 38%);
  color: #d6e7df;
  font-size: 12px;
}

.admin-link {
  color: #e3eee8;
  font-size: 13px;
  text-decoration-color: rgb(227 238 232 / 55%);
  text-underline-offset: 4px;
}

.admin-link span { padding-left: 5px; color: var(--lime); }
.admin-link:hover { color: var(--lime); }

.page-shell {
  width: min(1140px, calc(100% - 48px));
  margin: 0 auto;
  padding: 46px 0 80px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: end;
  gap: 48px;
  padding: 0 0 38px;
}

.intro-copy { max-width: 730px; }
.intro-location {
  margin: 0 0 14px;
  color: var(--forest);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .055em;
}

.intro h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(38px, 5.4vw, 66px);
  font-weight: 690;
  letter-spacing: -.052em;
  line-height: 1.02;
  text-wrap: balance;
}

.intro-description {
  max-width: 660px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.55;
}

.route-sketch {
  align-self: center;
  padding: 8px 0 0 20px;
  color: #326555;
}

.route-sketch svg { display: block; width: 100%; max-width: 300px; }
.route-sketch p {
  margin: 2px 0 0 15px;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.35;
}

.workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 282px;
  align-items: stretch;
  gap: 42px;
}

.form-column {
  min-width: 0;
  padding: 26px clamp(22px, 4vw, 46px) 32px;
  border-top: 4px solid var(--forest);
  background: var(--white);
  box-shadow: var(--shadow);
}

.progress-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 650;
}

.progress-heading span:last-child {
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

progress {
  display: block;
  width: 100%;
  height: 5px;
  margin: 0 0 33px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #e6ece5;
  color: var(--forest);
}

progress::-webkit-progress-bar { background: #e6ece5; }
progress::-webkit-progress-value { background: var(--forest); transition: width .32s ease-out; }
progress::-moz-progress-bar { background: var(--forest); }

.question-stage { animation: arrive .32s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes arrive {
  from { opacity: .65; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.category-label {
  margin: 0 0 8px;
  color: var(--forest);
  font-size: 12px;
  font-weight: 730;
  letter-spacing: .045em;
}

.question-title {
  max-width: 690px;
  margin: 0;
  font-size: clamp(27px, 3.1vw, 38px);
  font-weight: 680;
  letter-spacing: -.04em;
  line-height: 1.15;
  text-wrap: balance;
}

.question-title:focus { outline-offset: 6px; }

.field-help {
  margin: 12px 0 21px;
  color: var(--ink-muted);
  font-size: 14px;
}

.consent-notice {
  margin: 23px 0 20px;
  padding: 15px 18px;
  border: 1px solid #c9d9ce;
  background: #f1f6f1;
  color: #304b40;
  font-size: 14px;
}

.consent-notice p { margin: 0; }
.consent-notice p + p { margin-top: 10px; }

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  color: var(--ink);
  font-size: 14px;
  font-weight: 620;
  cursor: pointer;
}

.consent-check input,
.choice-row input,
.group-option input {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  margin: 2px 0 0;
  accent-color: var(--forest);
}

.answer-options, .group-options {
  display: grid;
  gap: 0;
  margin: 22px 0 0;
  padding: 0;
  border: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.choice-row {
  display: flex;
  min-height: 50px;
  align-items: flex-start;
  gap: 13px;
  padding: 13px 12px;
  border-bottom: 1px solid #e0e7e1;
  color: var(--ink);
  font-size: 14px;
  cursor: pointer;
  transition: background-color .16s ease;
}

.choice-row:first-of-type { border-top: 1px solid #e0e7e1; }
.choice-row:hover { background: #f2f6ef; }
.choice-row:has(input:focus-visible) { outline: 2px solid #9a6a00; outline-offset: 1px; }
.choice-row input { margin-top: 1px; }

textarea, .field-label input, .field-label select {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
}

textarea { min-height: 120px; resize: vertical; }
textarea::placeholder, input::placeholder { color: #61756c; opacity: 1; }
textarea:focus, .field-label input:focus, .field-label select:focus {
  border-color: var(--forest);
  outline: 3px solid rgb(23 76 62 / 22%);
  outline-offset: 1px;
}

.character-note {
  margin: 7px 0 0;
  color: var(--ink-muted);
  font-size: 12px;
}

.group-options { margin-top: 21px; }
.group-option {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 11px;
  min-height: 73px;
  padding: 12px;
  border-top: 1px solid #dfe7e0;
  cursor: pointer;
}

.group-option:last-child { border-bottom: 1px solid #dfe7e0; }
.group-option:hover { background: #f2f6ef; }
.group-option:has(input:focus-visible) { outline: 2px solid #9a6a00; outline-offset: 1px; }
.group-option-copy { display: grid; gap: 2px; }
.group-option-copy strong { font-size: 14px; font-weight: 670; }
.group-option-copy small { color: var(--ink-muted); font-size: 12px; line-height: 1.4; }
.group-arrow { color: var(--copper); font-size: 20px; text-align: right; }

.contact-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 22px 0 0;
}

.field-label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 640;
}

.contact-reminder { margin: 19px 0 0; }

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #dfe7e0;
}

.action-note { color: var(--ink-muted); font-size: 12px; }

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 670;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}

.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .56; }
.button-primary { background: var(--forest); color: #fff; }
.button-primary:hover:not(:disabled) { background: var(--forest-hover); }
.button-secondary { border-color: var(--line-strong); background: #fff; color: var(--ink); }
.button-secondary:hover:not(:disabled), .button-quiet:hover:not(:disabled) { background: #e8eee8; }
.button-quiet { border-color: transparent; background: transparent; color: var(--ink); }

.form-status {
  min-height: 0;
  margin: 0;
  color: var(--ink-muted);
  font-size: 13px;
}

.form-status:not(:empty) { margin-top: 16px; }
.form-status.is-error {
  padding: 10px 12px;
  border: 1px solid #e2aaa0;
  background: var(--error-wash);
  color: var(--error);
}

.privacy-rail {
  align-self: stretch;
  padding: 31px 0 0 2px;
  border-top: 1px solid var(--line-strong);
}

.rail-mark { display: flex; gap: 6px; margin: 1px 0 18px; }
.rail-mark span { width: 7px; height: 7px; border-radius: 50%; background: var(--forest); }
.rail-mark span:nth-child(2) { background: var(--copper); }
.rail-mark span:nth-child(3) { background: #b6cd51; }

.privacy-rail h2 {
  max-width: 230px;
  margin: 0 0 22px;
  font-size: 24px;
  font-weight: 660;
  letter-spacing: -.035em;
  line-height: 1.2;
}

.quick-facts { margin: 0; }
.quick-facts div {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 8px;
  padding: 11px 0;
  border-top: 1px solid #d1dcd3;
}

.quick-facts dt { color: var(--ink-muted); font-size: 12px; }
.quick-facts dd { margin: 0; color: var(--ink); font-size: 12px; font-weight: 640; }

.privacy-reminder {
  margin: 22px 0 0;
  color: #694632;
  font-size: 12px;
  line-height: 1.55;
}

.rail-footnote {
  margin: 17px 0 0;
  padding-top: 15px;
  border-top: 1px solid #d1dcd3;
  color: var(--ink-muted);
  font-size: 12px;
}

.success-stage { padding: 21px 0 12px; animation: arrive .32s cubic-bezier(.16, 1, .3, 1) both; }
.success-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 22px;
  background: var(--lime);
  color: var(--forest-deep);
  font-size: 23px;
  font-weight: 800;
}

.success-copy { margin: 15px 0 0; color: var(--ink-soft); }
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1140px, calc(100% - 48px));
  margin: 0 auto;
  padding: 22px 0 28px;
  border-top: 1px solid #d3ddd4;
  color: var(--ink-muted);
  font-size: 11px;
}

[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media (max-width: 900px) {
  .intro { grid-template-columns: minmax(0, 1fr) 220px; gap: 24px; }
  .workbench { grid-template-columns: minmax(0, 1fr) 225px; gap: 25px; }
  .route-sketch { padding-left: 0; }
}

@media (max-width: 700px) {
  .masthead { min-height: 68px; padding-inline: 18px; }
  .brand { gap: 7px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-name { font-size: 12px; }
  .brand-locale { padding-left: 8px; font-size: 11px; }
  .admin-link { font-size: 12px; }
  .page-shell { width: min(100% - 32px, 560px); padding: 32px 0 48px; }
  .intro { grid-template-columns: 1fr; gap: 16px; padding-bottom: 24px; }
  .intro h1 { max-width: 590px; font-size: clamp(38px, 10vw, 54px); }
  .intro-description { margin-top: 14px; font-size: 16px; }
  .route-sketch { display: none; }
  .workbench { grid-template-columns: 1fr; gap: 27px; }
  .form-column { padding: 20px 20px 24px; }
  progress { margin-bottom: 27px; }
  .privacy-rail { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; padding-top: 18px; }
  .rail-mark, .privacy-rail h2 { grid-column: 1 / -1; }
  .privacy-rail h2 { max-width: 100%; margin-bottom: 11px; font-size: 21px; }
  .quick-facts { grid-column: 1; }
  .privacy-reminder { grid-column: 2; grid-row: 3; margin-top: 0; }
  .rail-footnote { grid-column: 1 / -1; }
  .site-footer { width: calc(100% - 32px); }
}

@media (max-width: 480px) {
  .masthead { padding-inline: 14px; }
  .brand-locale { display: none; }
  .page-shell { width: calc(100% - 24px); padding-top: 26px; }
  .intro h1 { font-size: 39px; }
  .form-column { padding: 18px 16px 21px; }
  .question-title { font-size: 28px; }
  .consent-notice { padding: 13px; font-size: 13px; }
  .group-option { grid-template-columns: 20px minmax(0, 1fr) 16px; gap: 9px; padding-inline: 7px; }
  .group-option-copy strong { font-size: 13px; }
  .contact-fields { grid-template-columns: 1fr; }
  .privacy-rail { grid-template-columns: 1fr; }
  .quick-facts, .privacy-reminder { grid-column: 1; grid-row: auto; }
  .site-footer { width: calc(100% - 24px); flex-direction: column; gap: 4px; }
}
