:root {
  --dxqb-bg-primary: #fffcf5;
  --dxqb-bg-secondary: #f7f1e8;
  --dxqb-text-primary: #1f1000;
  --dxqb-text-tertiary: rgba(31, 16, 0, 0.56);
  --dxqb-text-light: #fffefa;
  --dxqb-theme-primary: #311e17;
  --dxqb-border-tertiary: rgba(31, 16, 0, 0.08);
  --dxqb-link: #0050b2;
  --dxqb-input-secondary: rgba(31, 16, 0, 0.2);
  --dxqb-input-eclipse: rgba(31, 16, 0, 0.06);
  --dxqb-answer-bg: #fffcf5;
  --dxqb-answer-bg-active: #f7f1e8;
  --dxqb-answer-border: #f1eadf;
  --dxqb-answer-border-active: #f7f1e8;
  --dxqb-progress-track: rgba(49, 30, 23, 0.06);
  --dxqb-header-height: 56px;
  --dxqb-step-header-height: 60px;
  --dxqb-max-content: 1129px;
  --dxqb-font: "Inter", ui-sans-serif, system-ui, sans-serif;
}

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

[hidden] {
  display: none !important;
}

html,
body {
  height: 100%;
}

body {
  font-family: var(--dxqb-font);
  background: var(--dxqb-bg-primary);
  color: var(--dxqb-text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button {
  font: inherit;
  color: inherit;
}

.quiz-page {
  min-height: 100dvh;
  padding-top: var(--dxqb-header-height);
  background: var(--dxqb-bg-primary);
  animation: quiz-page-enter 0.35s ease both;
}

.quiz-page.is-leaving {
  animation: quiz-page-leave 0.25s ease forwards;
  pointer-events: none;
}

@keyframes quiz-page-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes quiz-page-leave {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .quiz-page {
    animation: none;
  }

  .quiz-page.is-leaving {
    animation: none;
  }

  .quiz-card:hover,
  .quiz-card:active,
  .quiz-card.is-pressed,
  .quiz-option:hover,
  .quiz-option:active,
  .quiz-continue-btn:hover,
  .quiz-continue-btn:active,
  .quiz-continue-btn.is-pressed {
    transform: none;
  }
}

.quiz-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  display: flex;
  width: 100%;
  height: var(--dxqb-header-height);
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: var(--dxqb-bg-primary);
}

.quiz-header-brand {
  display: block;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--dxqb-text-primary);
  white-space: nowrap;
}

.quiz-header-brand em {
  font-style: normal;
  color: inherit;
}

.quiz-page:not(.quiz-page--step) .quiz-header-brand {
  font-size: 22px;
  line-height: 1.1;
}

.quiz-burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 10px;
  border: 1px solid var(--dxqb-input-secondary);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.2s ease, border-color 0.2s ease;
}

.quiz-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--dxqb-text-primary);
  border-radius: 1px;
}

.quiz-burger:hover {
  border-color: transparent;
  background: var(--dxqb-input-eclipse);
}

.quiz-burger:active {
  transform: scale(0.8);
}

.quiz-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 20px 16px;
}

.quiz-title {
  width: 100%;
  max-width: 640px;
  padding: 0 20px;
  margin-bottom: 8px;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-align: center;
  text-transform: uppercase;
  color: var(--dxqb-text-primary);
}

.quiz-subtitle {
  width: 100%;
  max-width: 640px;
  padding: 0 20px;
  margin-bottom: 16px;
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.4px;
  text-align: center;
  color: var(--dxqb-text-tertiary);
}

.quiz-cards {
  display: flex;
  width: 100%;
  max-width: var(--dxqb-max-content);
  align-self: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-wrap: nowrap;
}

.quiz-cards > :not(:last-child) {
  margin-inline-end: 20px;
}

.quiz-card-wrap {
  overflow: hidden;
  width: 100%;
  max-width: 160px;
  border-radius: 8px;
}

.quiz-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--dxqb-theme-primary);
  cursor: pointer;
  text-align: left;
  transition: transform 0.25s ease;
}

.quiz-card:hover,
.quiz-card:active,
.quiz-card.is-pressed {
  transform: scale(0.98);
}

