/* certification-exam-style.css */

.tool-header {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--white-color);
    border-bottom: 1px solid var(--border-color);
}

.tool-header h1 {
    margin: 0;
    font-size: 32px;
}

.tool-container {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 40px auto;
}

.step {
    display: none;
}

.step.active {
    display: block;
}

.step h3 {
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

.selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.selection-card {
    background-color: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.selection-card:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.selection-card i {
    font-size: 32px;
    display: block;
    margin-bottom: 15px;
}

.back-btn {
    display: inline-block;
    margin-top: 30px;
    background: none;
    border: none;
    color: var(--light-text-color);
    cursor: pointer;
    font-size: 14px;
}

.back-btn:hover {
    color: var(--primary-color);
}

.exam-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.exam-header h3 {
    text-align: left;
    margin: 0;
}

.exam-header .back-btn {
    margin-top: 0;
}

.quiz-container {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
}

.spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    color: var(--light-text-color);
}

.spinner {
    border: 6px solid var(--border-color);
    border-top: 6px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.question-text {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.7;
}

.choices-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.choice-btn {
    width: 100%;
    padding: 12px;
    text-align: left;
    font-size: 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--white-color);
    cursor: pointer;
    transition: background-color 0.2s;
}

.choice-btn:hover:not(:disabled) {
    background-color: #e9f5ff;
}

.choice-btn.correct {
    background-color: #e6fffa;
    border-color: #00796b;
    color: #00796b;
    font-weight: bold;
}

.choice-btn.incorrect {
    background-color: #fce4ec;
    border-color: #d81b60;
    color: #d81b60;
}

.choice-btn:disabled {
    cursor: not-allowed;
}

.answer-area {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.feedback {
    font-size: 20px;
    font-weight: bold;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

.feedback.correct {
    background-color: #e6fffa;
    color: #00796b;
}

.feedback.incorrect {
    background-color: #fce4ec;
    color: #d81b60;
}

.explanation h4 {
    margin: 0 0 10px 0;
}

.explanation p {
    margin: 0 0 20px 0;
    line-height: 1.8;
}

.tool-btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
}