.bike-quiz-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.quiz-question {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quiz-progress {
    font-weight: bold;
    margin-bottom: 10px;
}

.quiz-question img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
}

/* Defense against theme overrides: ensure quiz images are centered. */
.bike-quiz-container img.bike-quiz-img {
    display: block !important;
    float: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.answer-option {
    margin: 10px 0;
}

.answer-option {
    position: relative;
}

.answer-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.answer-option label {
    display: block;
    padding: 12px 12px;
    border-radius: 8px;
    cursor: pointer;
    background: #fff;
    border: 3px solid #dcdcde;
}

.answer-option input[type="radio"]:focus + label {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

.answer-option input[type="radio"]:checked + label {
    border-color: #2271b1;
    background: #f0f6fc;
}

.answer-option.bike-quiz-correct label {
    background: #e7f7ed;
    border-color: #2e8540;
}

.answer-option.bike-quiz-incorrect label {
    background: #fde8e8;
    border-color: #b32d2e;
}

.answer-option.bike-quiz-correct input[type="radio"]:checked + label {
    background: #e7f7ed;
    border-color: #2e8540;
}

.answer-option.bike-quiz-incorrect input[type="radio"]:checked + label {
    background: #fde8e8;
    border-color: #b32d2e;
}

.quiz-submit {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 14px 20px;
    border-radius: 4px;
    cursor: pointer;
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-size: 18px;
    font-weight: 600;
}

.quiz-next {
    margin-top: 12px;
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 14px 20px;
    border-radius: 4px;
    cursor: pointer;
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-size: 18px;
    font-weight: 600;
}

.quiz-explanation {
    margin-top: 15px;
    padding: 15px;
    background: #f0f6fc;
    border-radius: 4px;
}

.quiz-explanation img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
}

.quiz-feedback {
    margin-top: 15px;
    padding: 10px 15px;
    background: #f0f6fc;
    border-radius: 4px;
    font-weight: bold;
    border: 2px solid #dcdcde;
}

.quiz-feedback.is-correct {
    border-width: 4px;
    border-color: #2e8540;
}

.quiz-feedback.is-incorrect {
    border-width: 4px;
    border-color: #b32d2e;
}

.quiz-stats {
    margin-top: 20px;
}

.quiz-stats {
    display: none;
}

.quiz-stats-toggle {
    margin-top: 12px;
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.quiz-stats ul {
    list-style: none;
    padding: 0;
}

.quiz-stats li {
    margin-bottom: 10px;
}

.percentage-bar-container {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.percentage-bar {
    height: 20px;
    background: #4CAF50;
    margin-right: 10px;
    border-radius: 4px;
}

.quiz-end {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quiz-recap-item {
    margin-top: 16px;
    padding: 16px;
    border: 2px solid #dcdcde;
    border-radius: 8px;
}

.quiz-recap-title {
    font-weight: 700;
    margin-bottom: 8px;
}

.quiz-recap-stats-title {
    font-weight: 700;
    margin-top: 10px;
}

.quiz-recap-stats ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}

.quiz-recap-stats li {
    margin-bottom: 10px;
}

.quiz-recap-status {
    font-weight: 700;
}

.quiz-recap-status-good {
    color: #2e8540;
}

.quiz-recap-status-bad {
    color: #b32d2e;
}