.quiz-card-image-wrap {
  position: absolute;
  z-index: 1;
  top: -50px;
  bottom: 48px;
  left: 50%;
  width: 100%;
  max-width: 160px;
  overflow: visible;
  pointer-events: none;
  transform: translateX(-50%);
}

.quiz-card-image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: 50% 100%;
  display: block;
}

.quiz-card-media {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 324px;
  background: var(--dxqb-bg-secondary);
  border-radius: 8px 8px 0 0;
}

.quiz-card-footer {
  position: relative;
  z-index: 0;
  display: flex;
  width: 100%;
  height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: currentColor;
  border-radius: 0 0 8px 8px;
}

.quiz-card-label {
  margin: 0 auto;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.18;
  color: var(--dxqb-text-light);
  text-shadow: rgba(42, 56, 107, 0.2) 0 1px 1px;
}

.quiz-card-chevron {
  display: block;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--dxqb-text-light);
}

.quiz-divider {
  width: 100%;
  max-width: var(--dxqb-max-content);
  height: 1px;
  margin-bottom: 20px;
  background: var(--dxqb-border-tertiary);
}

.quiz-legal {
  width: 100%;
  max-width: 640px;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.03em;
  text-align: center;
  color: var(--dxqb-text-primary);
}

.quiz-legal strong {
  font-weight: 600;
}

.quiz-legal a {
  color: var(--dxqb-link);
  font-weight: 600;
}

.quiz-legal-break {
  display: block;
  margin-top: 8px;
}

.quiz-sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  background: rgba(0, 0, 0, 0.35);
}

.quiz-sidebar-backdrop.is-open {
  display: block;
}

.quiz-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 210;
  width: min(100%, 360px);
  height: 100dvh;
  padding: 24px 20px;
  background: var(--dxqb-bg-primary);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
}

.quiz-sidebar.is-open {
  transform: translateX(0);
}

.quiz-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.quiz-sidebar-title {
  font-size: 24px;
  font-weight: 700;
}

.quiz-sidebar-close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--dxqb-input-secondary);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.quiz-sidebar-close::before,
.quiz-sidebar-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: var(--dxqb-text-primary);
}

.quiz-sidebar-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.quiz-sidebar-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.quiz-sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quiz-sidebar-links a {
  font-size: 16px;
  font-weight: 500;
  color: var(--dxqb-text-primary);
}

@media (min-width: 768px) {
  :root {
    --dxqb-header-height: 88px;
    --dxqb-step-header-height: 88px;
  }

  .quiz-header {
    padding: 0 40px;
  }

  .quiz-header-brand {
    font-size: 17px;
  }

  .quiz-page:not(.quiz-page--step) .quiz-header-brand {
    font-size: 28px;
  }

  .quiz-burger {
    width: 48px;
    height: 48px;
    padding: 12px;
  }

  .quiz-main {
    padding: 60px;
  }

  .quiz-title {
    margin-bottom: 24px;
    font-size: 48px;
    letter-spacing: -1px;
  }

  .quiz-subtitle {
    margin-bottom: 32px;
    font-size: 26px;
    line-height: 32px;
  }

  .quiz-cards {
    margin-bottom: 24px;
  }

  .quiz-card-wrap {
    max-width: 420px;
  }

  .quiz-card-media {
    height: 192px;
    border-radius: 6.75px 6.75px 0 0;
  }

  .quiz-card-image-wrap {
    left: 5px;
    width: 155px;
    max-width: 155px;
    transform: none;
    bottom: -43px;
  }

  .quiz-card-footer {
    height: 72px;
    padding: 24px;
    border-radius: 0 0 6.75px 6.75px;
  }

  .quiz-card-chevron {
    width: 40px;
    height: 40px;
  }

  .quiz-divider {
    margin-bottom: 24px;
  }
}

@media (min-width: 1024px) {
  .quiz-header {
    padding: 0 60px;
  }

  .quiz-main {
    padding: 64px 40px 40px;
  }
}

.quiz-page--step {
  padding-top: var(--dxqb-step-header-height);
}

.quiz-header--step {
  flex-direction: column;
  align-items: stretch;
  height: var(--dxqb-step-header-height);
  padding: 0;
}

