/* ============================================================
   Tasteo Quiz Styles — 1 question per step
   ============================================================ */

.quiz-section {
  padding: 4rem 0 6rem;
  min-height: calc(100vh - var(--fullMenuHeight));
  display: flex;
  align-items: center;
}

.quiz-section > .container {
  width: 100%;
}

/* Progress bar */
.quiz-progress {
  max-width: 560px;
  margin: 0 auto 4rem;
  padding: 0 2rem;
}

.quiz-progress__bar {
  width: 100%;
  height: 6px;
  background: #e8e8e8;
  border-radius: 3px;
  overflow: hidden;
}

.quiz-progress__fill {
  width: 2.78%;
  height: 100%;
  background: var(--red);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.quiz-progress__text {
  text-align: center;
  margin-top: 0.8rem;
  font-size: 1.3rem;
  color: var(--grey);
  font-weight: 500;
}

/* Steps */
.quiz-step {
  display: none;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 2rem;
  animation: quizFadeIn 0.3s ease;
}

.quiz-step.active {
  display: block;
}

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

/* Section label */
.quiz-step__section-label {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
  margin-bottom: 1.2rem;
}

/* Question title */
.quiz-step__question {
  font-size: 2.4rem;
  line-height: 1.35;
  font-weight: 700;
  margin-bottom: 2.4rem;
  color: var(--black);
}

/* Options */
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quiz-option {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
}

.quiz-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.quiz-option__box {
  display: block;
  width: 100%;
  padding: 1.5rem 2rem;
  background: #f8f8f8;
  border: 2px solid transparent;
  border-radius: 12px;
  font-size: 1.7rem;
  line-height: 1.4;
  font-weight: 500;
  color: var(--black);
  transition: all 0.2s ease;
  font-family: var(--primaryfont);
}

.quiz-option:hover .quiz-option__box {
  background: #f0f0f0;
  border-color: #ddd;
}

.quiz-option input[type="radio"]:checked ~ .quiz-option__box {
  background: #fff0ee;
  border-color: var(--red);
  color: var(--red);
  font-weight: 600;
}

/* Other option */
.quiz-option--other {
  flex-wrap: wrap;
}

.quiz-other-input {
  display: none;
  width: 100%;
  margin-top: 0.8rem;
  padding: 1.2rem 1.6rem;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1.5rem;
  font-family: var(--primaryfont);
  background: #fff;
  color: var(--black);
  transition: border-color 0.2s ease;
}

.quiz-other-input:focus {
  border-color: var(--red);
  outline: none;
}

.quiz-option--other input[type="radio"]:checked ~ .quiz-other-input {
  display: block;
}

/* Validation shake */
.quiz-step--shake {
  animation: quizShake 0.4s ease;
}

@keyframes quizShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

.quiz-step--error .quiz-option__box {
  border-color: #ffccc7;
}

/* Navigation */
.quiz-nav {
  max-width: 560px;
  margin: 3rem auto 0;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
}

.quiz-nav__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.3rem 3rem;
  border: none;
  border-radius: 10px;
  font-size: 1.6rem;
  font-weight: 600;
  font-family: var(--primaryfont);
  cursor: pointer;
  transition: all 0.2s ease;
}

.quiz-nav__btn--prev {
  background: #f0f0f0;
  color: var(--black);
}

.quiz-nav__btn--prev:hover:not(:disabled) {
  background: #e0e0e0;
}

.quiz-nav__btn--prev:disabled {
  opacity: 0.3;
  cursor: default;
}

.quiz-nav__btn--next,
.quiz-nav__btn--submit {
  background: var(--red);
  color: var(--white);
  margin-left: auto;
}

.quiz-nav__btn--next:hover,
.quiz-nav__btn--submit:hover {
  background: #d63018;
}

.quiz-nav__btn--submit:disabled {
  opacity: 0.5;
  cursor: default;
}

.quiz-nav__btn svg {
  width: 2rem;
  height: 2rem;
}

/* Thank you screen */
.quiz-thankyou .quiz-thankyou__inner {
  text-align: center;
  padding: 4rem 2rem;
}

.quiz-thankyou__icon {
  width: 8rem;
  height: 8rem;
  line-height: 8rem;
  border-radius: 50%;
  background: #e8f8ec;
  color: var(--green);
  font-size: 4rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 2rem;
}

.quiz-thankyou h2 {
  font-size: 3.2rem;
  margin-bottom: 1.5rem;
}

.quiz-thankyou p {
  font-size: 1.8rem;
  color: var(--grey);
  margin-bottom: 3rem;
  line-height: 1.5;
}

.quiz-thankyou .button_red {
  display: inline-block;
  padding: 1.2rem 3rem;
}

/* Responsive */
@media (max-width: 768px) {
  .quiz-section {
    padding: 3rem 0 4rem;
  }

  .quiz-progress {
    margin-bottom: 3rem;
  }

  .quiz-step__question {
    font-size: 2rem;
  }

  .quiz-option__box {
    padding: 1.3rem 1.6rem;
    font-size: 1.5rem;
    border-radius: 10px;
  }

  .quiz-nav__btn {
    padding: 1.1rem 2.2rem;
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .quiz-step__question {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }

  .quiz-options {
    gap: 0.8rem;
  }

  .quiz-thankyou h2 {
    font-size: 2.4rem;
  }
}
