/* Fellinora Quiz – Layout */
#fellinora-quiz {
  min-height: 100vh;
}

.shell {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 56px 16px 96px;
}

@media (min-width: 900px) {
  .shell.wide {
    max-width: 1180px;
    padding: 64px 48px 100px;
  }
}

@media (min-width: 1200px) {
  .shell.wide {
    max-width: 1280px;
  }
}

@media (min-width: 900px) {
  .shell {
    padding: 56px 16px 96px;
  }
}

@media (min-width: 720px) {
  .shell-allergies_feeding {
    max-width: 680px;
  }

  .shell-health {
    max-width: 820px;
  }

  .shell-analysis_food_mix,
  .shell-analysis_food_details {
    max-width: 980px;
  }

  .shell-wetfood_subscription_choice,
  .shell-cook_subscription_choice,
  .shell-barf_subscription_choice {
    max-width: 1180px;
  }
}

@media (min-width: 760px) {
  .shell-intro {
    max-width: 980px;
    padding-right: 32px;
    padding-left: 32px;
  }
}

@media (min-width: 1120px) {
  .shell-intro {
    max-width: 1120px;
  }
}

.step {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.step-enter {
  opacity: 0;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.step-enter.from-right {
  transform: translateX(18px);
}

.step-enter.from-left {
  transform: translateX(-18px);
}

.step-enter.active {
  opacity: 1;
  transform: none;
}

.step-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-grid {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.reveal.from-r {
  transform: translateX(20px);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.q-reveal {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: max-height 0.5s var(--ease), opacity 0.38s var(--ease), transform 0.38s var(--ease);
}

.q-reveal.q-visible {
  max-height: 1600px;
  opacity: 1;
  transform: none;
}

.q-reveal#q-breed,
.q-reveal#q-parent-breeds {
  overflow: visible;
}