.quiz-header-top {
  display: flex;
  width: 100%;
  height: calc(var(--dxqb-step-header-height) - 4px);
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  gap: 12px;
}

.quiz-header-start {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.quiz-header-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0;
  text-transform: none;
  color: var(--dxqb-text-primary);
  pointer-events: none;
}

.quiz-header--step .quiz-burger {
  margin-left: auto;
}

.quiz-header--social .quiz-header-top {
  height: var(--dxqb-header-height);
}

.quiz-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--dxqb-input-secondary);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.2s ease, border-color 0.2s ease;
}

.quiz-back svg {
  display: block;
}

.quiz-back:hover {
  border-color: transparent;
  background: var(--dxqb-input-eclipse);
}

.quiz-back:active {
  transform: scale(0.8);
}

.quiz-progress {
  width: 100%;
  height: 4px;
  padding: 0 22px 0;
}

.quiz-progress-list {
  display: flex;
  gap: 4px;
  width: 100%;
  list-style: none;
}

.quiz-progress-item {
  flex: 1 1 0;
  min-width: 0;
}

.quiz-progress-track {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--dxqb-progress-track);
}

.quiz-progress-fill {
  height: 100%;
  background: var(--dxqb-theme-primary);
  transition: width 0.1s ease-in;
}

.quiz-step-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 552px;
  margin: 0 auto;
  padding: 32px 20px 24px;
}

.quiz-question {
  width: 100%;
  margin-bottom: 24px;
  font-size: 29px;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--dxqb-text-primary);
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.quiz-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 74px;
  padding: 24px;
  border: 1px solid var(--dxqb-answer-border);
  border-radius: 16px;
  background: var(--dxqb-answer-bg);
  cursor: pointer;
  text-align: left;
  transition: background 0.1s ease, border-color 0.1s ease, transform 0.25s ease;
}

.quiz-option:hover,
.quiz-option:active {
  transform: scale(0.99);
}

.quiz-option.is-selected {
  border-color: var(--dxqb-answer-border-active);
  background: var(--dxqb-answer-bg-active);
}

.quiz-option-label {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: 0;
  color: var(--dxqb-text-primary);
}

.quiz-option-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 1px solid var(--dxqb-input-secondary);
  border-radius: 50%;
  color: transparent;
  transition: background 0.1s ease, border-color 0.1s ease, color 0.1s ease;
}

.quiz-option-check svg {
  display: block;
}

.quiz-option.is-selected .quiz-option-check {
  border-color: var(--dxqb-theme-primary);
  background: var(--dxqb-theme-primary);
  color: var(--dxqb-text-light);
}

@media (min-width: 768px) {
  .quiz-header--step {
    padding: 0;
  }

  .quiz-header-top {
    padding: 0 40px;
  }

  .quiz-progress {
    padding: 0 40px;
  }

  .quiz-back,
  .quiz-burger {
    width: 48px;
    height: 48px;
  }

  .quiz-step-main {
    padding: 48px 40px 40px;
  }

  .quiz-question {
    margin-bottom: 32px;
    font-size: 34px;
    line-height: 1.18;
  }

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

@media (min-width: 1024px) {
  .quiz-header-top {
    padding: 0 60px;
  }

  .quiz-progress {
    padding: 0 60px;
  }
}

.quiz-question-subtitle {
  width: 100%;
  margin-top: -16px;
  margin-bottom: 24px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  text-align: center;
  color: var(--dxqb-text-tertiary);
}

.quiz-step-main--with-footer {
  padding-bottom: 96px;
}

.quiz-step-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 90;
  display: flex;
  justify-content: center;
  padding: 16px 20px 24px;
  background: linear-gradient(180deg, rgba(255, 252, 245, 0) 0%, var(--dxqb-bg-primary) 32%);
}

.quiz-option--checkbox {
  transform: none;
}

.quiz-option-check--square {
  border-radius: 6px;
}

.quiz-options--grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

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

.quiz-step-main--wide {
  max-width: 720px;
}

.quiz-step-main--photo {
  max-width: var(--dxqb-max-content);
}

