/* ============================================================
   Cyber CEH Quiz — Stylesheet
   Mirrors the Security+ dark-card UI with CEH-specific additions:
   - .is-missed state (correct answer not selected in multi-select)
   - checkbox styling
   - multi-select badge on question header
   ============================================================ */

.ceh-quiz-wrap {
  max-width: 980px;
  margin: 24px auto;
  padding: 0 14px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #ffffff;
}

/* HEADER */

.ceh-quiz-header {
  margin-bottom: 18px;
}

.ceh-quiz-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #0f2a44;
}

.ceh-quiz-subtitle {
  margin-top: 6px;
  font-size: 14px;
  color: #334e68;
}

.ceh-quiz-domain {
  margin-top: 4px;
  font-size: 13px;
  color: #4a6fa5;
  font-weight: 600;
}

/* QUESTION CARD */

.ceh-card {
  background: #0f2a44;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  margin: 20px 0;
}

.ceh-qhead {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.ceh-qnum {
  font-size: 26px;
  font-weight: 800;
}

/* Multi-select badge shown next to question number */
.ceh-multi-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  background: rgba(255, 193, 7, 0.18);
  border: 1px solid rgba(255, 193, 7, 0.45);
  color: #ffc107;
  border-radius: 6px;
  padding: 3px 8px;
}

.ceh-qtext {
  color: rgba(255,255,255,0.92);
  line-height: 1.6;
  margin-bottom: 16px;
  font-size: 15px;
}

/* OPTIONS */

.ceh-options {
  display: grid;
  gap: 12px;
}

.ceh-option {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
  font-size: 15px;
}

.ceh-option:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-1px);
}

/* Hide native radio + checkbox visually */
.ceh-option input[type="radio"],
.ceh-option input[type="checkbox"] {
  display: none;
}

.ceh-option-text {
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
}

.ceh-letter {
  font-weight: 800;
  color: #ffffff;
}

.ceh-choice {
  font-weight: 600;
  color: rgba(255,255,255,0.92);
}

/* SELECTED STATE */

.ceh-option.is-selected {
  border-color: rgba(88,166,255,0.75);
  background: rgba(88,166,255,0.15);
}

/* CORRECT STATE */

.ceh-option.is-correct {
  border-color: rgba(46, 204, 113, 0.6);
  background: rgba(46, 204, 113, 0.15);
}

/* WRONG STATE (selected but incorrect) */

.ceh-option.is-wrong {
  border-color: rgba(231, 76, 60, 0.6);
  background: rgba(231, 76, 60, 0.15);
}

/* MISSED STATE (correct but not selected — multi-select only) */

.ceh-option.is-missed {
  border-color: rgba(255, 193, 7, 0.6);
  background: rgba(255, 193, 7, 0.10);
}

/* REVEAL SECTION */

.ceh-reveal {
  display: none;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.ceh-reveal.is-visible {
  display: block;
}

.ceh-correct-line {
  font-weight: 800;
  margin-bottom: 10px;
  color: #ffffff;
}

.ceh-explain-title {
  font-weight: 800;
  margin-bottom: 6px;
  color: #ffffff;
}

.ceh-explain-body {
  line-height: 1.6;
  margin-bottom: 12px;
  color: rgba(255,255,255,0.92);
}

.ceh-explain-wrong {
  margin: 0;
  padding-left: 18px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
}

/* ACTION BUTTONS */

.ceh-actions {
  display: flex;
  gap: 12px;
  margin: 18px 0 8px;
}

.ceh-btn {
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  color: #ffffff;
}

/* Submit */
.ceh-btn-primary {
  background: #0b4bd6;
  border-color: #0b4bd6;
}

.ceh-btn-primary:hover {
  background: #093db5;
}

/* Reset */
.ceh-btn-secondary {
  background: #1e3a5f;
  border-color: rgba(255,255,255,0.20);
}

.ceh-btn-secondary:hover {
  background: #244a78;
}

/* FOOTER */

.ceh-footer {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 14px;
  color: #0f2a44;
  margin-top: 10px;
  font-weight: 600;
}

.ceh-score {
  font-weight: 800;
  color: #0b4bd6;
}
