.knowledge-quiz {
    margin: 0 0 3rem;
    padding: clamp(1.25rem, 3vw, 2.5rem);
    border: 1px solid #d8d8d8;
    background: #f7f7f5;
}

.knowledge-quiz [hidden] {
    display: none !important;
}

.knowledge-quiz__intro {
    margin-bottom: 1.5rem;
}

.knowledge-quiz__intro > :last-child,
.knowledge-quiz__question-content > :last-child,
.knowledge-quiz__choice label > :last-child,
.knowledge-quiz__feedback > :last-child {
    margin-bottom: 0;
}

.knowledge-quiz__question {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.knowledge-quiz__question legend {
    margin-bottom: 1rem;
    font-weight: 700;
}

.knowledge-quiz__question-content {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.knowledge-quiz__answers {
    display: grid;
    gap: 0.75rem;
}

.knowledge-quiz__choice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
    padding: 0.8rem 1rem;
    border: 1px solid #d2d2d2;
    background: #fff;
}

.knowledge-quiz__choice input {
    margin-top: 0.35rem;
}

.knowledge-quiz__choice label {
    cursor: pointer;
}

.knowledge-quiz__textarea-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.knowledge-quiz__textarea {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.knowledge-quiz__navigation,
.knowledge-quiz__result {
    margin-top: 1.5rem;
}

.knowledge-quiz__button {
    cursor: pointer;
}

.knowledge-quiz__message {
    min-height: 1.5em;
    margin-top: 1rem;
    color: #8a2e20;
}

.knowledge-quiz.is-finished .knowledge-quiz__question {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #d8d8d8;
}

.knowledge-quiz__choice.is-correct-answer {
    border-color: #398548;
    background: #edf8ef;
}

.knowledge-quiz__choice.is-wrong-answer {
    border-color: #b03a2e;
    background: #fcedeb;
}

.knowledge-quiz__choice.is-selected label {
    font-weight: 700;
}

.knowledge-quiz__question-result {
    margin: 1rem 0 0;
    font-weight: 700;
}

.knowledge-quiz__question.is-correct .knowledge-quiz__question-result {
    color: #276a35;
}

.knowledge-quiz__question.is-incorrect .knowledge-quiz__question-result,
.knowledge-quiz__question.is-unanswered .knowledge-quiz__question-result {
    color: #8a2e20;
}

.knowledge-quiz__feedback {
    margin-top: 1rem;
    padding: 1rem;
    background: #fff;
}

.knowledge-quiz__score {
    font-size: 1.125rem;
    font-weight: 700;
}