/* Photo grid (physical build / body goal) */
.quiz-photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
  max-width: var(--dxqb-max-content);
}

.quiz-photo-option {
  flex: 1 1 calc(50% - 10px);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--dxqb-answer-border);
  border-radius: 16px;
  background: var(--dxqb-answer-bg);
  cursor: pointer;
  text-align: left;
  transition: background 0.1s ease, border-color 0.1s ease, transform 0.25s ease;
}

.quiz-photo-option:hover,
.quiz-photo-option:active {
  transform: scale(0.99);
}

.quiz-photo-option.is-selected {
  border-color: var(--dxqb-answer-border-active);
  background: var(--dxqb-answer-bg-active);
}

.quiz-photo-option-image-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 280px;
  padding: 10px 8px 0;
  background: var(--dxqb-bg-secondary);
}

.quiz-photo-option-image {
  display: block;
  width: auto;
  height: 122%;
  max-width: none;
  object-fit: contain;
  object-position: 50% 100%;
  transform: translateY(8px);
}

.quiz-photo-option-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 76px;
  padding: 14px 16px;
}

.quiz-photo-option-label {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--dxqb-text-primary);
  min-width: 0;
  overflow-wrap: break-word;
}

.quiz-photo-option-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 1px solid var(--dxqb-input-secondary);
  border-radius: 50%;
  color: transparent;
  transition: background 0.1s ease, border-color 0.1s ease, color 0.1s ease;
}

.quiz-photo-option-check svg {
  display: block;
  width: 12px;
  height: 12px;
}

.quiz-photo-option.is-selected .quiz-photo-option-check {
  border-color: var(--dxqb-theme-primary);
  background: var(--dxqb-theme-primary);
  color: var(--dxqb-text-light);
}

@media (min-width: 640px) {
  .quiz-photo-option {
    flex: 1 1 calc(25% - 18px);
  }
}

@media (max-width: 767px) {
  .quiz-step-main--photo {
    max-width: 560px;
  }

  .quiz-photo-grid {
    gap: 12px;
    max-width: 560px;
  }

  .quiz-photo-option {
    flex-basis: calc(50% - 6px);
  }

  .quiz-photo-option-image-wrap {
    height: clamp(150px, 38vw, 185px);
    padding: 10px 8px 0;
  }

  .quiz-photo-option-image {
    height: 118%;
    transform: translateY(7px);
  }

  .quiz-photo-option-footer {
    min-height: 68px;
    padding: 12px;
  }

  .quiz-photo-option-label {
    font-size: 15px;
  }
}

@media (max-width: 380px) {
  .quiz-photo-option {
    flex-basis: 100%;
  }
}

/* Motivational / message pages */
.quiz-page--message {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding-top: var(--dxqb-header-height);
  padding-bottom: 96px;
}

.quiz-page--message .quiz-header--step {
  height: var(--dxqb-header-height);
}

.quiz-page--message .quiz-header-start {
  flex: 1;
}

.quiz-message-main {
  display: flex;
  flex: 1;
  align-items: center;
  width: 100%;
  padding: 32px 20px;
}

.quiz-message-content {
  width: 100%;
  max-width: 552px;
  margin: 0 auto;
}

.quiz-message-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--dxqb-bg-secondary);
  color: var(--dxqb-text-tertiary);
}

.quiz-message-icon svg {
  display: block;
  width: 28px;
  height: 28px;
}

.quiz-message-headline {
  margin-bottom: 16px;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--dxqb-text-primary);
}

.quiz-message-text {
  margin-bottom: 12px;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--dxqb-text-tertiary);
}

.quiz-message-text strong {
  font-weight: 600;
  color: var(--dxqb-text-primary);
}

.quiz-final-content {
  text-align: center;
}

.quiz-final-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.quiz-final-progress span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--dxqb-theme-primary);
  animation: quiz-final-pulse 1.1s ease-in-out infinite;
}

.quiz-final-progress span:nth-child(2) {
  animation-delay: 0.15s;
}

.quiz-final-progress span:nth-child(3) {
  animation-delay: 0.3s;
}

.quiz-answer-summary {
  display: none;
}

