:root {
  --bg: #000000;
  --bg-card: #0e0e14;
  --border: #1a1a24;
  --border-bright: #2a2a36;
  --text: #f0f0f4;
  --text-dim: #8a8a96;
  --text-faint: #54545e;
  --accent: #8b5cf6;
  --accent-soft: #b599ff;
  --safe: #10b981;
  --danger: #ef4444;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.survey-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 32px;
  border-bottom: 1px solid var(--border);
}

.nav-brand { font-weight: 600; font-size: 15px; }
.nav-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.survey-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.progress-bar {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 10px;
}

#progress-fill {
  height: 100%;
  width: 16.66%;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  transition: width 0.25s ease;
}

.progress-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 28px;
}

.survey-form { border: none; }

.survey-step {
  border: none;
  display: none;
  margin: 0;
  padding: 0;
}

.survey-step.active { display: block; }

.step-legend {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 20px;
  padding: 0;
}

.hint {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-faint);
  font-style: normal;
}

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.text-input,
.text-area {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  margin-bottom: 20px;
  outline: none;
}

.text-input:focus,
.text-area:focus { border-color: var(--accent); }

.text-area { resize: vertical; min-height: 100px; }

.options { display: flex; flex-direction: column; gap: 8px; }

.option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color 0.15s;
}

.option:has(input:checked) {
  border-color: var(--accent);
  color: var(--text);
}

.option input {
  margin-top: 3px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.q7-block {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.survey-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
}

.btn-primary,
.btn-ghost {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 10px;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
  margin-left: auto;
}

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

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border-bright);
}

.thanks-wrap {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.thanks-card {
  max-width: 480px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px 36px;
}

.thanks-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: var(--safe);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.thanks-card h1 {
  font-family: 'Newsreader', serif;
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 16px;
}

.thanks-card p {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 12px;
}

.thanks-muted { font-size: 14px; color: var(--text-faint); }
.thanks-sign { font-style: italic; margin-top: 20px; margin-bottom: 28px; }

.thanks-home { display: inline-block; text-decoration: none; }

@media (max-width: 600px) {
  .survey-nav { padding: 12px 20px; }
  .step-legend { font-size: 22px; }
}
