/* =================================================================
   Scouq - Investor Archetype Quiz
   ================================================================= */

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
}

/* Main layout */
.quiz-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 16px 48px;
}

/* Card */
.quiz-card {
  width: 100%;
  max-width: 520px;
  background: rgba(14, 14, 14, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.45);
  border-radius: 16px;
  padding: 40px 36px 36px;
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
}

/* Progress bar */
.quiz-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}

.quiz-progress-bar {
  height: 100%;
  width: 0%;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 2px;
  transition: width 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.quiz-progress-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.2px;
  margin-bottom: 32px;
}

/* Step */
.quiz-step {
  animation: quizFadeIn 240ms ease both;
}

.quiz-step--hidden {
  display: none;
}

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

/* Question */
.quiz-q {
  font-size: 20px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.4px;
  color: #ffffff;
  margin-bottom: 10px;
}

.quiz-hint {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 24px;
  line-height: 1.5;
}

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

.quiz-opt {
  width: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 14px 16px;
  color: rgba(255, 255, 255, 0.8);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.1px;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.quiz-opt:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.quiz-opt--selected {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

/* Nav buttons */
.quiz-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  gap: 12px;
}

.quiz-nav-back {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  background: transparent;
  border: none;
  padding: 10px 0;
  cursor: pointer;
  transition: color 150ms ease;
  letter-spacing: -0.1px;
}

.quiz-nav-back:hover:not(:disabled) {
  color: rgba(255, 255, 255, 0.75);
}

.quiz-nav-back:disabled {
  opacity: 0.25;
  cursor: default;
}

.quiz-nav-next {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #0a0a0a;
  background: #ffffff;
  border: none;
  border-radius: 9px;
  padding: 11px 28px;
  cursor: pointer;
  transition: background 150ms ease, opacity 150ms ease;
  letter-spacing: -0.2px;
}

.quiz-nav-next:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.88);
}

.quiz-nav-next:disabled {
  opacity: 0.28;
  cursor: default;
}

/* Result screen */
.quiz-result {
  animation: quizFadeIn 300ms ease both;
}

.quiz-result-strategy {
  font-size: 40px;
  font-weight: 780;
  letter-spacing: -1.5px;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.1;
}

.quiz-result-rationale {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 24px;
}

.quiz-result-pros {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-result-pros li {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.quiz-result-pros li::before {
  content: "--";
  position: absolute;
  left: 0;
  color: rgba(255, 255, 255, 0.3);
}

.quiz-result-caveat {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
  margin-bottom: 32px;
  line-height: 1.5;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 16px;
}

.quiz-result-cta {
  display: block;
  width: 100%;
  text-align: center;
  background: #ffffff;
  color: #0a0a0a;
  font-family: inherit;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.3px;
  padding: 15px 24px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 150ms ease;
  margin-bottom: 14px;
}

.quiz-result-cta:hover {
  background: rgba(255, 255, 255, 0.88);
}

.quiz-result-retake {
  display: block;
  width: 100%;
  text-align: center;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 6px;
  transition: color 150ms ease;
}

.quiz-result-retake:hover {
  color: rgba(255, 255, 255, 0.65);
}

/* Responsive */
@media (max-width: 560px) {
  .quiz-card {
    padding: 28px 20px 24px;
    border-radius: 12px;
  }

  .quiz-q {
    font-size: 17px;
  }

  .quiz-result-strategy {
    font-size: 30px;
  }
}
