.quiz-page {
  min-height: 100vh; display: grid; place-items: center;
  padding: 32px 20px; background: var(--cream);
}
.quiz-card {
  width: min(560px, 100%); background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow); padding: 38px 40px 34px;
}
.quiz-brand { text-align: center; margin-bottom: 30px; }
.quiz-brand .brand-name { font-family: var(--font-display); font-style: italic; font-size: 27px; color: var(--ink); }
.quiz-brand .brand-sub { font-size: 9.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--text-muted); margin-top: 6px; }

.q-bar { height: 4px; background: var(--cream-deep); border-radius: 999px; overflow: hidden; }
.q-fill { height: 100%; background: var(--mauve); border-radius: 999px; transition: width .3s var(--ease); }
.q-count { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); margin: 16px 0 8px; }
.q-title { font-size: 25px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 22px; line-height: 1.25; }
.q-sub { color: var(--text-muted); font-size: 15px; line-height: 1.55; max-width: 42ch; margin: 0 auto; }

.q-options { display: flex; flex-direction: column; gap: 9px; }
.q-option {
  text-align: left; padding: 15px 19px; border-radius: var(--r);
  border: 1px solid var(--line); background: #fff;
  font-size: 15px; font-weight: 500; transition: all .15s var(--ease);
}
.q-option:hover { border-color: var(--mauve); background: var(--blush-wash); transform: translateX(2px); }
.q-option.on { background: var(--mauve); border-color: var(--mauve); color: #fff; }

.q-fields { display: flex; flex-direction: column; gap: 11px; }
.q-row { display: flex; gap: 11px; }
.q-row .q-input { flex: 1; min-width: 0; }
.q-input {
  padding: 14px 17px; border: 1px solid var(--line); border-radius: var(--r);
  font-size: 15px; background: #fff; width: 100%;
  transition: all .15s var(--ease);
}
.q-input:focus { outline: none; border-color: var(--mauve); box-shadow: 0 0 0 3px var(--blush-pale); }
.q-next { margin-top: 6px; padding: 14px; }
.q-back { margin-top: 20px; font-size: 13.5px; font-weight: 600; color: var(--text-muted); }
.q-back:hover { color: var(--mauve-deep); }
.q-fine { font-size: 12.5px; color: var(--text-faint); line-height: 1.55; margin-top: 4px; }

.q-done { text-align: center; padding: 12px 0 6px; }
.q-check {
  width: 62px; height: 62px; margin: 0 auto 22px; border-radius: 50%;
  background: var(--green-pale); color: #3F6A50; display: grid; place-items: center;
}
.q-check svg { width: 28px; height: 28px; }
.q-done code { font-size: 11.5px; background: var(--cream-deep); padding: 2px 6px; border-radius: 5px; }

@media (max-width: 560px) {
  .quiz-card { padding: 28px 22px 26px; border-radius: var(--r-lg); }
  .q-title { font-size: 21px; }
  .q-row { flex-direction: column; }
}
