:root {
  --navy: #153b61;
  --navy-dark: #0c2947;
  --orange: #f59b23;
  --teal: #009a9a;
  --ink: #1b2b3d;
  --muted: #687786;
  --line: #dce4e7;
  --canvas: #f5f3ec;
  --white: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 82% 7%, #e2f3f2 0, transparent 28%), linear-gradient(120deg, #f7f2e7, #f8faf8 58%, #e8f4f3); }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.page-width { width: min(calc(100% - 48px), 1180px); margin-inline: auto; }
.site-header { border-bottom: 1px solid rgba(21,59,97,.12); background: rgba(255,255,255,.86); backdrop-filter: blur(14px); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; }
.brand-logo { width: 180px; height: auto; display: block; }
.header-note { display: inline-flex; align-items: center; gap: 9px; color: var(--navy); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.header-note i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(0,154,154,.1); }
.layout { display: grid; grid-template-columns: minmax(280px,360px) minmax(0,1fr); gap: 80px; padding-block: 56px 72px; }
.intro { position: sticky; top: 32px; align-self: start; }
.eyebrow { margin: 0 0 18px; color: var(--teal); font-size: 11px; font-weight: 850; letter-spacing: .17em; text-transform: uppercase; }
.intro h1 { max-width: 360px; margin: 0; color: var(--navy-dark); font-size: clamp(42px,4vw,58px); line-height: 1.04; letter-spacing: -.045em; }
.intro-copy { max-width: 340px; margin: 26px 0 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.time-card { width: 100%; margin-top: 30px; padding: 17px 18px; display: flex; flex-direction: column; border: 1px solid rgba(245,155,35,.25); border-radius: 16px; background: rgba(255,255,255,.68); }
.time-card strong { color: var(--navy); }
.time-card span { margin-top: 5px; color: var(--muted); font-size: 11px; }
.step-list { list-style: none; padding: 0; margin: 32px 0 0; }
.step-list li { min-height: 54px; display: grid; grid-template-columns: 34px 1fr; gap: 12px; position: relative; }
.step-list li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 31px; width: 1px; height: 23px; background: #d6dede; }
.step-list li > span { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: #8b969e; font-size: 10px; }
.step-list li.active > span { color: white; border-color: var(--orange); background: var(--orange); box-shadow: 0 7px 18px rgba(245,155,35,.3); }
.step-list li.complete > span { color: var(--teal); border-color: rgba(0,154,154,.25); background: #e6f5f3; }
.step-list strong, .step-list small { display: block; }
.step-list strong { color: var(--navy); font-size: 12px; }
.step-list small { margin-top: 3px; color: #9aa5ac; font-size: 10px; }
.survey-card { align-self: start; overflow: hidden; border: 1px solid rgba(21,59,97,.08); border-radius: 28px; background: rgba(255,255,255,.94); box-shadow: 0 25px 70px rgba(21,59,97,.13); }
.progress-meta { padding: 20px 30px 14px; display: flex; justify-content: space-between; color: var(--navy); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.progress-track { height: 4px; background: #e8edef; }
.progress-track span { display: block; height: 100%; width: 20%; background: linear-gradient(90deg,var(--orange),#ffc15a); transition: width .25s ease; }
.step-heading { padding: 36px 42px 26px; }
.step-heading h2 { margin: 0; color: var(--navy-dark); font-size: 38px; line-height: 1.1; letter-spacing: -.035em; }
.step-heading > p:last-child { margin: 13px 0 0; color: var(--muted); line-height: 1.6; }
.survey-card form { padding: 0 42px 34px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span, fieldset > legend { color: #435365; font-size: 11px; font-weight: 750; }
.field b { color: var(--orange); }
.field input, .field textarea, .dashboard-tools input { width: 100%; padding: 14px 15px; border: 1px solid var(--line); border-radius: 12px; outline: none; color: var(--ink); background: #fbfcfc; transition: border .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus, .dashboard-tools input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(0,154,154,.1); }
.field textarea { min-height: 112px; resize: vertical; }
.textarea { margin-bottom: 20px; }
.honeypot { position: absolute; left: -10000px; }
.scale-legend { display: grid; grid-template-columns: repeat(4,auto); gap: 15px; margin-bottom: 18px; padding: 12px 15px; border-radius: 12px; background: #f2f7f7; color: var(--muted); font-size: 9px; }
.scale-legend b { color: var(--navy); }
.question-block, .nps-section, .choice-section { min-width: 0; margin: 0 0 15px; padding: 16px; border: 1px solid var(--line); border-radius: 15px; }
.question-block legend { max-width: 100%; padding: 0 5px; line-height: 1.45; }
.question-block legend span { margin-right: 8px; color: var(--teal); font-size: 9px; }
.rating-scale { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 7px; margin-top: 13px; }
.rating { min-height: 50px; padding: 6px 3px; border: 1px solid var(--line); border-radius: 10px; color: var(--navy); background: white; cursor: pointer; }
.rating strong, .rating small { display: block; }
.rating small { display: none; }
.rating:hover { border-color: var(--teal); }
.rating.selected { color: white; border-color: var(--navy); background: var(--navy); box-shadow: 0 7px 15px rgba(21,59,97,.18); }
.nps-section { margin-top: 24px; padding: 20px; }
.nps-section legend { padding: 0 5px; line-height: 1.5; }
.nps-scale { display: grid; grid-template-columns: repeat(11,minmax(0,1fr)); gap: 5px; margin-top: 15px; }
.nps-scale button { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 9px; color: var(--navy); background: white; cursor: pointer; }
.nps-scale button.selected { color: white; border-color: var(--orange); background: var(--orange); }
.nps-labels { display: flex; justify-content: space-between; margin-top: 8px; color: var(--muted); font-size: 9px; }
.choice-section { margin-top: 18px; }
.choice-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin-top: 14px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span { min-height: 50px; padding: 9px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: #536170; font-size: 11px; font-weight: 700; text-align: center; }
.choice input:checked + span { color: white; border-color: var(--navy); background: var(--navy); }
.contact-note { color: #9d5310; font-size: 11px; }
.form-error { margin-top: 18px; padding: 13px 15px; border: 1px solid #f0b9ad; border-radius: 11px; color: #8f3522; background: #fff2ef; font-size: 12px; }
.form-footer { margin-top: 27px; padding-top: 22px; display: flex; justify-content: space-between; align-items: center; gap: 18px; border-top: 1px solid var(--line); }
.privacy-note { max-width: 300px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.actions { display: flex; gap: 9px; }
.primary, .secondary, .pdf-button { min-height: 48px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; border-radius: 12px; font-size: 12px; font-weight: 800; text-decoration: none; cursor: pointer; }
.primary { border: 0; color: white; background: var(--navy); box-shadow: 0 10px 22px rgba(21,59,97,.18); }
.primary:hover { background: var(--navy-dark); }
.secondary { border: 1px solid var(--line); color: var(--navy); background: white; }
button:disabled { opacity: .55; cursor: wait; }
.success-shell { min-height: calc(100vh - 82px); display: grid; place-items: center; padding: 30px; }
.success-card { width: min(100%,600px); padding: 55px; border-radius: 26px; text-align: center; background: white; box-shadow: 0 25px 70px rgba(21,59,97,.14); }
.success-mark { width: 58px; height: 58px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--teal); font-size: 26px; }
.success-card h1 { color: var(--navy); font-size: 38px; }
.success-card > p:not(.eyebrow) { color: var(--muted); }
.reference { margin-top: 25px; padding: 15px; border-radius: 12px; background: #f2f7f7; }
.reference span, .reference strong { display: block; }
.reference span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .14em; }
.reference strong { margin-top: 5px; color: var(--navy); letter-spacing: .15em; }
.admin-body { background: #f4f7f7; }
.admin-shell { padding-block: 60px; }
.admin-login { width: min(100%,520px); margin: 0 auto; padding: 42px; border-radius: 24px; background: white; box-shadow: 0 20px 60px rgba(21,59,97,.12); }
.admin-login h1, .dashboard h1 { margin: 0; color: var(--navy); font-size: 38px; letter-spacing: -.035em; }
.admin-login > p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }
.admin-login form { margin-top: 25px; }
.admin-login .primary { width: 100%; margin-top: 18px; }
.dashboard-heading { display: flex; justify-content: space-between; align-items: end; }
.dashboard-tools { margin-top: 30px; display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.result-count { color: var(--muted); font-size: 12px; }
.response-list { display: grid; gap: 12px; }
.response-card { padding: 20px 22px; display: grid; grid-template-columns: 1fr auto auto; gap: 24px; align-items: center; border: 1px solid var(--line); border-radius: 16px; background: white; }
.response-card h2 { margin: 4px 0 7px; color: var(--navy); font-size: 19px; }
.response-card p { margin: 0; color: var(--muted); font-size: 12px; }
.response-date { text-transform: uppercase; letter-spacing: .08em; }
.response-score { text-align: center; }
.response-score span, .response-score strong { display: block; }
.response-score span { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.response-score strong { margin-top: 4px; color: var(--teal); font-size: 20px; }
.pdf-button { min-height: 42px; padding-inline: 16px; color: white; background: var(--orange); }
.loading, .empty-state { padding: 45px; border-radius: 16px; color: var(--muted); text-align: center; background: white; }

@media (max-width: 940px) {
  .layout { grid-template-columns: 1fr; gap: 30px; padding-top: 34px; }
  .intro { position: static; }
  .intro h1 { max-width: 700px; font-size: clamp(37px,7vw,54px); }
  .time-card { display: none; }
  .step-list { display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; }
  .step-list li { display: flex; min-height: 0; flex-direction: column; gap: 7px; }
  .step-list li::after, .step-list small { display: none; }
}

@media (max-width: 680px) {
  .page-width { width: min(calc(100% - 28px),1180px); }
  .header-inner { min-height: 70px; }
  .brand-logo { width: 145px; }
  .header-note { max-width: 130px; font-size: 8px; text-align: right; }
  .layout { padding-block: 26px; }
  .intro h1 { font-size: 39px; }
  .step-list { overflow-x: auto; grid-template-columns: repeat(5,minmax(74px,1fr)); padding-bottom: 5px; }
  .survey-card { border-radius: 22px; }
  .progress-meta { padding: 17px 19px 12px; }
  .step-heading { padding: 28px 21px 22px; }
  .step-heading h2 { font-size: 30px; }
  .survey-card form { padding: 0 21px 24px; }
  .form-grid { grid-template-columns: 1fr; gap: 17px; }
  .scale-legend { overflow-x: auto; grid-template-columns: repeat(4,max-content); }
  .rating-scale { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 4px; }
  .rating { min-height: 46px; }
  .nps-scale { grid-template-columns: repeat(6,minmax(0,1fr)); }
  .choice-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .form-footer { align-items: stretch; flex-direction: column; }
  .actions { width: 100%; }
  .primary { flex: 1; }
  .admin-shell { padding-block: 30px; }
  .admin-login { padding: 30px 22px; }
  .dashboard-heading { align-items: flex-start; gap: 20px; }
  .dashboard-tools { grid-template-columns: 1fr; }
  .response-card { grid-template-columns: 1fr auto; gap: 14px; }
  .response-main { grid-column: 1 / -1; }
}

@media (max-width: 420px) {
  .rating-scale { grid-template-columns: repeat(3,1fr); }
  .response-card { grid-template-columns: 1fr; }
  .response-main { grid-column: auto; }
  .response-score { text-align: left; }
}

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