.efc-wrap {
    max-width: 760px;
    margin: 30px auto;
    padding: 28px;
    border: 1px solid #d8dde3;
    border-radius: 16px;
    background: #fff;
    box-sizing: border-box;
}

.efc-wrap * {
    box-sizing: border-box;
}

.efc-wrap h2 {
    margin-top: 0;
}

.efc-topline {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.efc-progress {
    width: 100%;
    height: 8px;
    background: #e7e9ed;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 24px;
}

.efc-progress-bar {
    height: 100%;
    width: 0;
    background: #2c6fbb;
    transition: width 0.25s ease;
}

.efc-category {
    display: inline-block;
    padding: 5px 10px;
    margin-bottom: 12px;
    border-radius: 20px;
    background: #eef3f8;
    font-size: 0.85rem;
    font-weight: 600;
}

.efc-question {
    font-size: clamp(1.25rem, 4vw, 1.7rem);
    line-height: 1.35;
    margin-bottom: 22px;
}

.efc-answers {
    display: grid;
    gap: 12px;
}

.efc-answer {
    width: 100%;
    text-align: left;
    padding: 14px 16px;
    border: 2px solid #cbd5df !important;
    background: #ffffff !important;
    color: #142f38 !important;
    -webkit-text-fill-color: #142f38 !important;
    opacity: 1 !important;
    border-radius: 10px;
    cursor: pointer;
    font: inherit;
    font-size: 1rem;
    line-height: 1.45;
    font-weight: 600;
    transition: 0.15s ease;
}

.efc-answer:hover:not(:disabled) {
    border-color: #2c6fbb;
    background: #f5f9fd;
}

.efc-answer.correct {
    border: 4px double #246b45 !important;
    background: #f4f7f5 !important;
    color: #142f38 !important;
    -webkit-text-fill-color: #142f38 !important;
    opacity: 1 !important;
}

.efc-answer.wrong {
    border: 4px dashed #8a3030 !important;
    background: #f7f3f3 !important;
    color: #142f38 !important;
    -webkit-text-fill-color: #142f38 !important;
    opacity: 1 !important;
}

.efc-answer:disabled {
    opacity: 1 !important;
    color: #142f38 !important;
    -webkit-text-fill-color: #142f38 !important;
    cursor: default;
}

.efc-answer.correct:disabled {
    color: #142f38 !important;
    -webkit-text-fill-color: #142f38 !important;
}

.efc-answer.wrong:disabled {
    color: #142f38 !important;
    -webkit-text-fill-color: #142f38 !important;
}

.efc-feedback {
    margin-top: 20px;
    padding: 16px;
    border-left: 4px solid #2c6fbb;
    background: #f4f6f8;
}

.efc-feedback strong {
    display: block;
    margin-bottom: 5px;
}

.efc-source {
    display: block;
    margin-top: 8px;
    opacity: 0.7;
    font-size: 0.85rem;
}

.efc-primary {
    border: 0;
    border-radius: 9px;
    padding: 12px 20px;
    background: #1e5f99;
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.efc-primary:hover {
    filter: brightness(0.92);
}

.efc-next {
    margin-top: 18px;
}

.efc-grade {
    display: flex;
    width: 105px;
    height: 105px;
    margin: 0 auto 20px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #1e5f99;
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
}

.efc-result {
    text-align: center;
}

.efc-score {
    font-size: 1.25rem;
    font-weight: 600;
}

.efc-timer-warning {
    color: #b3261e;
}

@media (max-width: 600px) {
    .efc-wrap {
        margin: 15px 0;
        padding: 20px 16px;
    }

    .efc-topline {
        font-size: 0.9rem;
    }
}

.efc-wrap,
.efc-wrap p,
.efc-wrap h2,
.efc-feedback,
.efc-feedback div,
.efc-source,
.efc-progress-text,
.efc-timer {
    color: #142f38;
}

.efc-primary {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}


/* Accessibility: correct/wrong state is never conveyed by colour alone. */
.efc-answer-state {
    display: block;
    margin-top: 8px;
    padding-top: 7px;
    border-top: 1px solid currentColor;
    color: #142f38 !important;
    -webkit-text-fill-color: #142f38 !important;
    font-size: 0.82rem;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.efc-answer.correct .efc-answer-state::first-letter,
.efc-answer.wrong .efc-answer-state::first-letter {
    font-size: 1.05rem;
}

.efc-answer.correct {
    position: relative;
}

.efc-answer.wrong {
    position: relative;
}

/* Additional non-colour cue: different border pattern. */
.efc-answer.correct {
    outline: 2px solid transparent;
}

.efc-answer.wrong {
    outline: 2px dotted #142f38;
    outline-offset: 2px;
}

@media (max-width: 600px) {
    .efc-answer-state {
        font-size: 0.78rem;
    }
}
