/* ============================================
   BASE RESET
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #000000;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   QUIZ LANDING PAGE
   ============================================ */
.quiz-landing {
  display: flex;
  position: relative;
  z-index: 10;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  background-color: #1c1c1c;
  background-image: url('img/bg.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow: hidden;
}

.quiz-landing::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.30);
  z-index: 0;
  pointer-events: none;
}

.quiz-body {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 24px 48px;
}

.quiz-container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.quiz-step-label {
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 16px 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.quiz-progress {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 400px;
  margin: 0 0 64px 0;
}

.quiz-progress-segment {
  flex: 1 1 0;
  height: 5px;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  transition: background-color 0.35s ease;
}

.quiz-progress-segment.is-filled {
  background: #1A66FF;
}

.quiz-question {
  width: 100%;
  max-width: 640px;
  font-size: clamp(24px, 4.5vw, 34px);
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
  letter-spacing: -0.015em;
  margin: 0 0 44px 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.quiz-options {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 64px 0;
}

.quiz-option {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  border: 0;
  padding: 17px 28px;
  border-radius: 999px;
  background: #1A66FF;
  color: #ffffff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.quiz-option:hover {
  background: #0F55EE;
}

.quiz-option:active {
  transform: scale(0.988);
  background: #0A48D6;
}

.quiz-option.selected,
.quiz-option.selected:hover,
.quiz-option.selected:active {
  background: #00C853 !important;
  background-color: #00C853 !important;
  transform: none;
}

.selected {
  background-color: #00C853 !important;
}

.quiz-back {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 6px 10px;
  touch-action: manipulation;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.quiz-back:hover {
  color: rgba(255, 255, 255, 0.95);
}

.quiz-back.is-inactive {
  pointer-events: none;
}

.quiz-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.quiz-panel.is-hidden {
  display: none !important;
}

/* ============================================
   FOOTER
   ============================================ */
.ql-footer {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 100%;
  padding: 24px 32px 32px;
  text-align: center;
}

.ql-footer-disclaimer {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  max-width: 520px;
  margin: 0 auto 14px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.ql-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ql-footer-links a {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  touch-action: manipulation;
}

.ql-footer-links a:hover {
  color: #ffffff;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 599px) {
  .quiz-body {
    align-items: flex-start;
    padding: 48px 20px 40px;
  }

  .quiz-progress {
    max-width: 100%;
    margin-bottom: 48px;
  }

  .quiz-question {
    margin-bottom: 36px;
  }

  .quiz-options {
    max-width: 100%;
    gap: 12px;
    margin-bottom: 48px;
  }

  .quiz-option {
    padding: 16px 22px;
    font-size: 15px;
  }

  .ql-footer {
    padding: 20px 20px 28px;
  }

  .ql-footer-disclaimer {
    font-size: 12px;
  }

  .ql-footer-links {
    gap: 20px;
  }

  .ql-footer-links a {
    font-size: 12px;
  }
}
