:root {
  --bg: #eef2f0;
  --panel: #ffffff;
  --panel-alt: #f7f9f8;
  --text: #17211d;
  --muted: #55635c;
  --line: #d3ddd8;
  --accent: #1f5f4a;
  --accent-strong: #174b3a;
  --danger: #a12f2f;
  --shadow: 0 20px 48px rgba(23, 33, 29, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(31, 95, 74, 0.12), transparent 28%),
    linear-gradient(180deg, #f7faf8 0%, var(--bg) 100%);
}

.page {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.hero,
.card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(211, 221, 216, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

.hero {
  padding: 32px;
  margin-bottom: 24px;
}

.card {
  padding: 28px;
  margin-bottom: 20px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

h1 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.1;
}

h2 {
  margin-bottom: 14px;
  font-size: 1.4rem;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

p,
label,
legend {
  line-height: 1.55;
}

.subtitle,
.section-note,
.question-help,
.status,
.checkbox-hint {
  color: var(--muted);
}

.intro-text p:last-child,
.section-note:last-child {
  margin-bottom: 0;
}

.survey-form {
  display: grid;
  gap: 20px;
}

.section-header {
  margin-bottom: 18px;
}

.question {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-alt);
}

.question + .question {
  margin-top: 16px;
}

.options-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.option-card,
.checkbox-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.option-card input,
.checkbox-card input {
  margin-top: 0.2rem;
}

.checkbox-list {
  display: grid;
  gap: 10px;
}

textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

textarea:focus,
button:focus,
input:focus {
  outline: 3px solid rgba(31, 95, 74, 0.18);
  outline-offset: 2px;
}

.status {
  min-height: 1.5rem;
  font-weight: 600;
}

.status.error {
  color: var(--danger);
}

.status.success {
  color: var(--accent);
}

.actions {
  display: flex;
  justify-content: flex-end;
}

button {
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 14px 24px;
  cursor: pointer;
  transition: transform 140ms ease, opacity 140ms ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.thanks-card {
  margin-top: 10vh;
}

@media (max-width: 720px) {
  .page {
    width: min(100% - 20px, 960px);
    padding: 20px 0 40px;
  }

  .hero,
  .card {
    padding: 22px;
  }

  .options-grid {
    grid-template-columns: 1fr;
  }

  .actions {
    justify-content: stretch;
  }

  button {
    width: 100%;
  }
}
