/* Questionnaire wizard */
.quiz-page {
  background:
    radial-gradient(120% 120% at 18% 16%, rgba(41, 69, 110, 0.28), rgba(10, 17, 32, 0.96)),
    radial-gradient(120% 110% at 78% -10%, rgba(22, 39, 73, 0.36), rgba(10, 17, 32, 0.98)),
    #0a1021;
  color: var(--paper);
}

.quiz-main {
  min-height: calc(100vh - var(--header-offset));
  display: grid;
  place-items: center;
  padding: clamp(24px, 4vw, 56px);
  position: relative;
  isolation: isolate;
}

.quiz-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(135deg, rgba(12, 21, 37, 0.85), rgba(13, 24, 46, 0.92)),
    radial-gradient(circle at 18% 30%, rgba(53, 86, 133, 0.28), transparent 48%);
  background-size: cover;
  background-position: center 45%;
  filter: saturate(.98);
}

.quiz-shell {
  width: min(1100px, 94vw);
  background: linear-gradient(160deg, rgba(17, 28, 50, 0.92), rgba(12, 21, 38, 0.94));
  border: 0;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  padding: clamp(20px, 4vw, 32px);
  backdrop-filter: blur(6px);
  display: grid;
  gap: clamp(18px, 3vw, 26px);
  opacity: 0;
  transform: translateY(18px);
  animation: quizFadeIn 0.7s ease forwards;
}

.quiz-intro[hidden],
.quiz-locked[hidden],
.quiz-body[hidden] {
  display: none !important;
}

.quiz-intro {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.quiz-stepper,
.quiz-progress {
  display: none;
}

.panel {
  border-radius: 18px;
  border: 1px solid rgba(74,130,193,0.22);
  background: linear-gradient(160deg, rgba(20, 30, 52, 0.7), rgba(13, 22, 40, 0.85));
  padding: clamp(16px, 3vw, 22px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.quiz-panel {
  display: grid;
  gap: 14px;
}

.quiz-panel--flow {
  gap: 18px;
}

.quiz-intro__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.quiz-form {
  display: grid;
  gap: 18px;
}

.quiz-form__intro {
  display: grid;
  gap: 8px;
}

.quiz-form__note {
  font-weight: 700;
  color: #e8edff;
}

.quiz-divider {
  height: 1px;
  background: rgba(74,130,193,0.2);
  border-radius: 999px;
}

.quiz-section__title {
  margin: 0;
}

.quiz-questions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  row-gap: 22px;
}

.quiz-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(110,162,255,0.5);
  color: #dbe7ff;
  font-size: 12px;
  font-weight: 700;
  background: rgba(110,162,255,0.16);
  position: relative;
  cursor: pointer;
}

.quiz-help::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  min-width: 220px;
  max-width: 280px;
  background: #0b1326;
  color: #e7ecf8;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(74,130,193,0.35);
  box-shadow: 0 16px 36px rgba(0,0,0,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  font-size: 13px;
  line-height: 1.4;
  z-index: 5;
}

.quiz-help:hover::after,
.quiz-help:focus-visible::after {
  opacity: 1;
}

.quiz-stepper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.quiz-stepper__item {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(74,130,193,0.22);
  background: rgba(16, 26, 44, 0.5);
  color: #cbd7f5;
  font-weight: 700;
}

.quiz-stepper__item.is-active {
  border-color: rgba(110,162,255,0.6);
  background: rgba(110,162,255,0.16);
  color: #e7ecf8;
  box-shadow: 0 12px 26px rgba(0,0,0,0.25);
}

.quiz-stepper__item.is-complete {
  opacity: 0.7;
}

.quiz-step-label {
  margin: 0 0 6px;
  color: #9fb2d9;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.quiz-locked {
  background: rgba(12, 20, 36, 0.82);
  border: 1px solid rgba(74,130,193,0.25);
  border-radius: 18px;
  padding: clamp(18px, 3vw, 26px);
  color: #e5edff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.quiz-pill {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 0;
  box-shadow: none;
  color: #dfe7ff;
  font-size: 14px;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.quiz-lede {
  margin: 10px 0 14px;
  color: #cbd5ff;
  line-height: 1.55;
}

.quiz-list {
  padding-left: 18px;
  margin: 0 0 12px;
  display: grid;
  gap: 8px;
  color: #e6ecf8;
}

.quiz-note {
  margin: 8px 0 14px;
  color: #c0ccff;
  font-size: 14px;
}

.quiz-note--inline {
  margin: 0;
}

.quiz-intro-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(6px);
  animation: quizFadeIn 0.6s ease forwards;
  animation-delay: 0.25s;
}

.quiz-link {
  color: #cbd7f5;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.quiz-link:hover {
  text-decoration: underline;
}

body.quiz-modal-open {
  overflow: hidden;
}

.quiz-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 28px);
  background: rgba(6, 12, 24, 0.72);
  backdrop-filter: blur(4px);
  z-index: 40;
}

