.quiz-container {
  position: relative;
  max-width: 500px;
  height: 100vh;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.question-area {
  flex-grow: 1;
  opacity: 0;
  transform: translateY(10px);
}
.question-area.animate {
  animation: fadeInQuestion 0.4s ease forwards;
}
.question {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--black2);
}

.more-info {
  font-size: 0.9rem;
  color: var(--main-color);
  cursor: pointer;
  margin-bottom: 20px;
  text-decoration: underline;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  align-items: stretch;
  opacity: 0;
  transform: translateY(10px);
}
.options.animate {
  animation: fadeInOptions 0.6s ease forwards;
}
.option-btn {
  opacity: 0;
  transform: translateY(15px);
  width: 100%;
  padding: 30px;
  font-size: 1.3rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  background: var(--white2);
  color: var(--black);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.option-btn:hover {
  background: var(--white3);
}
.option-btn i {
  font-size: 2.5rem;
  margin-bottom: 10px;
}
.option-yes {
  background: var(--green);
  color: #fff;
}
.option-no {
  background: var(--red);
  color: #fff;
}

@keyframes fadeInQuestion {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInOptions {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767px) {
  .option-btn {
    padding: 40px;
    font-size: 1.5rem;
  }
}

@media (min-width: 768px) {
  .quiz-container {
    max-width: 1000px;
  }
  .options {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .options.count-2 .option-btn {
    width: calc(50% - 10px);
    height: 60%;
  }
  .options.count-3 .option-btn {
    width: calc((100% - 40px) / 3);
    height: 100%;
  }
  .options.count-4 .option-btn {
    width: calc((100% - 60px) / 4);
  }
}

#progress {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 10px 0;
}
.progress-step {
  width: 30px;
  height: 6px;
  border-radius: 3px;
  background: var(--grey);
  cursor: pointer;
  opacity: 0;
  transform: scale(0.8);
  transition: background 0.3s;
}
.progress-step.past {
  background: var(--black3);
}
.progress-step.current {
  background: var(--blue);
}
.progress-step.future {
  background: var(--white2);
}
.progress-step.final {
  background: var(--green);
}

@keyframes fadeInBar {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.description {
  font-size: 1.2rem;
  color: var(--black2);
  margin: 8px 0 16px;
  line-height: 1.4;
  text-align: center;
}

.more-info a {
  margin-top: 0;
  margin-bottom: 20px;
}
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
}

.thank-you-container {
  position: relative;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: var(--white);
}

.thank-you-message {
  font-size: 2.5rem;
  color: var(--main-color);
  opacity: 0;
  transform: scale(0.5);
  animation: popText 0.7s ease forwards;
}

@keyframes popText {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  60% {
    opacity: 1;
    transform: scale(1.2);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.sub-message {
  font-size: 1.2rem;
  color: var(--black2);
  margin-top: 12px;
  opacity: 0;
  animation: fadeIn 0.8s ease forwards 0.6s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#checkEmailBtn {
  margin-top: 24px;
  padding: 14px 28px;
  font-size: 1rem;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  animation: slideUpBtn 0.6s ease forwards 1s;
}

@keyframes slideUpBtn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.more-info button {
  background: var(--main-color);
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}
.more-info button:hover {
  background: var(--main-color-add);
  transform: scale(1.05);
}

.more-info button {
  background: var(--main-color);
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}
.more-info button:hover {
  background: var(--main-color-add);
  transform: scale(1.05);
}
@keyframes fadeOutBtn {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.8);
  }
}
.more-info button.hide {
  animation: fadeOutBtn 0.3s ease forwards;
}

.video-container {
  opacity: 0;
  transform: translateY(-20px);
  position: relative;
  margin: 10px auto;
  width: 100%;
}
.video-container.animate {
  animation: fadeInVideo 0.6s ease forwards;
}
@keyframes fadeInVideo {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.video-container iframe {
  width: 100%;
  height: 315px;
  border: none;
  border-radius: 8px;
}
.video-container .close-video {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  font-size: 1.2rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
}
.video-container .close-video:hover {
  background: rgba(0, 0, 0, 0.8);
}
.quiz-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.question-area {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.description,
.more-info,
.video-container {
  flex: 0 0 auto;
}

.options {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(10px);
  overflow: hidden;
}
.options.count-2 .option-btn {
  height: 45%;
}
.options.count-3 .option-btn {
  height: 30%;
}

.option-btn {
  flex: 1 1 auto;
  margin: 0;
  max-height: 20vh;
}

#progress {
  flex: 0 0 auto;
}

@media (max-width: 767px) {
  .option-btn {
    font-size: 1.6rem;
  }
}
@media (min-width: 768px) {
  .options {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .options.count-2 .option-btn {
    width: calc(50% - 10px);
  }
  .options.count-3 .option-btn {
    width: calc((100% - 40px) / 3);
  }
  .options.count-4 .option-btn {
    width: calc((100% - 60px) / 4);
  }
  .option-btn {
    flex: none;
  }
}
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
}
