:root {
  --bg: #f3f4f6;
  --surface: #ffffff;
  --ink: #1f2937;
  --ink-soft: #4b5563;
  --muted: #6b7280;
  --muted-2: #9ca3af;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --accent: #5a8a93;
  --accent-strong: #4a7782;
  --accent-soft: #aac6cc;
  --accent-bg: #e8eff1;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.05);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 48px 20px 80px;
}

.form-wrap {
  width: 100%;
  max-width: 720px;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 28px;
}

.header__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #d8dde0;
  color: #6b7480;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.header__icon svg {
  width: 26px;
  height: 26px;
}

.header__eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  margin: 0 0 8px;
}

.header__title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.header__sub {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 22px;
}

/* Progress */
.progress {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 100%;
}

.progress__track {
  flex: 1;
  height: 6px;
  background: #e2e5e8;
  border-radius: 999px;
  overflow: hidden;
}

.progress__fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.35s ease;
}

.progress__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  min-width: 36px;
  text-align: right;
}

/* Card */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 28px 24px;
  border: 1px solid var(--border);
}

.section + .section,
.thanks {
  margin-top: 20px;
}

.section__title {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0 0 22px;
  text-transform: uppercase;
}

/* Questions */
.question {
  margin-bottom: 24px;
}

.question:last-of-type {
  margin-bottom: 8px;
}

.question__text {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 12px;
  display: block;
  line-height: 1.45;
}

.muted {
  color: var(--muted-2);
  font-weight: 400;
}

/* Options */
.options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 4px;
  cursor: pointer;
  color: var(--ink-soft);
  font-size: 15px;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.option:hover {
  background: #f9fafb;
  color: var(--ink);
}

.option input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border-strong);
  border-radius: 50%;
  margin: 0;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s ease;
}

.option input[type="radio"]:hover {
  border-color: var(--accent);
}

.option input[type="radio"]:checked {
  border-color: var(--accent);
  border-width: 5px;
}

.option:has(input[type="radio"]:checked) {
  color: var(--ink);
  font-weight: 500;
}

/* Textareas + text inputs */
textarea,
input[type="text"],
input[type="email"] {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea {
  resize: vertical;
  min-height: 92px;
}

textarea::placeholder,
input::placeholder {
  color: var(--muted-2);
}

textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(90, 138, 147, 0.15);
}

.welcome__text {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 22px;
}

/* Hint */
.hint {
  text-align: center;
  color: var(--muted-2);
  font-size: 13px;
  margin: 18px 0 14px;
}

.hint[hidden] {
  display: none;
}

/* Buttons & actions */
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  padding: 13px 18px;
  border: 0;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.05s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  flex: 1;
}

.btn--primary:hover:not(:disabled) {
  background: var(--accent-strong);
}

.btn--primary:disabled {
  background: var(--accent-soft);
  cursor: not-allowed;
}

.btn--ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 13px 18px;
}

.btn--ghost:hover {
  background: #f9fafb;
  color: var(--ink-soft);
}

/* Thank-you */
.thanks {
  text-align: center;
  padding: 48px 28px;
}

.thanks__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-bg);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.thanks__icon svg {
  width: 32px;
  height: 32px;
}

.thanks__title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 10px;
}

.thanks__text {
  color: var(--muted);
  font-size: 15px;
  margin: 0 auto 14px;
  max-width: 440px;
}

.thanks__meta {
  color: var(--muted-2);
  font-size: 13px;
  margin: 0;
}

/* Mobile */
@media (max-width: 560px) {
  .page {
    padding: 28px 16px 56px;
  }

  .header__title {
    font-size: 24px;
  }

  .card {
    padding: 22px 20px;
  }

  .actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .btn--ghost {
    width: 100%;
  }
}
