/* ===================================
   Quiz Wizard Styles
======================================*/

.quiz-wizard-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* Progress Bar and Counter */
.quiz-progress {
    margin-bottom: 30px;
}

.progress-counter {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
    text-align: right;
    font-weight: 500;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background-color: #007bff;
    border-radius: 4px;
    transition: width 0.4s ease-in-out;
}

/* Quiz Steps */
.quiz-step {
    display: none;
    animation: fadeIn 0.5s;
}

.quiz-step.active {
    display: block;
}

/* Animation for steps */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* New container for each question */
.question-group {
    margin-bottom: 25px;
    padding: 15px;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.question-group:last-of-type {
    margin-bottom: 0;
}

/* Question Styling (reusing from your existing theme if possible) */
.question-card {
    background-color: #f8f9fa;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #007bff;
    border-radius: 5px;
}

.question-card p {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Error state for validation */
.question-group.error .question-card {
    border-left-color: #dc3545; /* Red for error */
    background-color: #fff0f1;
}

/* Navigation Buttons */
.quiz-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.quiz-nav-btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border: 1px solid #007bff;
    background-color: #007bff;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.quiz-nav-btn.prev {
    background-color: transparent;
    color: #007bff;
}

.quiz-nav-btn:disabled {
    background-color: #fff;
    border-color: #0056b3;
    cursor: not-allowed;
}

.quiz-nav-btn.prev:hover:not(:disabled) {
    background-color: #007bff;
    color: #fff;
}

.quiz-nav-btn.next:hover:not(:disabled) {
    background-color: #0056b3;
    border-color: #0056b3;
}