
/* Options container */
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

/* Individual option label */
.quiz-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background-color: #f9f6f0;
  border: 2px solid #d4c9b8;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.5;
  color: #3a2f24;
  transition: all 0.25s ease;
  position: relative;
  user-select: none;
}

/* Hover state */
.quiz-option:hover {
  background-color: #f3ece0;
  border-color: #b9a889;
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Radio input inside the option */
.quiz-option input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 2px solid #a89878;
  border-radius: 50%;
  background-color: #fff;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Radio checked state */
.quiz-option input[type="radio"]:checked {
  border-color: #7a5c2e;
  background-color: #7a5c2e;
}

/* Radio inner dot when checked */
.quiz-option input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #fff;
  transform: translate(-50%, -50%);
}

/* Selected option state */
.quiz-option.selected {
  background-color: #f5edd8;
  border-color: #7a5c2e;
  box-shadow: 0 0 0 3px rgba(122, 92, 46, 0.15);
}

/* Selected option hover */
.quiz-option.selected:hover {
  background-color: #f0e6cc;
  border-color: #5e4522;
}

/* Focus visible for accessibility */
.quiz-option:focus-within {
  outline: 2px solid #7a5c2e;
  outline-offset: 2px;
}

/* Question text above options */
.quiz-question-text {
  font-size: 1.1rem;
  line-height: 1.6;
  font-weight: 500;
  color: #2c241a;
  margin-bottom: 0.5rem;
}

/* Question heading */
#question-container h3 {
  color: #7a5c2e;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

/* Responsive adjustments for small screens */
@media (max-width: 480px) {
  .quiz-option {
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    gap: 0.6rem;
  }

  .quiz-option input[type="radio"] {
    width: 20px;
    height: 20px;
  }

  .quiz-option:hover {
    transform: none; /* disable shift on mobile */
  }
}