@keyframes quiz-final-pulse {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: scale(0.82);
  }

  40% {
    opacity: 1;
    transform: scale(1);
  }
}

.quiz-message-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 90;
  display: flex;
  justify-content: center;
  padding: 16px 20px 24px;
  background: linear-gradient(180deg, rgba(255, 252, 245, 0) 0%, var(--dxqb-bg-primary) 32%);
}

@media (min-width: 768px) {
  .quiz-message-main {
    padding: 48px 40px;
  }

  .quiz-message-headline {
    font-size: 40px;
  }

  .quiz-message-text {
    font-size: 19px;
  }
}

.quiz-page--social {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding-top: var(--dxqb-header-height);
  padding-bottom: 96px;
}

.quiz-page--social .quiz-header--step {
  height: var(--dxqb-header-height);
}

.quiz-page--social .quiz-header-start {
  flex: 1;
}

.quiz-social-main {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 32px 20px 24px;
}

.quiz-social-content {
  display: flex;
  width: 100%;
  max-width: 976px;
  align-items: center;
  justify-content: center;
  gap: 48px;
}

.quiz-social-copy {
  flex: 1 1 0;
  max-width: 420px;
}

.quiz-social-headline {
  margin-bottom: 8px;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--dxqb-text-primary);
}

.quiz-social-subtext {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--dxqb-text-primary);
}

.quiz-social-subtext strong {
  font-size: inherit;
  font-weight: 600;
}

.quiz-social-subtext span {
  font-weight: 400;
}

.quiz-social-media {
  flex: 0 1 445px;
  width: 100%;
  max-width: 445px;
}

.quiz-social-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  object-fit: contain;
}

.quiz-social-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 90;
  display: flex;
  justify-content: center;
  padding: 16px 20px 24px;
  background: linear-gradient(180deg, rgba(255, 252, 245, 0) 0%, var(--dxqb-bg-primary) 32%);
}

.quiz-continue-btn {
  width: 100%;
  max-width: 335px;
  min-height: 48px;
  padding: 12px 48px;
  border: none;
  border-radius: 24px;
  background: var(--dxqb-theme-primary);
  color: var(--dxqb-text-light);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0.007em;
  text-transform: none;
  cursor: pointer;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.quiz-continue-btn:hover,
.quiz-continue-btn:active,
.quiz-continue-btn.is-pressed {
  transform: scale(0.98);
}

.quiz-continue-btn:hover {
  opacity: 0.92;
}

@media (max-width: 767px) {
  .quiz-social-content {
    flex-direction: column;
    gap: 24px;
  }

  .quiz-social-copy {
    max-width: 100%;
    text-align: center;
  }

  .quiz-social-media {
    max-width: 320px;
  }
}

@media (min-width: 768px) {
  .quiz-social-main {
    padding: 48px 40px 32px;
  }

  .quiz-social-headline {
    font-size: 48px;
  }

  .quiz-social-subtext {
    font-size: 26px;
  }
}

/* ============================================================
   Flow 2228 additions — new step types
   ============================================================ */

/* Page transitions (BetterMe-style fade/slide).
   NOTE: transform must never sit on .quiz-page itself or it becomes the
   containing block for position:fixed footers and breaks them. */
.quiz-page {
  animation: quiz-page-fade 0.45s ease both;
}

.quiz-page main {
  animation: quiz-page-rise 0.45s ease both;
}

@keyframes quiz-page-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes quiz-page-rise {
  from {
    transform: translateY(14px);
  }
  to {
    transform: translateY(0);
  }
}

.quiz-page.is-leaving {
  opacity: 0;
  transition: opacity 0.22s ease;
}

.quiz-page.is-leaving main {
  transform: translateY(-8px);
  transition: transform 0.22s ease;
}

/* Disabled footer CTA */
.quiz-continue-btn:disabled {
  background: #b3aca3;
  cursor: default;
  pointer-events: none;
}

/* Likert scale */
.quiz-likert {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 34px;
}

.quiz-likert-option {
  width: 76px;
  height: 60px;
  border: 1px solid #eee5d9;
  border-radius: 12px;
  background: #fff;
  font-size: 22px;
  font-weight: 700;
  color: #2d2119;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.quiz-likert-option:hover {
  border-color: #d9cfc2;
}

.quiz-likert-option.is-selected {
  background: #2d2119;
  color: #fff;
  border-color: #2d2119;
}

.quiz-likert-legend {
  display: flex;
  justify-content: space-between;
  max-width: 436px;
  margin: 10px auto 0;
  color: #8a8177;
  font-size: 14px;
}

/* Zone options (row with side thumbnail) */
.quiz-option--zone {
  position: relative;
  overflow: hidden;
  padding-right: 108px;
}

.quiz-zone-thumb {
  position: absolute;
  right: 44px;
  top: 0;
  height: 100%;
  width: 80px;
  object-fit: contain;
  object-position: center bottom;
}

/* Photo grid — 3 columns variant */
.quiz-photo-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Promo (split) pages */
.quiz-promo-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  padding: 32px 24px 120px;
  width: min(1060px, 100%);
  margin: 0 auto;
}

