.header p {
    text-align: center;
    margin: 5px 0;
    font-size: 1.1em;
}

.back-button {
    display: block;
    margin: 15px auto 0;
    padding: 10px 25px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s;
}

.back-button:hover {
    background: #c0392b;
}

.question {
    display: none;
    background: white;
    margin: 20px 0;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #3498db;
}

.question.active {
    display: block;
}

.question-counter {
    text-align: center;
    margin-bottom: 10px;
    color: #7f8c8d;
}

.question-image {
    text-align: center;
    margin: 20px 0;
}

.question-image img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.options {
    margin: 20px 0;
}

.option {
    margin: 12px 0;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #e9ecef;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

.option:hover {
    background: #e9ecef;
    border-color: #3498db;
}

.option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.option label {
    cursor: pointer;
    font-size: 1em;
    display: block;
    margin: -12px;
    padding: 12px;
    padding-left: 40px;
}

.option input[type="radio"]+label::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #bdc3c7;
    border-radius: 50%;
    background: white;
    transition: all 0.3s;
}

.option input[type="radio"]:checked+label::before {
    border-color: #3498db;
    background: #3498db;
    box-shadow: inset 0 0 0 4px white;
}

.option input[type="radio"]:checked+label {
    background: #e3f2fd;
    border-color: #3498db;
}

.option:hover input[type="radio"]+label::before {
    border-color: #3498db;
}

.progress {
    text-align: center;
    margin: 10px 0;
    font-weight: bold;
    color: #2c3e50;
}

.progress-dots {
    text-align: center;
    margin: 15px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

.progress-dot {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid #bdc3c7;
    background: white;
    transition: all 0.3s;
}

.progress-dot.correct {
    background: #27ae60;
    color: white;
    border-color: #27ae60;
}

.progress-dot.incorrect {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

.progress-dot.skipped {
    background: #f39c12;
    color: white;
    border-color: #f39c12;
}

.progress-dot.current {
    border-color: #3498db;
    background: #3498db;
    color: white;
    transform: scale(1.1);
}

.progress-dot:hover {
    transform: scale(1.05);
}

.navigation {
    margin: 20px 0;
    text-align: center;
}

.nav-button {
    padding: 10px 20px;
    margin: 0 5px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.nav-button:hover {
    background: #2980b9;
}

.nav-button:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

.nav-button.skip {
    background: #f39c12;
}

.nav-button.skip:hover {
    background: #e67e22;
}

.nav-button.submit {
    background: #27ae60;
}

.nav-button.submit:hover {
    background: #219a52;
}

.feedback {
    margin: 15px 0;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

.feedback.correct {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.feedback.incorrect {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.result {
    background: white;
    padding: 30px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.pass-fail {
    text-align: center;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
    font-size: 1.5em;
    font-weight: bold;
}

.pass {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.fail {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.error-count {
    text-align: center;
    font-size: 1.2em;
    margin: 15px 0;
    padding: 10px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
}

.results-summary {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

.correct-answer {
    color: #27ae60;
    font-weight: bold;
}

.incorrect-answer {
    color: #e74c3c;
    font-weight: bold;
}

.skipped-answer {
    color: #f39c12;
    font-weight: bold;
}

/* Стили для отображения результатов */
.result-question {
    background: #f8f9fa;
    border-left: 4px solid #6c757d;
    margin-bottom: 30px;
}

.result-options {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

.result-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin: 8px 0;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    background: white;
    transition: all 0.3s ease;
}

.option-icon {
    font-size: 1.2em;
    margin-right: 12px;
    width: 24px;
    text-align: center;
}

.option-text {
    flex: 1;
    font-size: 1em;
}

.answer-label {
    margin-left: 15px;
    font-size: 0.9em;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

/* Правильный ответ пользователя */
.correct-user-answer {
    background: #d4edda !important;
    border: 2px solid #28a745 !important;
    color: #155724;
}

.correct-label {
    background: #28a745;
    color: white;
}

/* Правильный ответ (но не выбран пользователем) */
.correct-answer-option {
    background: #e8f5e8 !important;
    border: 2px solid #28a745 !important;
    color: #155724;
}

/* Неправильный ответ пользователя */
.incorrect-user-answer {
    background: #f8d7da !important;
    border: 2px solid #dc3545 !important;
    color: #721c24;
}

.incorrect-label {
    background: #dc3545;
    color: white;
}

/* Обычный вариант */
.neutral-answer {
    background: #f8f9fa;
    color: #495057;
}

/* Дополнительная информация */
.question-info {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
}

.skipped-info {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.incorrect-info {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.btn__replace{
    border-radius: 5px;
    background: #28a745;
    color: #fff;
    margin: 15px auto 0;
    padding: 10px 25px;
}


@media (max-width: 768px) {
    /* planshet */

    .question {
        padding: 15px;
        margin: 15px 0;
    }

    .option {
        padding: 10px;
    }

    .option label {
        padding: 10px;
        padding-left: 35px;
    }

    .option input[type="radio"]+label::before {
        left: 10px;
        width: 18px;
        height: 18px;
    }

    .progress-dot {
        width: 30px;
        height: 30px;
        font-size: 10px;
    }

    .nav-button {
        padding: 8px 16px;
        font-size: 12px;
    }

    .result-option {
        padding: 10px;
    }

    .option-icon {
        font-size: 1em;
        margin-right: 8px;
    }

    .answer-label {
        font-size: 0.8em;
        margin-left: 10px;
    }
}

@media (max-width: 479px) {

    /* mob */
    .back-button {
        margin: 0 auto;
        font-size: .8rem;
    }

    form {
        padding-bottom: .3rem;
    }

    .pass-fail, .error-count {
        padding: 10px;
        margin: 10px 0;
        font-size: 1.2em;
    }
    .answer-label{
        display: none;
    }
    .btn__replace{
        margin-bottom: 10px;
        padding: 10px;
    }
}