/* Quiz page styles */
.header {
  gap: var(--space-md);
}

.quiz-title {
  flex-grow: 1;
  text-align: center;
  font-size: clamp(1.20rem, 2.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-success);
  margin: 0;
}

.quiz-nav-placeholder {
  width: var(--logo-max-width);
}

.quiz-page {
  min-height: 100vh;
  padding-top: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: center;
}

.quiz-container {
  max-width: 620px;
  width: 100%;
  margin: 0 0 auto;
  padding: var(--space-2xl) var(--space-xl);
}

.quiz-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: var(--space-2xl);
}

.quiz-progress-label {
  --arrow-depth: 10px;

  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem calc(0.65rem + var(--arrow-depth)) 0.55rem 0.65rem;
  border: 0;
  clip-path: polygon(0 0, calc(100% - var(--arrow-depth)) 0, 100% 50%, calc(100% - var(--arrow-depth)) 100%, 0 100%);
  background: var(--color-bg-alt-2);
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.quiz-progress-label:not(:first-child) {
  padding-left: calc(0.65rem + var(--arrow-depth) + 0.15rem);
  clip-path: polygon(0 0, calc(100% - var(--arrow-depth)) 0, 100% 50%, calc(100% - var(--arrow-depth)) 100%, 0 100%, var(--arrow-depth) 50%);
}

.quiz-progress-label.active {
  background: var(--color-primary);
  color: var(--color-white);
}

.quiz-progress-label.done {
  background: var(--color-success);
  color: var(--color-white);
}

.quiz-step {
  display: none;
  animation: quizFadeIn 0.35s ease-out;
}

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

@keyframes quizFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quiz-question {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 var(--space-sm);
  line-height: 1.3;
}

.quiz-subtitle {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-xl);
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.quiz-option {
  display: block;
  width: 100%;
  padding: var(--space-lg) var(--space-xl);
  background: var(--color-bg-alt);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.quiz-option:hover {
  border-color: var(--color-primary);
  background: rgba(9, 87, 255, 0.06);
  transform: translateY(-1px);
}

.quiz-option-desc {
  display: block;
  margin-top: 4px;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.quiz-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-xl);
  padding: var(--space-sm) 0;
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s;
}

.quiz-back:hover {
  color: var(--color-primary);
}