.quiz-promo-copy {
  max-width: 460px;
}

.quiz-promo-headline {
  font-size: clamp(30px, 4.2vw, 44px);
  line-height: 1.12;
  font-weight: 700;
  color: #2d2119;
  margin: 0 0 18px;
}

.quiz-promo-text {
  color: #6f675e;
  font-size: 17px;
  line-height: 1.55;
  margin: 0 0 14px;
}

.quiz-promo-media {
  flex-shrink: 0;
  width: min(460px, 42vw);
  border-radius: 24px;
  background: #f4ece2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.quiz-promo-image {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 820px) {
  .quiz-promo-main {
    flex-direction: column-reverse;
    gap: 24px;
    text-align: center;
  }
  .quiz-promo-media {
    width: min(420px, 88vw);
  }
}

/* CSS phone mockup */
.quiz-phone {
  width: 250px;
  margin: 28px auto;
  border: 10px solid #17120d;
  border-radius: 38px;
  background: #fffcf5;
  position: relative;
  box-shadow: 0 24px 48px rgba(45, 33, 25, 0.18);
}

.quiz-phone-notch {
  width: 90px;
  height: 20px;
  background: #17120d;
  border-radius: 0 0 14px 14px;
  margin: 0 auto;
}

.quiz-phone-screen {
  padding: 14px 14px 22px;
}

.quiz-phone-title {
  font-size: 14px;
  font-weight: 700;
  color: #2d2119;
  text-align: center;
  margin: 4px 0 14px;
}

.quiz-phone-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #f0e8dc;
  border-radius: 14px;
  padding: 10px;
  margin-bottom: 10px;
}

.quiz-phone-row-thumb {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #e8dccb, #cdbfa9);
  flex-shrink: 0;
}

.quiz-phone-row-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  flex: 1;
  min-width: 0;
}

.quiz-phone-row-copy strong {
  font-size: 12.5px;
  color: #2d2119;
}

.quiz-phone-row-copy small {
  font-size: 11px;
  color: #8a8177;
}

.quiz-phone-row-state {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #d9cfc2;
  flex-shrink: 0;
}

.quiz-phone-row-state.is-done {
  border-color: #4caf50;
  background: #4caf50 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* Numeric input steps */
.quiz-input-card {
  width: min(540px, 100%);
  margin: 34px auto 0;
  background: #fff;
  border: 1px solid #f0e8dc;
  border-radius: 20px;
  padding: 30px 34px 26px;
}

.quiz-unit-toggle {
  display: flex;
  width: 128px;
  margin: 0 auto 22px;
  background: #f4ece2;
  border-radius: 999px;
  padding: 3px;
}

.quiz-unit {
  flex: 1;
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 7px 0;
  font-size: 14px;
  font-weight: 600;
  color: #8a8177;
  cursor: pointer;
}

.quiz-unit.is-active {
  background: #fff;
  color: #2d2119;
  box-shadow: 0 2px 6px rgba(45, 33, 25, 0.12);
}

.quiz-input-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 18px;
  border-bottom: 2px solid #2d2119;
  padding-bottom: 8px;
}

.quiz-input {
  border: 0;
  outline: 0;
  background: transparent;
  font-size: clamp(38px, 6vw, 56px);
  font-weight: 600;
  color: #2d2119;
  flex: 1;
  min-width: 0;
  width: auto;
  text-align: center;
}

