/*
 * Your original CSS directly copied here.
 * Wrapped within .wp-enhanced-quiz-wrapper to minimize conflicts.
 */
.wp-enhanced-quiz-wrapper * { box-sizing: border-box; }
/* Removed global body styles as they interfere with WordPress themes */
/* body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
} */

.wp-enhanced-quiz-wrapper {
    /* Add a border or background to the wrapper if needed for visual separation */
    /* border: 1px solid #ccc; */
    /* padding: 20px; */
    /* background-color: #f9f9f9; */
    /* margin-bottom: 30px; */
}


.wp-enhanced-quiz-wrapper .quiz-container {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  max-width: 900px; /* Add max-width here if you want it specific to the quiz container */
  margin: 20px auto; /* Center the quiz container within its wrapper */
}

.wp-enhanced-quiz-wrapper #timer {
  font-size: 24px;
  font-weight: bold;
  color: #e74c3c;
  text-align: center;
  background: #fff3f3;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 2px solid #e74c3c;
}

.wp-enhanced-quiz-wrapper #progress {
  margin-bottom: 20px;
  text-align: center;
  font-weight: bold;
  color: #2c3e50;
}

.wp-enhanced-quiz-wrapper .progress-bar {
  width: 100%;
  height: 10px;
  background: #ecf0f1;
  border-radius: 5px;
  margin: 10px 0;
  overflow: hidden;
}

.wp-enhanced-quiz-wrapper .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3498db, #2ecc71);
  width: 0%;
  transition: width 0.3s ease;
}

.wp-enhanced-quiz-wrapper .question-container {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 5px solid #3498db;
}

.wp-enhanced-quiz-wrapper .question-text {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #2c3e50;
}

.wp-enhanced-quiz-wrapper .option {
  display: block;
  padding: 12px 15px;
  margin: 8px 0;
  background: white;
  border: 2px solid #bdc3c7;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.wp-enhanced-quiz-wrapper .option:hover {
  background: #ecf0f1;
  border-color: #3498db;
}

.wp-enhanced-quiz-wrapper .option.selected {
  background: #e3f2fd;
  border-color: #2196f3;
}

.wp-enhanced-quiz-wrapper .option.correct {
  background-color: #d4edda;
  border-color: #28a745;
  color: #155724;
}

.wp-enhanced-quiz-wrapper .option.incorrect {
  background-color: #f8d7da;
  border-color: #dc3545;
  color: #721c24;
}

.wp-enhanced-quiz-wrapper .option.not-selected {
  opacity: 0.6;
}

/* New style for unanswered review questions */
.wp-enhanced-quiz-wrapper .review-question.unanswered {
  border-left-color: #ffc107; /* Yellow/Orange border */
  background-color: #fff9e6; /* Light yellow background */
  color: #856404; /* Darker text for contrast */
}


.wp-enhanced-quiz-wrapper .navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid #ecf0f1;
}

.wp-enhanced-quiz-wrapper button {
  padding: 12px 24px;
  background: #3498db;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.2s ease;
}

.wp-enhanced-quiz-wrapper button:hover {
  background: #2980b9;
}

.wp-enhanced-quiz-wrapper button:disabled {
  background: #bdc3c7;
  cursor: not-allowed;
}

.wp-enhanced-quiz-wrapper .submit-btn {
  background: #e74c3c;
}

.wp-enhanced-quiz-wrapper .submit-btn:hover {
  background: #c0392b;
}

.wp-enhanced-quiz-wrapper .reset-btn {
  background: #95a5a6;
}

.wp-enhanced-quiz-wrapper .reset-btn:hover {
  background: #7f8c8d;
}

.wp-enhanced-quiz-wrapper #result {
  margin-top: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  display: none;
}

.wp-enhanced-quiz-wrapper .score-summary {
  text-align: center;
  margin-bottom: 30px;
}

.wp-enhanced-quiz-wrapper .chart-container {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.wp-enhanced-quiz-wrapper .review-question {
  background: white;
  padding: 20px;
  margin: 15px 0;
  border-radius: 8px;
  border-left: 5px solid #3498db;
}

.wp-enhanced-quiz-wrapper .review-question.correct {
  border-left-color: #28a745;
}

.wp-enhanced-quiz-wrapper .review-question.incorrect {
  border-left-color: #dc3545;
}

.wp-enhanced-quiz-wrapper .time-taken {
  font-size: 12px;
  color: #6c757d;
  font-style: italic;
}

.wp-enhanced-quiz-wrapper .explanation-text {
    font-size: 0.95em;
    color: #333;
    background-color: #eaf7ff;
    border-left: 3px solid #63b3ed;
    padding: 8px 12px;
    margin-top: 10px;
    border-radius: 4px;
}

@media (max-width: 600px) {
  .wp-enhanced-quiz-wrapper .quiz-container { padding: 20px; }
  .wp-enhanced-quiz-wrapper .navigation { flex-direction: column; gap: 10px; }
  .wp-enhanced-quiz-wrapper button { width: 100%; }
}

/* Hide the radio button itself, but keep its functionality */
.wp-enhanced-quiz-wrapper .option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none; /* Make it not clickable directly */
}