.quiz-modal[hidden] {
  display: none;
}

.quiz-modal__panel {
  width: min(540px, 92vw);
  border-radius: 18px;
  padding: clamp(18px, 3vw, 26px);
  background: linear-gradient(160deg, rgba(17, 28, 50, 0.98), rgba(12, 21, 38, 0.98));
  border: 1px solid rgba(74,130,193,0.3);
  color: #e7ecf8;
  box-shadow: 0 30px 70px rgba(0,0,0,0.5);
  display: grid;
  gap: 14px;
}

.quiz-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.quiz-modal__title {
  margin: 0;
  font-size: 22px;
}

.quiz-modal__close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(74,130,193,0.35);
  background: rgba(255,255,255,0.06);
  color: inherit;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.quiz-modal__close:hover,
.quiz-modal__close:focus-visible {
  background: rgba(255,255,255,0.12);
  border-color: rgba(74,130,193,0.5);
}

.quiz-modal__copy {
  margin: 0;
  color: #dbe7ff;
  line-height: 1.6;
}

.quiz-modal__list {
  margin: 0;
  padding-left: 18px;
  color: #dbe7ff;
  display: grid;
  gap: 8px;
  line-height: 1.5;
}

.quiz-modal__actions {
  display: flex;
  justify-content: flex-end;
}

body.light-ui.quiz-page {
  background:
    radial-gradient(120% 120% at 18% 16%, rgba(226, 232, 240, 0.8), rgba(248, 250, 252, 0.95)),
    #f8fafc;
  color: #0f172a;
}

body.light-ui .quiz-bg {
  background-image:
    linear-gradient(135deg, rgba(241, 245, 249, 0.95), rgba(226, 232, 240, 0.9)),
    radial-gradient(circle at 18% 30%, rgba(148, 163, 184, 0.25), transparent 48%);
}

body.light-ui .quiz-shell {
  background: #ffffff;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.12);
}

body.light-ui .quiz-locked {
  background: rgba(241, 245, 249, 0.9);
  border-color: rgba(15, 23, 42, 0.12);
  color: #1f2937;
}

body.light-ui .quiz-pill {
  background: rgba(15, 23, 42, 0.06);
  border: 0;
  box-shadow: none;
  color: #334155;
}

body.light-ui .quiz-lede,
body.light-ui .quiz-list,
body.light-ui .quiz-note,
body.light-ui .quiz-link {
  color: #475569;
}

body.light-ui .quiz-form__note {
  color: #1f2937;
}

body.light-ui .quiz-divider {
  background: rgba(15, 23, 42, 0.12);
}

body.light-ui .quiz-modal {
  background: rgba(15, 23, 42, 0.35);
}

body.light-ui .quiz-modal__panel {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.18);
}

body.light-ui .quiz-modal__copy,
body.light-ui .quiz-modal__list {
  color: #475569;
}

body.light-ui .quiz-modal__close {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.16);
  color: #0f172a;
}

body.light-ui .quiz-modal__close:hover,
body.light-ui .quiz-modal__close:focus-visible {
  background: rgba(15, 23, 42, 0.12);
  border-color: rgba(15, 23, 42, 0.3);
}

