:root {
  --ink: #1e2a23;
  --muted: #647068;
  --paper: #f6f3ec;
  --card: #fffefa;
  --line: #d9ddd5;
  --green: #2f6b4f;
  --green-dark: #214d39;
  --mint: #dcebe1;
  --orange: #db6b3c;
  --shadow: 0 22px 70px rgba(34, 51, 42, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 11% 28%, rgba(219,107,60,.10) 0 2px, transparent 3px),
    radial-gradient(circle at 84% 18%, rgba(47,107,79,.10) 0 3px, transparent 4px),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.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; }
.page-shell { width: min(1120px, calc(100% - 40px)); min-height: 100vh; margin: 0 auto; display: flex; flex-direction: column; }
.site-header, footer { display: flex; align-items: center; justify-content: space-between; padding: 30px 0; }
.brand { color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 19px; letter-spacing: -.04em; }
.brand em { color: var(--green); font-style: normal; font-weight: 500; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; color: white; background: var(--green); border-radius: 10px 10px 10px 3px; }
.privacy-note { font-size: 13px; color: var(--muted); }
.privacy-note span { color: #67a37d; font-size: 8px; margin-right: 7px; }
main { flex: 1; display: grid; place-items: center; padding: 48px 0 72px; }
.intro { max-width: 830px; text-align: center; animation: rise .55s ease both; }
.eyebrow { color: var(--orange); font-size: 12px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; margin-bottom: 20px; }
h1 { margin: 0; font-size: clamp(48px, 7.2vw, 88px); line-height: .98; letter-spacing: -.065em; font-weight: 700; }
h1 span { color: var(--green); }
.intro > p { max-width: 610px; margin: 28px auto; color: var(--muted); font-size: 18px; line-height: 1.7; }
.meta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin: 32px 0; font-size: 13px; color: var(--muted); font-weight: 600; }
.primary-button, .secondary-button { border: 0; border-radius: 14px; padding: 16px 22px; font-weight: 800; transition: transform .18s, box-shadow .18s, background .18s; }
.primary-button { color: white; background: var(--green); box-shadow: 0 10px 25px rgba(47,107,79,.22); }
.primary-button:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 13px 30px rgba(47,107,79,.26); }
.primary-button span { margin-left: 22px; }
.secondary-button { color: var(--ink); background: transparent; border: 1px solid var(--line); }
.secondary-button:hover:not(:disabled) { background: #eef1eb; }
.secondary-button:disabled { opacity: .35; cursor: not-allowed; }
.microcopy { font-size: 11px !important; margin-top: 17px !important; }
.survey { width: min(960px, 100%); padding: clamp(25px, 5vw, 52px); background: var(--card); border: 1px solid rgba(42, 68, 53, .09); border-radius: 28px; box-shadow: var(--shadow); animation: rise .42s ease both; }
.survey-topline { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.step-label { margin: 0 0 7px; color: var(--orange); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.survey h2 { margin: 0; font-size: 17px; }
.text-button { border: 0; background: none; color: var(--muted); font-size: 13px; padding: 4px; }
.progress-track { height: 5px; margin: 22px 0 43px; background: #e9ece6; border-radius: 99px; overflow: hidden; }
.progress-track span { display: block; width: 14.28%; height: 100%; background: var(--orange); border-radius: inherit; transition: width .3s ease; }
fieldset { min-width: 0; border: 0; padding: 0; margin: 0; animation: fade .3s ease both; }
legend { width: 100%; font-size: clamp(25px, 4vw, 37px); line-height: 1.15; letter-spacing: -.04em; font-weight: 700; }
.question-help { margin: 12px 0 26px; color: var(--muted); font-size: 14px; }
.option-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; }
.option span { min-height: 85px; display: flex; flex-direction: column; justify-content: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: 15px; transition: .18s; }
.option span::before { content: ""; position: absolute; right: 17px; top: 17px; width: 16px; height: 16px; border: 1px solid #aeb7af; border-radius: 50%; }
.option b { padding-right: 24px; font-size: 14px; }
.option small { margin-top: 5px; color: var(--muted); font-size: 11px; }
.option input:checked + span { border-color: var(--green); background: var(--mint); box-shadow: inset 0 0 0 1px var(--green); }
.option input:checked + span::before { border: 5px solid var(--green); background: white; }
.option input:focus-visible + span, .scale input:focus-visible + span, .nps input:focus-visible + span { outline: 3px solid rgba(219,107,60,.35); outline-offset: 2px; }
.compact .option span { min-height: 64px; }
.scale, .nps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 35px; }
.scale label, .nps label { position: relative; }
.scale input, .nps input { position: absolute; opacity: 0; }
.scale span, .nps span { aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); font-weight: 800; transition: .18s; }
.scale input:checked + span, .nps input:checked + span { color: white; background: var(--green); border-color: var(--green); transform: translateY(-3px); }
.scale-labels { display: flex; justify-content: space-between; margin-top: 10px; color: var(--muted); font-size: 10px; }
.nps { grid-template-columns: repeat(11, 1fr); gap: 6px; }
.nps span { border-radius: 10px; font-size: 12px; }
.textarea-wrap { position: relative; display: block; margin-top: 26px; }
textarea { width: 100%; min-height: 180px; resize: vertical; padding: 18px; color: var(--ink); background: #fbfbf8; border: 1px solid var(--line); border-radius: 14px; outline: none; }
textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(47,107,79,.10); }
.textarea-wrap small { position: absolute; right: 15px; bottom: 13px; color: var(--muted); }
.form-error { margin: 18px 0 0; color: #a13e2e; font-size: 13px; font-weight: 700; }
.form-actions { display: flex; justify-content: space-between; margin-top: 38px; }
.complete { max-width: 620px; text-align: center; animation: rise .45s ease both; }
.complete-icon { width: 78px; height: 78px; display: grid; place-items: center; margin: 0 auto 26px; color: white; background: var(--green); border-radius: 50%; font-size: 36px; box-shadow: 0 14px 32px rgba(47,107,79,.25); }
.complete h2 { margin: 0; font-size: clamp(45px, 7vw, 72px); letter-spacing: -.06em; }
.complete p { color: var(--muted); line-height: 1.7; margin: 24px auto 34px; }
footer { border-top: 1px solid rgba(42,68,53,.1); color: var(--muted); font-size: 11px; }

.status-card { max-width: 620px; padding: 42px; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.status-card h1 { font-size: clamp(28px, 5vw, 46px); }
.status-card p, .screen-help { color: var(--muted); line-height: 1.65; }
.spinner { width: 44px; height: 44px; margin: 0 auto 24px; border: 4px solid var(--mint); border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
.status-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 24px; border-radius: 50%; font-size: 28px; font-weight: 800; }
.status-icon-error { color: #8d2f22; background: #f7ddd8; }
.company-name { margin: 18px 0 0 !important; color: var(--green) !important; font-weight: 800; }
.privacy-box, .warning-box { margin: 28px 0; padding: 20px 22px; text-align: left; background: #eef5f0; border: 1px solid #cfe0d4; border-radius: 14px; }
.privacy-box p, .warning-box p { margin: 8px 0 0; color: var(--muted); line-height: 1.6; }
.warning-box { background: #fff6e5; border-color: #edcf91; }
.warning-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; margin-top: 18px; }
.screen-help { margin: 0 0 30px; }
.question-block { display: block; margin: 0 0 28px; padding: 22px; background: #fbfbf8; border: 1px solid var(--line); border-radius: 17px; }
.question-block legend, .open-label { width: 100%; margin-bottom: 15px; font-size: 18px; line-height: 1.5; font-weight: 700; letter-spacing: -.01em; }
.question-block legend small { color: var(--muted); font-size: 12px; font-weight: 500; }
.question-code { display: inline-block; margin-right: 10px; padding: 4px 8px; color: var(--green); background: var(--mint); border-radius: 7px; font-size: 12px; font-weight: 800; vertical-align: 2px; }
.answer-scale { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.answer-scale .option span { min-height: 76px; padding: 12px 9px; text-align: center; }
.answer-scale .option span::before { display: none; }
.answer-scale .option b { padding: 0; font-size: 11px; }
.incident-sources { margin-top: 18px; padding: 18px; background: var(--mint); border-radius: 12px; }
.incident-sources p { margin: 0; font-weight: 700; }
.open-question { position: relative; }
.open-label { display: block; }
.char-count { display: block; margin-top: 7px; color: var(--muted); text-align: right; }
.review-card { margin: 10px 0 28px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.review-card p { display: flex; justify-content: space-between; gap: 24px; margin: 0; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.review-card p:last-child { border-bottom: 0; }
.review-card span { color: var(--muted); }
.form-error { padding: 14px 16px; background: #f9e5e1; border-radius: 10px; }
button:focus-visible, input:focus-visible + span, textarea:focus-visible { outline: 3px solid rgba(219,107,60,.42); outline-offset: 3px; }

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 620px) {
  .page-shell { width: min(100% - 24px, 1120px); }
  .site-header { padding: 19px 0; }
  .privacy-note { display: none; }
  main { padding: 30px 0 50px; }
  .intro { text-align: left; }
  .intro > p { margin-left: 0; }
  .meta-row { justify-content: flex-start; gap: 10px 18px; }
  .intro .primary-button { width: 100%; }
  .microcopy { text-align: center; }
  .survey { padding: 25px 18px; border-radius: 20px; }
  .option-grid { grid-template-columns: 1fr; }
  .answer-scale { grid-template-columns: repeat(2, 1fr); }
  .review-card p { flex-direction: column; gap: 6px; }
  .warning-actions { flex-direction: column; }
  .warning-actions button { width: 100%; }
  .nps { grid-template-columns: repeat(6, 1fr); }
  .nps span { aspect-ratio: auto; min-height: 44px; }
  footer { align-items: flex-start; gap: 8px; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
