:root {
  --bg: #f5f3ed;
  --bg-gradient: radial-gradient(circle at top right, #f9deba 0%, rgba(249, 222, 186, 0) 40%),
    radial-gradient(circle at 12% 82%, #c4ece8 0%, rgba(196, 236, 232, 0) 45%);
  --card: #ffffff;
  --text: #1e2a2f;
  --muted: #596a70;
  --primary: #0d6f6d;
  --primary-dark: #0a5756;
  --accent: #ea6c12;
  --line: #d8dfdf;
  --danger: #a63d20;
  --shadow: 0 18px 34px rgba(20, 35, 37, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'IBM Plex Sans', 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg-gradient), var(--bg);
}

.page-shell {
  width: min(940px, 92vw);
  margin: 3rem auto;
}

.survey-card {
  background: var(--card);
  border: 1px solid #d7dfde;
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 2rem clamp(1rem, 3vw, 2.4rem);
}

.survey-header h1 {
  margin: 0.35rem 0 0.4rem;
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  line-height: 1.2;
}

.eyebrow {
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--accent);
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.intro {
  margin: 0.25rem 0 1.3rem;
  color: var(--muted);
  max-width: 75ch;
  line-height: 1.45;
}

.progress-wrap {
  margin-top: 1rem;
}

.progress-track {
  height: 10px;
  border-radius: 999px;
  background: #e4ebea;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #4eb8a9);
  transition: width 0.22s ease;
}

#progressText {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.step {
  display: none;
  margin-top: 1.5rem;
}

.step.active {
  display: block;
}

.step h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
}

.question {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.95rem 1rem;
  margin: 0 0 0.9rem;
}

.question label,
.question legend {
  font-weight: 500;
  line-height: 1.4;
}

.question fieldset,
.question legend {
  border: 0;
  padding: 0;
  margin: 0;
}

.question > label {
  display: block;
  margin-bottom: 0.5rem;
}

.question input[type='text'],
.question input[type='email'],
.question textarea {
  width: 100%;
  font: inherit;
  border: 1px solid #bac7c5;
  border-radius: 9px;
  padding: 0.62rem 0.7rem;
  color: var(--text);
}

.question input[type='text']:focus,
.question input[type='email']:focus,
.question textarea:focus {
  outline: 2px solid rgba(13, 111, 109, 0.25);
  outline-offset: 1px;
  border-color: var(--primary);
}

.question label:has(input[type='radio']),
.question label:has(input[type='checkbox']) {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.45rem 0 0;
  font-weight: 400;
}

input[type='radio'],
input[type='checkbox'] {
  accent-color: var(--primary);
  margin-top: 0.2rem;
}

.required {
  color: var(--danger);
}

.hint {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.89rem;
}

.form-message {
  min-height: 1.3rem;
  margin: 0.6rem 0 0;
  color: var(--danger);
  font-weight: 500;
}

.form-message.success {
  color: var(--primary-dark);
}

.actions {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.65rem;
  justify-content: flex-end;
}

button {
  font: inherit;
  font-weight: 600;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #ffffff;
  border-radius: 10px;
  padding: 0.58rem 1.1rem;
  cursor: pointer;
  transition: transform 0.08s ease, background-color 0.2s ease;
}

button:hover {
  background: var(--primary-dark);
}

button:active {
  transform: translateY(1px);
}

button.secondary {
  background: transparent;
  color: var(--primary);
}

button.secondary:hover {
  background: rgba(13, 111, 109, 0.08);
}

button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.thank-you {
  margin-top: 1.2rem;
}

.thank-you h2 {
  margin: 0.4rem 0;
}

.response-id {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--muted);
}

@media (max-width: 680px) {
  .page-shell {
    width: min(960px, 95vw);
    margin: 1.25rem auto;
  }

  .survey-card {
    padding: 1.2rem 0.95rem;
    border-radius: 14px;
  }

  .actions {
    flex-wrap: wrap;
  }

  button {
    width: 100%;
  }
}