.quiz-body {
  display: grid;
  gap: clamp(12px, 2vw, 18px);
  opacity: 0;
  animation: quizFadeIn 0.6s ease forwards;
  animation-delay: 0.3s;
}

.quiz-error {
  border-radius: 12px;
  border: 1px solid rgba(255, 107, 107, 0.55);
  background: rgba(255, 107, 107, 0.12);
  color: #ffd7d7;
  padding: 10px 12px;
  font-weight: 600;
}

.quiz-head {
  display: grid;
  gap: 16px;
}

.quiz-head h1 {
  margin: 0;
  letter-spacing: .2px;
  text-align: center;
  color: #e7ecf8;
}

.quiz-title-typing {
  display: block;
  margin-top: 10px;
  position: relative;
  padding-right: 0.3em;
  white-space: normal;
  text-align: center;
}

.quiz-title-typing::after {
  content: "";
  position: absolute;
  top: 12%;
  right: 0;
  width: 2px;
  height: 76%;
  background: currentColor;
  animation: quizCaret 0.9s steps(1, end) infinite;
}

.quiz-title-typing.is-typing-complete::after {
  opacity: 0;
  animation: none;
}

@keyframes quizCaret {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

.quiz-progress {
  display: grid;
  gap: 8px;
}

.quiz-progress__bar {
  height: 8px;
  width: 0%;
  background: linear-gradient(180deg, #6ea2ff 0%, #4f7cbd 60%, #335b94 100%);
  border-radius: 999px;
  transition: width .25s ease;
}

.quiz-progress__meta {
  text-align: center;
  font-size: 14px;
  opacity: .9;
  color: #cbd7f5;
}

.quiz-card {
  margin-top: clamp(12px, 2vw, 18px);
  animation: quizCardFade 0.45s ease;
  overflow: visible;
}

.quiz-q {
  margin: 0 0 clamp(16px, 2.6vw, 26px) 0;
  text-align: center;
  color: #e7ecf8;
  animation: quizQuestionIn 0.4s ease;
}

.quiz-options {
  display: grid;
  gap: clamp(14px, 2vw, 20px);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  opacity: 1;
  overflow: visible;
}

@media (max-width: 900px) {
  .quiz-options {
    grid-template-columns: 1fr;
  }
}

.quiz-option {
  position: relative;
  z-index: 0;
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 110px;
  padding: clamp(14px, 2vw, 20px);
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(140deg, rgba(23,35,58,0.8), rgba(15,25,44,0.95), rgba(27,45,78,0.8));
  background-size: 180% 180%;
  border: 1.125px solid rgba(74,130,193,0.35);
  font-weight: 800;
  letter-spacing: .2px;
  cursor: pointer;
  transform: translateY(0);
  transition: transform .22s ease, box-shadow .3s ease, background-position 1s ease, border-color .25s ease, color .2s ease;
  animation: quizOptionPulse 6s ease-in-out infinite;
  will-change: transform, box-shadow;
}

.quiz-option:hover,
.quiz-option:focus-visible {
  transform: translateY(-14px) scale(1.02);
  z-index: 3;
  border-color: rgba(110,162,255,0.9);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.45), inset 0 0 22px rgba(110,162,255,0.2);
  background: linear-gradient(140deg, rgba(34,54,88,0.95), rgba(26,42,72,0.98), rgba(44,76,128,0.92));
  background-position: 60% 40%;
  outline: none;
}

.quiz-option:active {
  transform: translateY(-4px) scale(1.005);
  z-index: 2;
}

.quiz-option.is-selected {
  border-color: rgba(110,162,255,0.9);
  box-shadow: 0 10px 18px rgba(0,0,0,0.25), inset 0 0 18px rgba(110,162,255,0.18);
  background: linear-gradient(160deg, rgba(34,54,88,0.9), rgba(19,30,54,0.95));
  transform: translateY(-4px);
  z-index: 2;
}

.quiz-option__label {
  font-weight: 800;
}

.quiz-option__helper {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0.82;
}

.quiz-card .quiz-option {
  opacity: 0;
  transform: translateY(8px);
  animation: quizFadeInUp 0.4s ease forwards;
}

.quiz-card .quiz-option:nth-child(1) { animation-delay: 0.05s; }
.quiz-card .quiz-option:nth-child(2) { animation-delay: 0.1s; }
.quiz-card .quiz-option:nth-child(3) { animation-delay: 0.15s; }
.quiz-card .quiz-option:nth-child(4) { animation-delay: 0.2s; }
.quiz-card .quiz-option:nth-child(5) { animation-delay: 0.25s; }
.quiz-card .quiz-option:nth-child(6) { animation-delay: 0.3s; }

.quiz-contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  row-gap: 22px;
  align-items: start;
}

