/* Quiz Specific Styles */

.quiz-section {
    padding: 80px 0;
    /* background: #fdfdfd; */
    min-height: 80vh;
}

.quiz-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    transition: var(--transition-normal);
}

/* Stage 1: Registration Form */
.quiz-form-group {
    margin-bottom: 25px;
}

.quiz-form-label {
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 10px;
    display: block;
}

.quiz-input,
.quiz-select {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition-fast);
    font-family: var(--font-primary);
}

.quiz-input:focus,
.quiz-select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(186, 55, 66, 0.1);
}

.quiz-start-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quiz-start-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.quiz-start-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Stage 2: The Quiz */
.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.quiz-timer {
    font-weight: bold;
    color: var(--primary-color);
}

.progress-container {
    width: 100%;
    height: 6px;
    background: #eee;
    border-radius: 10px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    transition: width 0.5s ease;
}

.question-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-bg);
    margin-bottom: 30px;
    line-height: 1.4;
    font-family: var(--font-heading);
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.option-btn {
    background: var(--white);
    border: 2px solid #eee;
    padding: 15px 20px;
    border-radius: var(--radius-md);
    text-align: left;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 1rem;
    position: relative;
    padding-left: 50px;
}

.option-btn::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    border: 2px solid #ccc;
    border-radius: 50%;
    transition: all 0.2s;
}

.option-btn:hover {
    background: #f9f9f9;
    border-color: #ddd;
}

.option-btn.selected {
    border-color: var(--secondary-color);
    background: rgba(22, 75, 132, 0.05);
}

.option-btn.selected::before {
    border-color: var(--secondary-color);
    background: var(--secondary-color);
    box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--secondary-color);
}

.quiz-nav-btns {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.btn-next {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 10px 30px;
    border-radius: 5px;
    cursor: pointer;
    margin-left: auto;
}

/* Stage 3: Results */
.result-score {
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary-color);
    font-family: var(--font-heading);
    margin: 20px 0;
}

.result-message {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.score-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 10px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    position: relative;
}

.donut-chart {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: conic-gradient(var(--primary-color) 0% 0%, #eee 0% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.donut-inner {
    width: 160px;
    height: 160px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.career-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 30px;
    border-radius: 15px;
    height: 100%;
    text-align: left;
}

.certificate-box {
    background: #fff;
    border: 1px solid #eee;
    padding: 30px;
    border-radius: 15px;
    height: 100%;
}

.discount-highlight {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    color: #ba3742;
    margin: 10px 0;
}

/* Animation */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .quiz-section {
        padding: 40px 15px;
    }

    .quiz-card {
        padding: 25px 20px;
    }

    .question-text {
        font-size: 1.25rem;
        margin-bottom: 20px;
    }

    .option-btn {
        padding: 12px 15px 12px 45px;
        font-size: 0.95rem;
    }

    .option-btn::before {
        left: 15px;
    }

    .result-score {
        font-size: 3rem;
    }

    .score-circle,
    .donut-chart {
        width: 160px;
        height: 160px;
    }

    .donut-inner {
        width: 130px;
        height: 130px;
    }

    .quiz-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .progress-container {
        margin-left: 0 !important;
        margin-top: 10px;
    }

    .quiz-nav-btns {
        flex-direction: column-reverse;
        gap: 15px;
    }

    .btn-next {
        width: 100%;
        margin-left: 0;
        padding: 15px;
    }

    .career-card,
    .certificate-box {
        margin-bottom: 20px;
        padding: 20px;
    }

    .discount-highlight {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .quiz-card {
        padding: 20px 15px;
    }

    .question-text {
        font-size: 1.15rem;
    }

    .quiz-start-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
}