:root {
  --bg: #f6f7f3;
  --ink: #18202a;
  --muted: #667085;
  --line: #d8ded8;
  --paper: #ffffff;
  --soft: #eef3ef;
  --accent: #0f766e;
  --accent-strong: #0b5f59;
  --accent-soft: #e4f4f1;
  --warn: #b45309;
  --focus: #2563eb;
  --shadow: 0 20px 50px rgba(24, 32, 42, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.08), rgba(180, 83, 9, 0.04)),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

.shell {
  width: min(100%, 640px);
  margin: 0 auto;
  padding: 28px 16px;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 16px 0 0 var(--warn);
  transform: translateX(-8px);
}

.survey-card {
  min-height: 430px;
  background: var(--paper);
  border: 1px solid rgba(24, 32, 42, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(20px, 5vw, 32px);
}

.progress-track {
  height: 8px;
  overflow: hidden;
  margin-bottom: 26px;
  border-radius: 999px;
  background: var(--soft);
}

.progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--warn));
  transition: width 180ms ease;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-bottom: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.question {
  max-width: 560px;
  margin: 0 0 8px;
  color: var(--ink);
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.1;
  letter-spacing: 0;
}

.question.compact {
  font-size: clamp(22px, 4vw, 28px);
  line-height: 1.16;
}

.hint {
  max-width: 560px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.options {
  display: grid;
  gap: 10px;
  margin: 20px 0 8px;
}

.option {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.option:hover {
  border-color: var(--accent);
  background: #fbfdfb;
}

.option.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.multi-note,
.error {
  margin: 10px 0 0;
  font-size: 13px;
}

.multi-note {
  color: var(--muted);
}

.error {
  color: #b42318;
}

.field-grid {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.field {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
}

.field:focus,
.option:focus,
.next:focus,
.back:focus {
  outline: 3px solid rgba(37, 99, 235, 0.24);
  outline-offset: 2px;
  border-color: var(--focus);
}

.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.next,
.back {
  min-height: 44px;
  border-radius: 8px;
  cursor: pointer;
}

.next {
  min-width: 112px;
  padding: 0 18px;
  border: 0;
  background: var(--accent);
  color: #ffffff;
  font-weight: 750;
}

.next:hover {
  background: var(--accent-strong);
}

.next:disabled {
  background: #c7d1cb;
  cursor: not-allowed;
}

.back {
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 650;
}

.back:hover {
  color: var(--ink);
}

.privacy-note {
  margin: 14px auto 0;
  color: #697586;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.done {
  display: grid;
  gap: 16px;
}

.status-mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 32px;
  font-weight: 800;
}

.summary {
  display: grid;
  gap: 10px;
  margin-top: 4px;
  padding: 16px;
  border-radius: 8px;
  background: var(--soft);
  color: #344054;
  font-size: 14px;
}

.summary-title {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.summary-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
}

.summary-key {
  color: var(--muted);
}

.submitting {
  display: grid;
  min-height: 260px;
  place-items: center;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 520px) {
  .shell {
    padding: 16px 12px;
  }

  .survey-card {
    min-height: 520px;
  }

  .actions {
    align-items: stretch;
  }

  .next {
    flex: 1;
  }

  .summary-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
