:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172a2f;
  background: #eef2ef;
  font-size: 18px;
  line-height: 1.55;
  --ink: #172a2f;
  --muted: #53666b;
  --green: #184f46;
  --green-dark: #103b35;
  --cream: #fbfaf5;
  --gold: #c99a43;
  --line: #cbd6d1;
  --danger: #9a2e2e;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 0; background: linear-gradient(145deg, #e7eeea 0%, #f7f4ec 100%); }
button, input, textarea, select { font: inherit; }
button, label, input { -webkit-tap-highlight-color: transparent; }

.site-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.15rem 1.25rem;
}
.site-header div:last-child { display: flex; flex-direction: column; line-height: 1.25; }
.site-header span { color: var(--muted); font-size: 0.82rem; }
.site-trust { margin-top: 0.2rem; font-size: 0.76rem !important; }
.app-shell {
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1.15rem, 3vw, 2.25rem);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(24, 79, 70, 0.12);
  border-radius: 1.25rem;
  box-shadow: 0 18px 50px rgba(23, 42, 47, 0.1);
}

.progress-wrap { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.progress-copy { color: var(--muted); font-size: 0.85rem; font-weight: 700; margin-bottom: 0.35rem; }
.progress-track { height: 0.55rem; overflow: hidden; border-radius: 999px; background: #dce5e1; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--gold); transition: width 180ms ease; }

.question-panel { max-width: 760px; margin: 0 auto; }
.eyebrow { margin: 0 0 0.35rem; color: var(--green); font-size: 0.82rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
h1 { max-width: 760px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.85rem, 5vw, 3rem); line-height: 1.13; color: var(--ink); }
h2 { margin-top: 2rem; font-size: 1.25rem; }
.question-help, .result-intro { margin: 0.8rem 0 1.5rem; color: var(--muted); max-width: 680px; }

.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.choice-list { display: grid; gap: 0.7rem; }
.choice {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  min-height: 4rem;
  padding: 1rem;
  border: 2px solid var(--line);
  border-radius: 0.85rem;
  background: white;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
}
.choice:hover { border-color: #6f9188; transform: translateY(-1px); }
.choice:focus-within { outline: 3px solid rgba(201, 154, 67, 0.45); outline-offset: 2px; }
.choice.is-selected { border-color: var(--green); background: #eff7f3; }
.choice.is-disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.choice input { width: 1.25rem; height: 1.25rem; margin: 0.2rem 0 0; accent-color: var(--green); flex: 0 0 auto; }
.choice-copy { display: flex; flex-direction: column; gap: 0.2rem; }
.choice-label { font-weight: 750; line-height: 1.35; }
.choice-description { color: var(--muted); font-size: 0.9rem; line-height: 1.4; }

.textarea-label { display: block; margin-bottom: 0.45rem; font-weight: 750; }
textarea { width: 100%; resize: vertical; min-height: 9rem; padding: 0.9rem; border: 2px solid var(--line); border-radius: 0.75rem; color: var(--ink); background: white; }
textarea:focus { outline: 3px solid rgba(201, 154, 67, 0.45); border-color: var(--green); }
.character-count { text-align: right; color: var(--muted); font-size: 0.8rem; }

.actions { display: flex; justify-content: flex-end; gap: 0.75rem; max-width: 760px; margin: 2rem auto 0; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.button { min-height: 3.2rem; padding: 0.75rem 1.35rem; border-radius: 0.7rem; border: 2px solid var(--green); font-weight: 800; cursor: pointer; }
.button.primary { color: white; background: var(--green); }
.button.primary:hover { background: var(--green-dark); }
.button.secondary { color: var(--green); background: white; }
.button:focus-visible { outline: 3px solid rgba(201, 154, 67, 0.55); outline-offset: 2px; }

.notice, .error-message, .placeholder-card { max-width: 760px; margin: 1rem auto 0; padding: 0.9rem 1rem; border-radius: 0.7rem; }
.contextual-hint { max-width: 760px; margin: 1rem auto 0; padding: 0.85rem 1rem; border: 1px solid #b9cbc4; border-left: 4px solid #6f9188; border-radius: 0.7rem; background: #f3f7f5; }
.contextual-hint h2 { margin: 0 0 0.2rem; color: var(--green-dark); font-size: 0.92rem; }
.contextual-hint p { margin: 0; color: #31464b; font-size: 0.94rem; }
.notice { background: #edf3f0; border-left: 4px solid var(--green); }
.error-message { color: #6f1d1d; background: #fff0f0; border-left: 4px solid var(--danger); font-weight: 700; }
.review-list { display: grid; gap: 0; margin: 1.5rem 0 0; border: 1px solid var(--line); border-radius: 0.8rem; overflow: hidden; }
.review-list div { padding: 0.9rem 1rem; background: white; border-bottom: 1px solid var(--line); }
.review-list div:last-child { border-bottom: 0; }
.review-list dt { color: var(--muted); font-size: 0.82rem; font-weight: 800; }
.review-list dd { margin: 0.15rem 0 0; white-space: pre-wrap; }
.next-steps { padding-left: 1.5rem; }
.next-steps li { margin-bottom: 0.75rem; padding-left: 0.35rem; }
.result-section { margin-top: 1.5rem; padding-top: 0.15rem; }
.result-section h2 { margin: 0 0 0.55rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; }
.result-section p { margin: 0; }
.priority-section, .suggested-section { padding: 1rem; border-radius: 0.75rem; background: #edf5f1; border-left: 4px solid var(--green); }
.main-concern-label { margin-bottom: 1rem !important; font-weight: 800; }
.four-wh-item + .four-wh-item { margin-top: 0.9rem; }
.four-wh-item h3, .four-wh-item h4 { margin: 0 0 0.2rem; font-size: 1rem; }
.four-wh-item p { color: #31464b; }
.practical-order { padding: 1rem; border-radius: 0.75rem; background: #fff8ea; border-left: 4px solid var(--gold); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.contact-panel { margin-top: 1.5rem; padding: clamp(1rem, 3vw, 1.4rem); border: 2px solid #b9cbc4; border-radius: 0.85rem; background: #f7faf8; min-width: 0; }
.contact-panel h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; }
.contact-panel > p { color: #31464b; }
.contact-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; margin: 1rem 0; padding: 0; border: 0; min-width: 0; }
.contact-options .choice { min-width: 0; }
.contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; margin: 1rem 0; min-width: 0; }
.contact-field { min-width: 0; }
.contact-field label { display: block; margin-bottom: 0.35rem; font-weight: 750; }
.contact-field label span { color: var(--muted); font-size: 0.86rem; font-weight: 500; }
.contact-field input, .contact-field select { width: 100%; min-width: 0; min-height: 3rem; padding: 0.65rem 0.75rem; color: var(--ink); background: white; border: 2px solid var(--line); border-radius: 0.6rem; }
.contact-field input:focus, .contact-field select:focus { outline: 3px solid rgba(201, 154, 67, 0.45); border-color: var(--green); }
.contact-field input[aria-invalid="true"] { border-color: var(--danger); }
.field-error { margin: 0.3rem 0 0; color: #6f1d1d; font-size: 0.9rem; font-weight: 700; }
.contact-error-summary { margin: 1rem 0; padding: 0.85rem 1rem; color: #6f1d1d; background: #fff0f0; border-left: 4px solid var(--danger); border-radius: 0.65rem; }
.contact-error-summary ul { margin: 0.35rem 0 0; padding-left: 1.25rem; }
.contact-note-choice { display: flex; align-items: flex-start; gap: 0.65rem; margin-top: 1rem; font-weight: 700; }
.contact-note-choice input { width: 1.2rem; height: 1.2rem; flex: 0 0 auto; accent-color: var(--green); }
.contact-note-help { margin: 0.35rem 0 1rem; color: var(--muted); font-size: 0.9rem; }
.contact-consent, .contact-privacy { font-size: 0.9rem; }
.contact-privacy { margin-bottom: 0; }
.contact-privacy a { color: var(--green-dark); font-weight: 700; }
.contact-preview-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1rem; }
.request-preview { margin-top: 1rem; padding-top: 0.25rem; }
.request-preview h3 { margin-bottom: 0; }
.contact-panel button[disabled] { cursor: not-allowed; opacity: 0.65; }
.local-test-submission { margin-top: 1rem; padding: 0.85rem; border: 2px solid #a46a16; border-radius: 0.65rem; background: #fff8ea; }
.local-test-submission p { margin: 0 0 0.65rem; }
.local-test-status { margin-top: 0.65rem !important; color: #31464b; }
.next-step-placeholder { margin-top: 1.5rem; padding: 1rem; border: 1px dashed #8aa39c; border-radius: 0.75rem; background: #f7faf8; }
.agent-opinion-placeholder { margin-top: 1.5rem; padding: 1rem; border: 1px dashed #8aa39c; border-radius: 0.75rem; background: #f7faf8; }
.agent-opinion-placeholder h2 { margin: 0; font-size: 1.2rem; }
.agent-opinion-placeholder p { color: var(--muted); }
.agent-opinion-placeholder button { padding: 0.7rem; border: 1px solid var(--line); border-radius: 0.55rem; color: var(--muted); background: white; }
.agent-interview-resource { margin-top: 1.5rem; padding: 1rem; border: 1px solid var(--line); border-radius: 0.75rem; background: #f7faf8; }
.agent-interview-resource h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; }
.agent-interview-resource > p { color: #31464b; }
.agent-interview-key-questions { padding-left: 1.5rem; }
.agent-interview-key-questions li { margin-bottom: 0.65rem; padding-left: 0.25rem; }
.agent-interview-full { margin-top: 1rem; border: 1px solid var(--line); border-radius: 0.65rem; background: white; }
.agent-interview-full > summary { padding: 0.85rem 1rem; font-weight: 750; cursor: pointer; }
.agent-interview-full-content { padding: 0 1rem 1rem; border-top: 1px solid var(--line); }
.agent-interview-section { margin-top: 1rem; }
.agent-interview-section h3 { margin-bottom: 0.45rem; font-size: 1.05rem; }
.agent-interview-explanation, .agent-interview-caution { padding: 0.75rem; border-left: 4px solid var(--gold); background: #fff8ea; }
.next-step-placeholder h2 { margin: 0; font-size: 1.2rem; }
.next-step-placeholder p { margin: 0.35rem 0 0.8rem; color: var(--muted); }
.placeholder-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; }
.placeholder-actions button { padding: 0.7rem; border: 1px solid var(--line); border-radius: 0.55rem; text-align: left; color: var(--muted); background: white; }
.secondary-issues details { margin-top: 0.65rem; border: 1px solid var(--line); border-radius: 0.65rem; background: white; }
.secondary-issues summary { padding: 0.85rem 1rem; font-weight: 750; cursor: pointer; }
.secondary-guidance { padding: 0 1rem 1rem; border-top: 1px solid var(--line); }
.secondary-guidance .four-wh-item { margin-top: 0.75rem; }
.secondary-guidance-item { margin-top: 0.75rem; }
.secondary-guidance-item h4 { margin-bottom: 0.2rem; }
.secondary-guidance-item p { margin: 0; }
.also-covered-here { margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--line); }
.also-covered-here h3 { margin-bottom: 0.35rem; }
.extended-guidance { margin-top: 0.8rem; border: 1px solid var(--line); border-radius: 0.65rem; background: white; }
.extended-guidance summary { padding: 0.8rem 1rem; font-weight: 750; cursor: pointer; }
.extended-guidance > ul, .extended-guidance > p { margin: 0 1rem 1rem; }
.caution-section { padding: 1rem; border-radius: 0.75rem; background: #fff8ea; border-left: 4px solid var(--gold); }
.guidance-list { margin: 0; padding-left: 1.45rem; }
.guidance-list li { margin-bottom: 0.65rem; padding-left: 0.25rem; }
.placeholder-card { display: flex; flex-direction: column; gap: 0.25rem; margin: 1.5rem 0; background: #fff7e7; border: 1px solid #e9c77d; }
footer { padding: 1.5rem 1rem 2.5rem; text-align: center; color: var(--muted); font-size: 0.78rem; }

@media (max-width: 700px) {
  :root { font-size: 17px; }
  .site-header { padding: 0.9rem 1rem; }
  .site-header span { font-size: 0.72rem; }
  .app-shell { width: min(100% - 1rem, 920px); padding: 1.15rem; border-radius: 0.9rem; }
  .choice-grid { grid-template-columns: 1fr; }
  .placeholder-actions { grid-template-columns: 1fr; }
  .contact-options, .contact-fields { grid-template-columns: 1fr; }
  .contact-preview-actions .button { width: 100%; }
  .choice { min-height: 3.8rem; padding: 0.9rem; }
  .actions { position: sticky; bottom: 0; margin-inline: -1.15rem; padding: 0.9rem 1.15rem; background: rgba(255, 255, 255, 0.96); }
  .button { flex: 1; }
}

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