.quiz-input::placeholder {
  color: #c9c0b4;
  font-size: clamp(24px, 3.2vw, 34px);
}

.quiz-input::-webkit-outer-spin-button,
.quiz-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quiz-input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.quiz-input-unit {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  color: #2d2119;
}

.quiz-input-hint {
  text-align: center;
  color: #8a8177;
  font-size: 13.5px;
  margin: 10px 0 0;
}

.quiz-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 20px;
  font-size: 13.5px;
  color: #6f675e;
  line-height: 1.45;
  cursor: pointer;
}

.quiz-consent input {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: #2d2119;
  flex-shrink: 0;
}

.quiz-consent a {
  color: #2b5fd9;
}

/* Toast */
.quiz-toast {
  position: fixed;
  left: 50%;
  bottom: 108px;
  transform: translateX(-50%);
  background: #e15b4e;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 22px;
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(45, 33, 25, 0.22);
  z-index: 60;
}

/* Wellness profile */
.quiz-profile-main {
  flex: 1;
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 26px 24px 120px;
}

.quiz-profile-headline {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: #2d2119;
  text-align: center;
  margin: 8px 0 26px;
}

.quiz-profile-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 26px;
  align-items: stretch;
}

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

.quiz-profile-card {
  background: #fff;
  border: 1px solid #f0e8dc;
  border-radius: 20px;
  padding: 22px;
}

.quiz-profile-card-title {
  font-size: 19px;
  font-weight: 700;
  color: #2d2119;
  margin: 0 0 16px;
}

.quiz-bmi-scale-labels,
.quiz-bmi-cats {
  display: flex;
  justify-content: space-between;
  color: #8a8177;
  font-size: 11.5px;
}

.quiz-bmi-bar {
  position: relative;
  height: 8px;
  border-radius: 999px;
  margin: 6px 0;
  background: linear-gradient(90deg, #6ec3f5 0%, #8ed16f 32%, #f0c840 55%, #ef9241 75%, #e4573d 100%);
}

.quiz-bmi-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #2d2119;
  transform: translate(-50%, -50%);
  transition: left 0.8s ease;
}

.quiz-profile-risk {
  background: #fbeede;
  border: 1px solid #f3d9b8;
  border-radius: 14px;
  padding: 12px 14px;
  margin: 16px 0 4px;
  font-size: 13.5px;
  color: #6f675e;
  line-height: 1.45;
}

.quiz-profile-risk-title {
  font-weight: 700;
  color: #2d2119;
  margin: 0 0 4px;
}

.quiz-profile-risk p {
  margin: 0;
}

.quiz-profile-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid #f0e8dc;
  border-radius: 14px;
  padding: 12px 16px;
  margin-top: 12px;
}

.quiz-profile-row-label {
  color: #8a8177;
  font-size: 12.5px;
}

.quiz-profile-row strong {
  font-size: 17px;
  color: #2d2119;
}

.quiz-profile-media {
  border-radius: 20px;
  background: #f4ece2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.quiz-profile-media img {
  max-width: 82%;
  height: auto;
  display: block;
}

/* Projection chart */
.quiz-projection-main {
  flex: 1;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 30px 24px 120px;
  text-align: center;
}

.quiz-projection-headline {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: #2d2119;
  margin: 6px 0 12px;
}

.quiz-projection-sub {
  color: #6f675e;
  font-size: 18px;
  line-height: 1.5;
  margin: 0 0 22px;
}

.quiz-projection-sub strong {
  color: #2d2119;
}

.quiz-chart-card {
  position: relative;
  background: #f6efe7;
  border-radius: 20px;
  padding: 20px 18px 44px;
}

.quiz-chart {
  width: 100%;
  height: auto;
  display: block;
}

.quiz-chart-tooltip {
  position: absolute;
  right: 26px;
  top: 42%;
  background: #2d2119;
  color: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12.5px;
  line-height: 1.3;
}

.quiz-chart-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #2d2119;
  border-bottom: 0;
}

