html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

.screen {
  display: none;
}

.screen.active {
  display: block;
  animation: fadeSlideIn .4s ease;
}

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

/* question card slide direction */
#qContent {
  will-change: transform, opacity;
}

#qContent.q-enter-right {
  animation: qEnterRight .32s cubic-bezier(.22,.61,.36,1);
}

#qContent.q-enter-left {
  animation: qEnterLeft .32s cubic-bezier(.22,.61,.36,1);
}

@keyframes qEnterRight {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes qEnterLeft {
  from { opacity: 0; transform: translateX(-28px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* option cards */
.option-card {
  cursor: pointer;
  position: relative;
}

.option-card:active {
  transform: scale(0.97);
}

.check-badge {
  animation: popIn .3s cubic-bezier(.34,1.56,.64,1);
}

.pop-in {
  animation: popIn .4s cubic-bezier(.34,1.56,.64,1);
}

@keyframes popIn {
  0%   { transform: scale(0); opacity: 0; }
  70%  { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); }
}

/* result content stagger */
#screen-result.active > * {
  animation: staggerFadeUp .5s ease both;
}

#screen-result.active > *:nth-child(1) { animation-delay: .05s; }
#screen-result.active > *:nth-child(2) { animation-delay: .15s; }
#screen-result.active > *:nth-child(3) { animation-delay: .25s; }
#screen-result.active > *:nth-child(4) { animation-delay: .32s; }
#screen-result.active > *:nth-child(5) { animation-delay: .4s; }
#screen-result.active > *:nth-child(6) { animation-delay: .45s; }

.stagger-in {
  opacity: 0;
  animation: staggerFadeUp .4s ease forwards;
}

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

/* landing icon float */
.icon-float {
  animation: iconFloat 3.2s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* progress step dots */
.progress-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background-color: #e2e8f0;
  transition: all .3s ease;
}

.progress-dot.done {
  background-color: #0d9488;
}

.progress-dot.current {
  background-color: #0d9488;
  width: 16px;
}

/* sticky mobile quiz nav */
.quiz-nav-fixed {
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
}

@media (min-width: 640px) {
  .quiz-nav-fixed {
    padding-bottom: 0;
  }
}

/* keep option cards clear of the fixed mobile nav bar when scrolled/focused into view */
@media (max-width: 639px) {
  .option-card {
    scroll-margin-bottom: 96px;
  }
}

/* focus visibility for keyboard users */
button:focus-visible,
.option-card:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid #0d9488;
  outline-offset: 2px;
}

@media print {
  header,
  footer,
  #progressWrap,
  #ctaAppointment,
  #printBtn,
  #restartBtn,
  #restartBtn2 {
    display: none !important;
  }

  .screen { display: none !important; }
  #screen-result { display: block !important; }

  body { background: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
