.quiz-shell {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) 0 5rem;
}
.quiz-progress {
  height: 6px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.7rem;
}
.quiz-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--moss);
  border-radius: 999px;
  transition: width 0.35s ease;
}
.quiz-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 2.4rem;
}
.quiz-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(1.8rem, 4vw, 2.8rem);
}
.quiz-step { display: none; }
.quiz-step.active { display: block; animation: fadein 0.35s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.quiz-step h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin-bottom: 0.3em; }
.quiz-step .step-note { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 1.8rem; }

.q-block { margin-bottom: 1.8rem; }
.q-block:last-child { margin-bottom: 0; }
.q-label { display: block; font-weight: 600; margin-bottom: 0.7rem; font-size: 0.98rem; }
.q-sub { font-weight: 400; color: var(--ink-soft); font-size: 0.85rem; display: block; margin-top: 0.15rem; }

.text-input {
  width: 100%;
  padding: 0.85em 1em;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--cream);
}
.text-input:focus { outline: none; border-color: var(--moss); background: var(--white); }
textarea.text-input { resize: vertical; min-height: 90px; }

.chip-group { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  padding: 0.6em 1.15em;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--cream);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: 0.15s;
}
.chip:hover { border-color: var(--moss); }
.chip.selected { background: var(--moss); border-color: var(--moss); color: var(--white); }

.slider-wrap { padding: 0.4rem 0.2rem 0; }
.slider-wrap input[type="range"] { width: 100%; accent-color: var(--moss); }
.slider-labels { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--ink-soft); margin-top: 0.2rem; }
.slider-value {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--moss);
  text-align: center;
  margin-bottom: 0.3rem;
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.4rem;
}
.quiz-nav .btn-back {
  background: none;
  border: none;
  color: var(--ink-soft);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.94rem;
  padding: 0.6em 0.3em;
}
.quiz-nav .btn-back:hover { color: var(--ink); }
.quiz-nav .btn-back[disabled] { visibility: hidden; }

.error-msg { color: #A03A2C; font-size: 0.85rem; margin-top: 0.5rem; display: none; }
.error-msg.show { display: block; }

/* results screen */
.results-head { text-align: center; margin-bottom: 2rem; }
.results-head .check {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--moss-light); color: var(--moss);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem; font-size: 1.6rem;
}
.insight-list { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 0.9rem; }
.insight-list li {
  background: var(--moss-light);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  font-size: 0.95rem;
  display: flex;
  gap: 0.7rem;
}
.insight-list li .mark { color: var(--moss); font-weight: 700; }
.results-cta { text-align: center; margin-top: 1rem; }
.results-cta p { color: var(--ink-soft); margin-bottom: 1.2rem; }

@media (max-width: 560px) {
  .quiz-nav { flex-direction: row; }
}