.quiz-chart-months {
  position: absolute;
  left: 70px;
  right: 26px;
  bottom: 16px;
  display: flex;
  justify-content: space-around;
  color: #8a8177;
  font-size: 12.5px;
}

.quiz-projection-note {
  color: #a39a8e;
  font-size: 12.5px;
  line-height: 1.5;
  margin: 14px 4px 0;
}

/* Loader */
.quiz-header-top--center {
  justify-content: center;
}

.quiz-loader-main {
  flex: 1;
  width: min(680px, 100%);
  margin: 0 auto;
  padding: 40px 24px 60px;
  text-align: center;
}

.quiz-loader-ring {
  position: relative;
  width: 150px;
  margin: 14px auto 18px;
}

.quiz-loader-ring svg {
  width: 150px;
  height: 150px;
  transform: rotate(-90deg);
}

.quiz-loader-track,
.quiz-loader-fill {
  fill: none;
  stroke-width: 7;
}

.quiz-loader-track {
  stroke: #efe7db;
}

.quiz-loader-fill {
  stroke: #2d2119;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.08s linear;
}

.quiz-loader-percent {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 700;
  color: #2d2119;
  margin: 0;
}

.quiz-loader-percent small {
  font-size: 18px;
  font-weight: 600;
  margin-top: 10px;
}

.quiz-loader-label {
  font-size: 17px;
  font-weight: 600;
  color: #2d2119;
  margin: 0 0 26px;
}

.quiz-loader-social {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 700;
  color: #2d2119;
  margin: 26px 0 18px;
}

.quiz-testimonial {
  background: #f6efe7;
  border-radius: 16px;
  padding: 18px 20px;
  text-align: left;
  margin-bottom: 14px;
}

.quiz-testimonial-stars {
  color: #00b67a;
  letter-spacing: 3px;
  margin-bottom: 8px;
}

.quiz-testimonial-title {
  font-weight: 700;
  color: #2d2119;
  margin: 0 0 6px;
  display: flex;
  justify-content: space-between;
}

.quiz-testimonial-title span {
  font-weight: 500;
  color: #8a8177;
  font-size: 13.5px;
}

.quiz-testimonial-text {
  color: #6f675e;
  font-size: 14.5px;
  line-height: 1.5;
  margin: 0;
}

/* Email capture */
.quiz-email-main {
  flex: 1;
  width: min(620px, 100%);
  margin: 0 auto;
  padding: 60px 24px 120px;
  text-align: center;
}

.quiz-email-headline {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: #2d2119;
  line-height: 1.2;
  margin: 0 0 30px;
}

.quiz-email-headline span {
  color: #8a7863;
}

.quiz-email-input {
  width: 100%;
  border: 1px solid #d9cfc2;
  border-radius: 14px;
  background: #fff;
  font-size: 17px;
  padding: 17px 18px;
  outline: none;
  color: #2d2119;
}

.quiz-email-input:focus {
  border-color: #2d2119;
}

.quiz-email-privacy {
  color: #8a8177;
  font-size: 13.5px;
  line-height: 1.55;
  margin: 14px 4px 0;
  text-align: center;
}

.quiz-email-privacy a {
  color: #2b5fd9;
}

/* Mobile header: pages WITH a section title hide the wordmark;
   pages WITHOUT one (landing/message/promo) center the wordmark like the reference */
@media (max-width: 640px) {
  .quiz-header:has(.quiz-header-title) .quiz-header-brand {
    display: none;
  }

  .quiz-header:not(:has(.quiz-header-title)) {
    position: relative;
  }

  /* Headers without a back button: keep the burger pinned right
     once the brand is absolutely centered */
  .quiz-header:not(:has(.quiz-header-top)) {
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }

  .quiz-header-top:not(:has(.quiz-header-start)) {
    justify-content: flex-end;
  }

  .quiz-header:not(:has(.quiz-header-title)) .quiz-header-brand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    z-index: 5;
  }

  /* Content starts at the top on phones instead of vertical centering */
  .quiz-message-main {
    align-items: flex-start;
    padding-top: 16px;
  }

  .quiz-promo-main {
    align-items: flex-start;
    padding-top: 16px;
  }

  .quiz-question {
    font-size: 24px;
  }
}