.quiz-contact .qc-field {
  display: grid;
  gap: 8px;
  margin: 0;
  min-width: 0;
}

.qc-field--full {
  grid-column: 1 / -1;
}

.qc-input--checkbox {
  width: auto;
  height: auto;
  accent-color: #93c5fd;
}

.qc-checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d5e2ff;
  font-size: 14px;
  line-height: 1.4;
}

.qc-smallprint {
  color: #c0ccff;
  font-size: 0.95rem;
  line-height: 1.25;
  margin: 8px 0 0 0;
  opacity: 0.85;
}

.sms-opt-row {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  color: #d5e2ff;
  font-size: 14px;
  line-height: 1.5;
  grid-column: 1 / -1;
}

.sms-opt-row input[type='checkbox'] {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: #93c5fd;
}

.sms-opt-copy {
  display: inline-block;
  max-width: 820px;
}

.qc-recaptcha {
  margin-top: 6px;
}

@media (max-width: 720px) {
  .quiz-contact {
    grid-template-columns: 1fr;
  }

  .quiz-questions {
    grid-template-columns: 1fr;
  }
}

.qc-label {
  font-weight: 700;
  display: block;
  margin: 0 0 10px 0;
}

.qc-input {
  width: 100%;
  box-sizing: border-box;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(74,130,193,.35);
  padding: 0 14px;
  background: linear-gradient(145deg, rgba(23,35,58,0.6), rgba(15,25,44,0.8));
  color: #fff;
}

.qc-input::placeholder {
  color: rgba(255,255,255,.75);
}

.quiz-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: clamp(18px, 2.6vw, 24px);
  opacity: 0;
  animation: quizFadeIn 0.5s ease forwards;
  animation-delay: 0.35s;
}

.quiz-actions--sticky {
  position: sticky;
  bottom: 16px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(10, 17, 32, 0.92);
  border: 1px solid rgba(74,130,193,0.25);
  backdrop-filter: blur(8px);
  z-index: 4;
}

.quiz-actions--sticky .btn {
  flex: 1 1 auto;
}

.quiz-actions .btn {
  transition: transform .16s ease, box-shadow .25s ease, opacity .2s ease;
  outline: none;
}

.quiz-actions .btn-cream {
  border-width: 0.6px;
}

.quiz-actions .btn:hover,
.quiz-actions .btn:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 14px 26px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.22);
}

.quiz-actions .quiz-btn-skip {
  border-radius: 999px;
  border: 1px solid rgba(110,162,255,0.4);
  color: #cbd7f5;
  padding-inline: 16px;
}

.quiz-field {
  display: grid;
  gap: 6px;
}

.quiz-booking {
  display: grid;
  gap: 14px;
  margin-top: clamp(18px, 4vw, 30px);
}

.quiz-booking__fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.quiz-booking__summary {
  border-radius: 12px;
  border: 1px solid rgba(74,130,193,0.3);
  background: rgba(23,35,58,0.65);
  padding: 10px 12px;
  color: #e7ecf8;
  font-weight: 600;
}

.quiz-booking__opt {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  color: #d5e2ff;
  font-size: 14px;
  line-height: 1.4;
}

.quiz-booking__opt input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: #93c5fd;
}

