:root {
  --bg: #f4f6f3;
  --surface: #ffffff;
  --card: #ffffff;
  --text: #15332b;
  --muted: #60706b;
  --accent: #26705d;
  --accent-dark: #174b3f;
  --accent-soft: #e1eee8;
  --border: #c8d3ce;
  --error: #a23b35;
  --shadow: 0 24px 70px rgba(21, 51, 43, 0.1);
  --font-heading: Arial, Helvetica, sans-serif;
  --font-body: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.45;
}

button,
textarea,
input {
  font: inherit;
}

button,
label {
  -webkit-tap-highlight-color: transparent;
}

.page {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 62px 0 28px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.58fr);
  column-gap: 56px;
  align-items: end;
  padding: 0 0 52px;
}

.project-mark {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 50px;
  font-weight: 700;
  font-size: 20px;
}

.project-mark span {
  width: 7px;
  height: 29px;
  background: var(--accent);
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2,
legend,
.text-label {
  font-family: var(--font-heading);
  letter-spacing: -0.04em;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(62px, 9vw, 116px);
  line-height: 0.89;
  font-weight: 700;
}

.lead {
  max-width: 390px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: clamp(22px, 2.3vw, 31px);
  line-height: 1.25;
}

.privacy-note {
  margin: 0;
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
}

.survey-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(38, 112, 93, 0.16);
  box-shadow: var(--shadow);
}

.card-heading {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 32px;
  padding: 54px 64px 48px;
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  margin: 7px 0 0;
  color: var(--accent);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-heading h2,
.success h2 {
  max-width: 690px;
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
}

#survey-form {
  padding: 0 64px;
}

.question {
  min-width: 0;
  margin: 0;
  padding: 54px 0 58px;
  border: 0;
  border-bottom: 1px solid var(--border);
}

legend,
.text-label {
  display: flex;
  align-items: baseline;
  gap: 22px;
  width: 100%;
  margin: 0 0 30px;
  padding: 0;
  color: var(--text);
  font-size: clamp(27px, 3.2vw, 42px);
  font-weight: 700;
  line-height: 1.15;
}

.number {
  flex: 0 0 auto;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.scale label,
.choice {
  position: relative;
  cursor: pointer;
}

.scale input,
.choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.scale label span,
.choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 24px;
  font-weight: 700;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.scale label:hover span,
.choice:hover span {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.scale input:checked + span,
.choice input:checked + span {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.scale input:focus-visible + span,
.choice input:focus-visible + span,
textarea:focus-visible,
.submit-button:focus-visible {
  outline: 3px solid rgba(38, 112, 93, 0.35);
  outline-offset: 3px;
}

.scale-caption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.choice span {
  min-height: 82px;
}

textarea {
  display: block;
  width: 100%;
  min-height: 150px;
  resize: vertical;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: #fbfcfb;
  color: var(--text);
  line-height: 1.5;
}

textarea::placeholder {
  color: #84918d;
}

textarea:focus {
  border-color: var(--accent);
}

.field-error {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--error);
  font-size: 16px;
  font-weight: 700;
}

.question.has-error .scale label span,
.question.has-error .choice span,
.question.has-error textarea {
  border-color: var(--error);
}

.form-footer {
  padding: 46px 0 54px;
}

.submit-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
  min-height: 82px;
  padding: 20px 28px;
  border: 1px solid var(--accent);
  border-radius: 0;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  font-size: 22px;
  font-weight: 800;
  transition: background-color 160ms ease, transform 160ms ease;
}

.submit-button:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.form-status,
.draft-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.form-status.is-error {
  color: var(--error);
  font-weight: 700;
}

.draft-note:empty,
.form-status:empty {
  display: none;
}

.success {
  padding: 76px 64px 82px;
}

.success[hidden] {
  display: none;
}

.success-icon {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin-bottom: 34px;
  background: var(--accent);
  color: #ffffff;
  font-size: 36px;
}

.success .eyebrow {
  margin-bottom: 18px;
}

.success > p:last-child {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 22px;
}

.palette-line {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 13px;
  margin: 50px 0 0;
}

.palette-line span:nth-child(1) {
  background: #dfe7e2;
}

.palette-line span:nth-child(2) {
  background: var(--accent);
}

.palette-line span:nth-child(3) {
  background: var(--text);
}

@media (max-width: 760px) {
  .page {
    width: min(100% - 28px, 620px);
    padding-top: 34px;
  }

  .intro {
    display: block;
    padding-bottom: 34px;
  }

  .project-mark {
    margin-bottom: 42px;
    font-size: 18px;
  }

  h1 {
    font-size: clamp(58px, 19vw, 88px);
  }

  .lead {
    margin-top: 30px;
    font-size: 22px;
  }

  .card-heading {
    display: block;
    padding: 35px 24px 32px;
  }

  .card-heading .eyebrow {
    margin-bottom: 18px;
  }

  .card-heading h2 {
    font-size: 36px;
  }

  #survey-form {
    padding: 0 24px;
  }

  .question {
    padding: 38px 0 42px;
  }

  legend,
  .text-label {
    gap: 13px;
    margin-bottom: 24px;
    font-size: 28px;
  }

  .scale {
    gap: 6px;
  }

  .scale label span {
    min-height: 62px;
    font-size: 21px;
  }

  .scale-caption {
    font-size: 12px;
  }

  .choice-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .choice span {
    min-height: 68px;
  }

  .form-footer {
    padding: 36px 0 42px;
  }

  .submit-button {
    min-height: 72px;
    font-size: 19px;
  }

  .success {
    padding: 54px 24px 60px;
  }

  .success h2 {
    font-size: 38px;
  }

  .palette-line {
    margin-top: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}