/* ===============================
   PAGE CENTERING
================================ */

.mulham-quiz-wrapper {
    max-width: 720px;
    margin: 120px auto;
    padding: 24px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    box-sizing: border-box;
    height: 30px;
}

/* Elementor full-width fix */
.elementor-section .mulham-quiz-wrapper {
    margin-left: auto;
    margin-right: auto;
}

/* ===============================
   HEADER (QUESTION COUNT + TIMER)
================================ */

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

#timer {
    background: #242A56;
    color: #eee;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
}

/* ===============================
   QUESTION
================================ */

#question {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 20px;
    color: #1f2937;
}

/* ===============================
   OPTIONS
================================ */

#options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.option-btn {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    text-align: center;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #6878D6;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-btn:hover {
    border-color: #242A56;
}

/* Correct & Wrong states */
.option-btn.correct {
    background: #22c55e;
    color: #ffffff;
    border-color: #22c55e;
}

.option-btn.wrong {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
}

.option-btn:disabled {
    cursor: not-allowed;
    opacity: 0.95;
}

/* ===============================
   NEXT BUTTON
================================ */

#next-btn {
    margin-top: 24px;
    padding: 14px;
    width: 100%;
    border-radius: 12px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    background: #4f46e5;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s ease;
}

#next-btn:hover:not(:disabled) {
    background: #4338ca;
}

#next-btn:disabled {
    background: #a5b4fc;
    cursor: not-allowed;
}

/* ===============================
   RESULT SCREEN
================================ */

.quiz-result {
    text-align: center;
    padding: 30px 20px;
}

.quiz-result h2 {
    font-size: 24px;
    margin-bottom: 12px;
    color: #111827;
}

.quiz-result p {
    font-size: 18px;
    color: #374151;
}

/* ===============================
   RESULT BUTTONS
================================ */

.quiz-result-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.quiz-result-buttons button {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    background: #111827;
    color: #ffffff;
    transition: background 0.2s ease;
}

.quiz-result-buttons button:hover {
    background: #1f2937;
}

.quiz-bottom-buttons {
  display: flex;
  gap: 12px;
  margin-top: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.quiz-bottom-buttons button {
  padding: 10px 18px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background: #242A56;
  color: #fff;
  margin:  50px 40px 0px 30px;
}

.quiz-bottom-buttons button:hover {
  background: #6878D6;
}

.quiz-progress-bar {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 15px;
}

.quiz-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4f46e5, #22c55e);
  transition: width 0.4s ease;
  background-color: #7c3aed;;
}

.quiz-result {
  margin-top: 20px;
  text-align: center;
}

.hidden {
  display: none !important;
}


/* ===============================
   MOBILE RESPONSIVE
================================ */

@media (max-width: 600px) {
    .mulham-quiz-wrapper {
        margin: 30px 12px;
        padding: 18px;
    }

    #question {
        font-size: 18px;
    }

    .option-btn {
        font-size: 15px;
        padding: 12px;
    }
}