.quiz-summary {
  border-radius: 16px;
  border: 1px solid rgba(74,130,193,0.25);
  background: rgba(23,35,58,0.65);
  padding: clamp(14px, 2vw, 20px);
  display: grid;
  gap: 12px;
}

.quiz-summary__list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.quiz-summary__row {
  display: grid;
  grid-template-columns: minmax(120px, 0.4fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.quiz-summary__row dt {
  font-weight: 700;
  color: #e7ecf8;
}

.quiz-summary__row dd {
  margin: 0;
  color: #dbe7ff;
}

.booking-head {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.booking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin: 10px 0;
}

.booking-day {
  border: 1px solid rgba(74,130,193,0.35);
  border-radius: 14px;
  padding: 10px;
  background: linear-gradient(145deg, rgba(23,35,58,0.6), rgba(15,25,44,0.8));
  display: grid;
  gap: 8px;
}

.booking-day__head {
  font-weight: 700;
}

.booking-slot {
  width: 100%;
  border-radius: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(74,130,193,0.3);
  background: rgba(255,255,255,0.04);
  color: #fff;
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease, border-color .2s ease, background .2s ease;
}

.booking-slot:hover:not(:disabled),
.booking-slot:focus-visible:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(110,162,255,0.9);
  background: rgba(110,162,255,0.08);
}

.booking-slot.is-booked {
  opacity: 0.55;
  cursor: not-allowed;
}

.booking-slot.is-selected {
  border-color: rgba(110,162,255,0.95);
  box-shadow: 0 8px 18px rgba(0,0,0,0.25), inset 0 0 14px rgba(110,162,255,0.16);
  background: rgba(110,162,255,0.12);
}

/* Weekly calendar grid */
.weekcal {
  --weekcal-min-width: calc(90px + (7 * 140px));
  position: relative;
  display: grid;
  grid-template-columns: 90px repeat(7, minmax(140px, 1fr));
  grid-template-rows: 44px repeat(18, 1fr);
  gap: 0;
  width: min(100%, var(--weekcal-min-width));
  margin-inline: auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid rgba(74,130,193,0.35);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(23,35,58,0.72), rgba(15,25,44,0.86));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.weekcal__corner,
.weekcal__day,
.weekcal__time,
.weekcal__cell {
  border-right: 1px solid rgba(74,130,193,0.22);
  border-bottom: 1px solid rgba(74,130,193,0.22);
}

.weekcal__day {
  padding: 10px 6px;
  text-align: center;
  font-weight: 700;
  background: rgba(18, 30, 52, 0.9);
  color: #e7ecf8;
}

.weekcal__time {
  padding: 10px 8px;
  font-weight: 700;
  color: #cbd7f5;
  background: rgba(18, 30, 52, 0.82);
}

.weekcal__cell {
  min-height: 54px;
  padding: 0;
  display: flex;
  align-items: stretch;
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.012);
}

.weekcal__cell--empty {
  background: rgba(255,255,255,0.02);
}

.weekcal-slot {
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: 1px solid rgba(74,130,193,0.32);
  background: rgba(255,255,255,0.04);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  cursor: pointer;
  transition:
    transform .12s ease,
    border-color .2s ease,
    background .2s ease,
    box-shadow .25s ease;
}

.weekcal-slot:hover:not(:disabled),
.weekcal-slot:focus-visible:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(110,162,255,0.9);
  background: rgba(110,162,255,0.1);
  outline: none;
}

.weekcal-slot.is-selected {
  border-color: rgba(110,162,255,0.95);
  box-shadow: 0 10px 20px rgba(0,0,0,0.35), inset 0 0 16px rgba(110,162,255,0.18);
  background: rgba(110,162,255,0.16);
}

.weekcal-slot.is-blocked {
  opacity: 0.55;
  cursor: not-allowed;
  background: rgba(255,255,255,0.03);
}

.weekcal-slot__time {
  font-weight: 700;
}

