:root {
  --ink: #16241f;
  --muted: #66736e;
  --line: #d7dfda;
  --paper: #f7f8f4;
  --card: #ffffff;
  --accent: #cf5a38;
  --accent-dark: #a94027;
  --soft: #e9f0eb;
  --shadow: 0 20px 60px rgba(22, 36, 31, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
.shell { width: min(100% - 36px, 880px); margin: 0 auto; padding: 64px 0 100px; }
.hero { max-width: 720px; padding: 28px 0 46px; }
.eyebrow, .section-kicker { color: var(--accent); font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { max-width: 670px; margin: 15px 0 18px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.8rem, 7vw, 5.6rem); font-weight: 400; letter-spacing: -.06em; line-height: .95; }
h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.65rem, 4vw, 2.25rem); font-weight: 400; letter-spacing: -.035em; line-height: 1.1; }
.intro { max-width: 630px; color: var(--muted); font-size: 1.12rem; }
.meta-row { display: flex; gap: 18px; margin-top: 26px; color: var(--ink); font-size: .82rem; font-weight: 700; }
.meta-row span + span::before { content: "·"; margin-right: 18px; color: var(--accent); }
.text-link { display: inline-block; margin-top: 24px; color: var(--accent-dark); font-size: .83rem; font-weight: 800; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.respondent-status { max-width: 620px; margin: 19px 0 0; color: var(--muted); font-size: .78rem; }
.progress-wrap { position: sticky; top: 0; z-index: 5; margin: 0 -18px 52px; padding: 12px 18px; background: rgba(247, 248, 244, .92); backdrop-filter: blur(10px); }
.progress-track { height: 5px; overflow: hidden; border-radius: 9px; background: var(--line); }
.progress-bar { width: 0; height: 100%; border-radius: inherit; background: var(--accent); transition: width .25s ease; }
.progress-label { margin-top: 8px; color: var(--muted); font-size: .75rem; font-weight: 700; }
.section { margin-bottom: 66px; }
.section-heading { margin-bottom: 26px; }
.section-heading h2 { margin: 8px 0 7px; }
.section-heading p { max-width: 620px; color: var(--muted); }
.question { min-width: 0; margin: 0 0 18px; padding: 27px 30px 30px; border: 1px solid var(--line); border-radius: 5px; background: var(--card); box-shadow: 0 7px 25px rgba(22, 36, 31, .025); }
.question legend { display: flex; gap: 15px; width: 100%; padding: 0; font-size: 1.04rem; font-weight: 750; line-height: 1.4; }
.question-number { flex: 0 0 auto; color: var(--accent); font-family: Georgia, serif; font-size: 1.05rem; font-weight: 400; }
.required { color: var(--accent); }
.help { margin: 8px 0 16px 31px; color: var(--muted); font-size: .88rem; }
input[type="text"] { width: calc(100% - 31px); margin: 20px 0 0 31px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; }
input[type="text"]:focus { border-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
.options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; margin: 18px 0 0 31px; }
.option { display: flex; align-items: flex-start; gap: 8px; min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); cursor: pointer; font-size: .84rem; line-height: 1.35; transition: border-color .15s, background .15s; }
.option:hover { border-color: #9eafa5; background: #fbfcfa; }
.option:has(input:checked) { border-color: var(--accent); background: #fff5f0; }
.option input { flex: 0 0 auto; width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--accent); }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; margin: 21px 0 0 31px; }
.scale-option { text-align: center; cursor: pointer; }
.scale-option input { position: absolute; opacity: 0; }
.scale-option span { display: block; padding: 11px 8px; border: 1px solid var(--line); border-radius: 4px; font-family: Georgia, serif; font-size: 1.2rem; }
.scale-option:has(input:checked) span { border-color: var(--accent); background: var(--accent); color: #fff; }
.scale-labels { display: flex; justify-content: space-between; margin: 8px 0 0 31px; color: var(--muted); font-size: .75rem; }
.field-error { display: none; margin: 13px 0 0 31px; color: var(--accent-dark); font-size: .8rem; font-weight: 700; }
.has-error { border-color: #e7a18d; }
.has-error .field-error { display: block; }
.form-footer { padding: 28px 0; }
.privacy { max-width: 620px; color: var(--muted); font-size: .8rem; }
button { margin-top: 12px; padding: 14px 19px; border: 0; border-radius: 4px; background: var(--ink); color: #fff; cursor: pointer; font: inherit; font-weight: 750; }
button:hover { background: var(--accent-dark); }
button:disabled { cursor: wait; opacity: .6; }
button span { display: inline-block; margin-left: 10px; font-size: 1.2rem; line-height: 0; }
.error-message { min-height: 1.5em; margin: 16px 0 0; color: var(--accent-dark); font-size: .86rem; font-weight: 700; }
.success { margin-top: 40px; padding: clamp(32px, 8vw, 74px); border-radius: 5px; background: var(--soft); }
.success-mark { display: grid; width: 46px; height: 46px; margin-bottom: 25px; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font-size: 1.5rem; }
.success h2 { margin: 8px 0 12px; font-size: clamp(2rem, 5vw, 3.3rem); }
.success p { max-width: 510px; color: var(--muted); }
[hidden] { display: none !important; }
@media (max-width: 620px) {
  .shell { width: min(100% - 24px, 880px); padding-top: 32px; }
  .hero { padding-bottom: 34px; }
  .question { padding: 23px 18px 24px; }
  .options { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-left: 0; }
  .help, input[type="text"], .scale, .scale-labels, .field-error { margin-left: 0; }
  input[type="text"] { width: 100%; }
  .question legend { gap: 11px; }
  .progress-wrap { margin-bottom: 38px; }
}
@media (max-width: 900px) and (min-width: 621px) {
  .options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .options { grid-template-columns: 1fr; }
}
