.quiz-page {
  --quiz-navy: var(--accent-strong, #17324d);
  --quiz-gold: var(--gold, #d7a52a);
  --quiz-cream: #fff8ec;
  --quiz-green: #eaf5e9;
  --quiz-border: #c9d2dc;
  min-height: 100vh;
  margin: 0;
  background: var(--quiz-cream);
  color: #172b3e;
  font-family: Inter, Arial, sans-serif;
  font-size: 18px;
}

.quiz-page *,
.quiz-page *::before,
.quiz-page *::after {
  animation: none !important;
  transition: none !important;
}

.quiz-top {
  position: relative;
  height: 96px;
  overflow: hidden;
}

.quiz-icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.quiz-band {
  position: absolute;
  inset: 0;
  background: linear-gradient(112deg, var(--quiz-navy), #2c4967);
}

.quiz-band--landscape {
  background-image:
    linear-gradient(rgba(17, 35, 55, .76), rgba(17, 35, 55, .76)),
    var(--quiz-band-image);
  background-position: center 65%;
  background-size: cover;
}

.quiz-header {
  position: relative;
  min-height: 96px;
  height: 96px;
  padding: 8px max(14px, calc((100vw - 780px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #fff;
}

.quiz-brand {
  flex: 1 1 auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-size: clamp(12px, 3.4vw, 16px);
  font-weight: 800;
  line-height: 1.12;
  text-decoration: none;
}

.quiz-brand > span {
  min-width: 0;
}

.quiz-brand .rw-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
}

.quiz-brand .rw-mark rect {
  fill: rgba(255, 255, 255, .16);
}

.quiz-offer {
  flex: 0 0 auto;
  max-width: 54%;
  padding: 7px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.quiz-main {
  width: min(100% - 28px, 680px);
  margin: 14px auto 28px;
}

.quiz-progress {
  margin: 0 4px 14px;
}

.quiz-progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 99px;
  background: #eadfc9;
}

.quiz-progress-track span {
  display: block;
  width: 16.6667%;
  height: 100%;
  background: var(--quiz-gold);
}

.quiz-progress p {
  margin: 7px 0 0;
  color: #46596a;
  font-size: 15px;
  font-weight: 700;
}

.quiz-card {
  padding: 22px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(49, 47, 40, .12);
}

.quiz-back {
  min-height: 44px;
  margin: -6px 0 10px -8px;
  padding: 7px 10px;
  border: 0;
  background: transparent;
  color: var(--quiz-navy);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.quiz-card h1 {
  margin: 0 0 18px;
  color: var(--quiz-navy);
  font-size: clamp(28px, 7.5vw, 32px);
  font-weight: 800;
  line-height: 1.14;
}

.quiz-options {
  display: grid;
  gap: 12px;
}

.quiz-answer {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 2px solid var(--quiz-border);
  border-radius: 14px;
  background: #fff;
  color: #172b3e;
  font: inherit;
  font-size: 20px;
  font-weight: 750;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}

.quiz-answer:hover,
.quiz-answer[aria-pressed="true"] {
  border-color: var(--quiz-navy);
  background: #f1f5f9;
}

.quiz-answer-icon {
  display: block;
  width: 24px;
  height: 24px;
  color: #6b7280;
}

.quiz-answer-icon-circle {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 50%;
  background: #f3f4f6;
}

.quiz-answer-label {
  flex: 1;
}

.quiz-chevron {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  margin-right: 3px;
  border-top: 2px solid var(--quiz-navy);
  border-right: 2px solid var(--quiz-navy);
  transform: rotate(45deg);
}

.quiz-state-label-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.quiz-state-label-row label {
  margin: 0;
}

.quiz-page button:focus-visible,
.quiz-page a:focus-visible,
.quiz-page select:focus-visible,
.quiz-page input:focus-visible {
  outline: 3px solid #b47700;
  outline-offset: 3px;
}

.quiz-hint-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 17px 0 0;
}

.quiz-avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  overflow: hidden;
  border: 2px solid #e8c66b;
  border-radius: 50%;
  background: #e8edf3;
}

.quiz-avatar--initials {
  display: grid;
  place-items: center;
  color: var(--quiz-navy);
  font-size: 14px;
  font-weight: 800;
}

.quiz-avatar--photo {
  object-fit: cover;
}

.quiz-hint {
  flex: 1;
  margin: 0;
  padding: 11px 13px;
  border-radius: 14px;
  background: #fff5d9;
  color: #3d351e;
  font-size: 15px;
  line-height: 1.4;
}

.quiz-snapshot-hint {
  margin-bottom: 14px;
}

.quiz-hint-advisor {
  display: block;
  margin-bottom: 3px;
  color: var(--quiz-navy);
  font-size: 14px;
}

.quiz-hint p {
  margin: 0;
}

.quiz-compliment {
  margin: 0 0 16px;
  padding: 11px 13px;
  border-radius: 12px;
  background: var(--quiz-green);
  color: #174d2a;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.quiz-compliment::before {
  display: inline-block;
  width: 8px;
  height: 4px;
  margin: 0 8px 2px 1px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  content: "";
  transform: rotate(-45deg);
}

.quiz-primary {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 12px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--quiz-gold);
  color: var(--quiz-navy);
  font: inherit;
  font-size: 19px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
}

.quiz-state-select {
  width: 100%;
  min-height: 60px;
  padding: 10px 12px;
  border: 2px solid var(--quiz-border);
  border-radius: 10px;
  background: white;
  color: #172b3e;
  font: inherit;
  font-size: 20px;
}

.quiz-fields {
  display: grid;
  gap: 13px;
}

.quiz-field label {
  display: block;
  margin: 0 0 6px;
  color: #1a2e42;
  font-size: 17px;
  font-weight: 700;
}

.quiz-field input {
  width: 100%;
  height: 56px;
  padding: 10px 13px;
  border: 2px solid var(--quiz-border);
  border-radius: 10px;
  background: #fff;
  color: #172b3e;
  font: inherit;
  font-size: 20px;
}

.quiz-phone-field {
  display: flex;
  height: 56px;
  align-items: center;
  border: 2px solid var(--quiz-border);
  border-radius: 10px;
  background: #fff;
}

.quiz-phone-field span {
  flex: 0 0 auto;
  padding-left: 13px;
  color: #455667;
  font-size: 20px;
  font-weight: 700;
}

.quiz-phone-field:focus-within {
  outline: 3px solid #b47700;
  outline-offset: 3px;
}

.quiz-phone-field input {
  width: 0;
  min-width: 0;
  flex: 1 1 auto;
  height: 52px;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: #172b3e;
  font: inherit;
  font-size: 20px;
}

.quiz-phone-field input:focus-visible {
  outline: none;
}

.quiz-field-error,
.quiz-form-error {
  margin: 5px 0 0;
  color: #9d1e1e;
  font-size: 14px;
  font-weight: 600;
}

.quiz-field.is-invalid input,
.quiz-field.is-invalid .quiz-state-select,
.quiz-field.is-invalid .quiz-phone-field {
  border-color: #a32020;
}

.quiz-field-error[hidden],
.quiz-form-error[hidden],
[hidden] {
  display: none !important;
}

.quiz-form-error {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff0ee;
}

.quiz-page .rw-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  color: #283a4b;
  font-size: 14px;
  line-height: 1.45;
}

.quiz-page .rw-consent input {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  margin: 0;
  accent-color: var(--quiz-navy);
}

.quiz-page .rw-consent-fine {
  margin: 8px 0 0 32px;
  color: #4b5965;
  font-size: 13px;
  line-height: 1.4;
}

.quiz-page .rw-consent-fine a {
  color: #16466f;
  font-weight: 700;
}

.quiz-booking-host {
  min-height: 190px;
  margin-top: 16px;
}

.quiz-booking-host iframe {
  width: 100%;
  min-height: 600px;
  border: 0;
}

.quiz-booking-host .rw-calendar-placeholder {
  padding: 18px;
  border: 1px solid #e5d7bb;
  border-radius: 14px;
  background: #fffaf0;
}

.quiz-booking-host .rw-calendar-placeholder-title {
  margin: 0 0 8px;
  color: var(--quiz-navy);
  font-size: 19px;
  font-weight: 800;
}

.quiz-booking-host .rw-calendar-placeholder p:last-child {
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.4;
}

.quiz-footer {
  width: min(100% - 32px, 680px);
  margin: 0 auto;
  padding: 0 0 22px;
  color: #415262;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

.quiz-footer p {
  margin: 4px 0;
}

.quiz-footer .quiz-private {
  color: #253d50;
  font-weight: 750;
}

.quiz-lock-icon {
  width: 18px;
  height: 18px;
  margin-right: 4px;
  color: #6b7280;
  vertical-align: -4px;
}

.quiz-footer a {
  display: inline-block;
  margin-top: 6px;
  color: #174d78;
  font-weight: 750;
}

@media (min-width: 700px) {
  .quiz-band--landscape {
    background-position: center 80%;
  }

  .quiz-main {
    margin-top: 28px;
  }

  .quiz-card {
    padding: 30px;
  }

}

/* A client's own logo image is usually dark; show it white on the dark band. */
.quiz-brand img.rw-mark {
  filter: brightness(0) invert(1);
}