.weekcal-slot__tag {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.weekcal__weekend {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5ff;
  background: radial-gradient(circle at 50% 35%, rgba(110,162,255,0.12), rgba(23,35,58,0.7));
  font-weight: 700;
  text-align: center;
  padding: 6px;
  pointer-events: none;
  border-left: 1px solid rgba(74,130,193,0.22);
  border-right: 1px solid rgba(74,130,193,0.22);
  position: relative;
  z-index: 2;
}

.weekcal-summary {
  margin: 12px 0 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(74,130,193,0.3);
  background: rgba(23,35,58,0.65);
  color: #e7ecf8;
  font-weight: 600;
}

.weekcal-nav {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 6px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(74,130,193,0.3);
  background: rgba(23,35,58,0.65);
  color: #e7ecf8;
  font-weight: 600;
}

.weekcal-nav__label {
  flex: 1;
  text-align: center;
  font-size: 13px;
}

.weekcal-nav__btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(74,130,193,0.35);
  background: rgba(255,255,255,0.04);
  color: inherit;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  display: grid;
  place-items: center;
  transition: transform .12s ease, border-color .2s ease, background .2s ease;
}

.weekcal-nav__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .weekcal-nav {
    display: flex;
  }
}

.quiz-btn-primary {
  min-width: 140px;
}

.quiz-btn-primary.is-disabled,
.quiz-btn-primary[aria-disabled="true"] {
  opacity: 0.65;
  filter: saturate(0.7);
}

#quizStartBtn {
  font-size: 1.2em;
  padding: 12px 22px;
}

.quiz-btn-secondary {
  opacity: .9;
}

.quiz-thanks {
  text-align: center;
  margin-bottom: 14px;
  color: #e7ecf8;
}

.quiz-suggestion {
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(23,35,58,0.65);
  border: 1px solid rgba(74,130,193,0.28);
}

.quiz-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 8px;
}

.result-cards {
  display: grid;
  gap: 16px;
}

.result-card {
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(74,130,193,0.32);
  background: linear-gradient(160deg, rgba(23,35,58,0.68), rgba(15,25,44,0.92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  display: grid;
  gap: 10px;
}

.result-card--secondary {
  border-style: dashed;
}

.result-headline {
  margin: 0;
  font-size: 20px;
  color: #e7ecf8;
}

.result-reasons ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: #dbe7ff;
  font-size: 14px;
  line-height: 1.5;
}

.result-stay {
  margin: 6px 0 0;
  color: #dbe7ff;
  font-size: 14px;
  line-height: 1.5;
}

.result-disclaimer {
  margin: 0;
  color: #b7c6f5;
  font-size: 13px;
  line-height: 1.5;
}

.result-cta {
  justify-self: start;
  margin-top: 4px;
}

.result-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(74,130,193,0.32);
  background: rgba(23,35,58,0.6);
  color: #dbe7ff;
  font-weight: 700;
  cursor: pointer;
}

.result-toggle::after {
  content: '\25BE';
  font-size: 16px;
  transition: transform 0.2s ease;
}

.chapter13-panel {
  margin-top: 12px;
  border-radius: 14px;
  border: 1px solid rgba(74,130,193,0.22);
  background: rgba(17, 28, 50, 0.65);
  padding: 0 12px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.chapter13-panel.is-open {
  max-height: 800px;
  opacity: 1;
  padding: 12px;
}

.result-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.result-fields {
  display: grid;
  gap: 12px;
}

.result-field {
  display: grid;
  gap: 6px;
  color: #dbe7ff;
  font-size: 14px;
}

.result-field span {
  font-weight: 700;
}

.chapter13-result {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(74,130,193,0.22);
  display: grid;
  gap: 8px;
}

@keyframes quizFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes quizFadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes quizCardFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes quizQuestionIn {
  from { opacity: 0; transform: translateY(6px) scale(0.995); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes quizOptionPulse {
  0%, 100% { background-position: 30% 40%; }
  50% { background-position: 70% 60%; }
}

body.light-ui .quiz-progress__meta {
  color: #64748b;
}

body.light-ui .quiz-q,
body.light-ui .quiz-thanks {
  color: #0f172a;
}

body.light-ui .quiz-option {
  background: #ffffff;
  border-color: rgba(37, 99, 235, 0.2);
  color: #0f172a;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
  animation: none;
}

body.light-ui .quiz-card .quiz-option {
  opacity: 1;
  transform: none;
}

body.light-ui .quiz-option:hover,
body.light-ui .quiz-option:focus-visible {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.16);
}

body.light-ui .quiz-option.is-selected {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
}

body.light-ui .quiz-option__helper {
  opacity: 1;
  color: #64748b;
}

body.light-ui .qc-checkbox-row,
body.light-ui .qc-smallprint,
body.light-ui .sms-opt-row {
  color: #475569;
}

body.light-ui .qc-input {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.16);
  color: #0f172a;
}

body.light-ui .qc-input::placeholder {
  color: #94a3b8;
}

body.light-ui .quiz-actions .btn:hover,
body.light-ui .quiz-actions .btn:focus-visible {
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.12);
}

