#quiz-modal {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--navy);
  color: white;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

#quiz-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.quiz-header {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: var(--mint);
  width: 0%;
  transition: width 0.3s ease;
}

.quiz-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

.quiz-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  max-width: 500px;
  margin: 0 auto;
  width: 100%;
}

.quiz-question-title {
  font-family: 'Lora', serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

.quiz-option {
  background: rgba(255,255,255,0.05);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 20px;
  font-size: 1.1rem;
  font-weight: 500;
  color: white;
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.quiz-option:hover {
  background: rgba(255,255,255,0.1);
}

.quiz-option.selected {
  border-color: var(--mint);
  background: rgba(168, 237, 224, 0.1);
}

.quiz-next-btn {
  margin-top: 30px;
  background: var(--mint);
  color: var(--navy);
  border: none;
  border-radius: 25px;
  padding: 15px 40px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: opacity 0.2s;
}

.quiz-next-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.quiz-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
}

.quiz-spinner {
  width: 60px;
  height: 60px;
  border: 5px solid rgba(168, 237, 224, 0.2);
  border-top-color: var(--mint);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin { 100% { transform: rotate(360deg); } }