body.light-ui .booking-day {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
}

body.light-ui .booking-slot {
  background: rgba(15, 23, 42, 0.04);
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.12);
}

body.light-ui .booking-slot:hover:not(:disabled),
body.light-ui .booking-slot:focus-visible:not(:disabled) {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.45);
}

body.light-ui .booking-slot.is-selected {
  background: rgba(37, 99, 235, 0.16);
  border-color: rgba(37, 99, 235, 0.5);
}

body.light-ui .weekcal {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.04);
}

body.light-ui .weekcal__day {
  background: rgba(15, 23, 42, 0.04);
  color: #0f172a;
}

body.light-ui .weekcal__time {
  background: rgba(15, 23, 42, 0.03);
  color: #475569;
}

body.light-ui .weekcal__cell {
  background: #ffffff;
}

body.light-ui .weekcal__cell--empty {
  background: rgba(15, 23, 42, 0.02);
}

body.light-ui .weekcal-slot {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

body.light-ui .weekcal-slot:hover:not(:disabled),
body.light-ui .weekcal-slot:focus-visible:not(:disabled) {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.45);
}

body.light-ui .weekcal-slot.is-selected {
  background: rgba(37, 99, 235, 0.16);
  border-color: rgba(37, 99, 235, 0.5);
}

body.light-ui .weekcal-slot__tag {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.2);
  color: #1d4ed8;
}

body.light-ui .weekcal__weekend {
  background: rgba(226, 232, 240, 0.7);
  color: #475569;
}

body.light-ui .weekcal-summary,
body.light-ui .quiz-suggestion {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.12);
  color: #475569;
}

body.light-ui .weekcal-nav {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

body.light-ui .weekcal-nav__btn {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

body.light-ui .result-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

body.light-ui .result-card--secondary {
  border-color: rgba(15, 23, 42, 0.16);
}

body.light-ui .result-headline {
  color: #0f172a;
}

body.light-ui .result-reasons ul,
body.light-ui .result-stay {
  color: #475569;
}

body.light-ui .result-disclaimer {
  color: #64748b;
}

body.light-ui .result-toggle {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

body.light-ui .chapter13-panel {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.12);
}

body.light-ui .result-field {
  color: #475569;
}

body.light-ui .chapter13-result {
  border-top-color: rgba(15, 23, 42, 0.12);
}

body.light-ui .panel,
body.light-ui .guided-shell,
body.light-ui .guided-card,
body.light-ui .guided-review__item,
body.light-ui .quiz-review__section,
body.light-ui .popout__panel,
body.light-ui .modal__panel {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

body.light-ui .quiz-stepper__item {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.12);
  color: #475569;
}

body.light-ui .quiz-stepper__item.is-active {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.35);
  color: #0f172a;
}

body.light-ui .quiz-error {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.3);
  color: #b91c1c;
}

body.light-ui .quiz-actions--sticky {
  background: rgba(255,255,255,0.95);
  border-color: rgba(15, 23, 42, 0.12);
}

body.light-ui .quiz-booking__summary,
body.light-ui .quiz-summary {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

body.light-ui .quiz-summary__row dt {
  color: #0f172a;
}

body.light-ui .quiz-summary__row dd,
body.light-ui .quiz-booking__opt {
  color: #475569;
}

body.light-ui .lead,
body.light-ui .task-note,
body.light-ui .instructions,
body.light-ui .note,
body.light-ui .muted,
body.light-ui .quiz-note--inline,
body.light-ui .popout__summary {
  color: #475569;
}

body.light-ui .section-title,
body.light-ui .quiz-review__title {
  color: #0f172a;
}

body.light-ui table,
body.light-ui th,
body.light-ui td {
  border-color: rgba(15, 23, 42, 0.08);
}

body.light-ui th {
  background: rgba(15, 23, 42, 0.04);
  color: #0f172a;
}

body.light-ui td {
  color: #475569;
}

body.light-ui .quiz-textarea,
body.light-ui .quiz-input,
body.light-ui .quiz-select,
body.light-ui .guided-input,
body.light-ui .input,
body.light-ui .select,
body.light-ui .textarea {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

body.light-ui .quiz-textarea::placeholder,
body.light-ui .input::placeholder,
body.light-ui .textarea::placeholder {
  color: #94a3b8;
}

body.light-ui .quiz-field label,
body.light-ui .quiz-review__label {
  color: #64748b;
}

body.light-ui .quiz-review__value {
  color: #0f172a;
}

body.light-ui .quiz-help,
body.light-ui .guided-pill,
body.light-ui .popout__badge {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.25);
  color: #1d4ed8;
}

body.light-ui .quiz-help::after,
body.light-ui .quiz-help::before {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

body.light-ui .calc,
body.light-ui .guided-progress {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.12);
}

body.light-ui .btn-text {
  color: #2563eb;
}

body.light-ui .popout,
body.light-ui .modal {
  background: rgba(15, 23, 42, 0.35);
}

body.light-ui .dq-status {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.18);
  color: #0f172a;
}

body.light-ui .dq-toggle-row {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.12);
}

body.light-ui .dq-switch,
body.light-ui .dq-switch__label {
  color: #0f172a;
}

body.light-ui .dq-switch__track {
  background: rgba(15, 23, 42, 0.1);
  border-color: rgba(15, 23, 42, 0.18);
}

body.light-ui .dq-switch__thumb {
  background: linear-gradient(145deg, #2563eb, #60a5fa);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25);
}

body.light-ui .dq-note,
body.light-ui .dq-muted,
body.light-ui .dq-residence-meta,
body.light-ui .dq-choice,
body.light-ui .dq-income-checks label {
  color: #475569;
}

body.light-ui .dq-card,
body.light-ui .dq-summary__list li,
body.light-ui .dq-repeatable__item {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

body.light-ui .dq-chip {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.3);
  color: #1d4ed8;
}

body.light-ui .field span,
body.light-ui .dq-summary__list strong {
  color: #0f172a;
}

body.light-ui .dq-summary__list span {
  color: #475569;
}

body.light-ui .dq-info {
  background: rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.2);
  color: #0f172a;
}

body.light-ui .dq-info::after {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

body.light-ui .dq-tab {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.14);
  color: #0f172a;
}

body.light-ui .dq-tab.is-active {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

body.light-ui .dq-missing {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.35);
  color: #b91c1c;
}

body.light-ui .dq-missing__title,
body.light-ui .dq-missing__toggle,
body.light-ui .dq-missing__pin,
body.light-ui .dq-missing__link {
  color: #b91c1c;
}

@media (max-width: 640px) {
  .quiz-actions {
    flex-direction: column;
    gap: 10px;
  }

  .quiz-actions--sticky {
    bottom: 12px;
  }

  .quiz-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .quiz-card {
    padding: 16px;
  }

  .quiz-booking__fields {
    grid-template-columns: 1fr;
  }

  .quiz-summary__row {
    grid-template-columns: 1fr;
  }

  .result-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .field-row {
    flex-direction: column;
  }
}
