.ek-exam-shell {
    color: #162033;
    font-family: inherit;
    margin: 0 auto;
    max-width: 980px;
    width: 100%;
}

.ek-exam-card {
    background: #ffffff;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    box-shadow: 0 18px 60px rgba(16, 32, 55, 0.10);
    overflow: hidden;
}

.ek-exam-card__header {
    background: linear-gradient(135deg, #0b5cab, #15803d);
    color: #ffffff;
    padding: 28px;
}

.ek-exam-card__header span {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.ek-exam-card__header h2 {
    color: #ffffff;
    font-size: 30px;
    line-height: 1.2;
    margin: 0;
}

.ek-exam-student-form {
    display: grid;
    gap: 24px;
    padding: 28px;
}

.ek-exam-student-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ek-exam-student-form label span,
.ek-exam-question legend {
    color: #172033;
    font-weight: 700;
}

.ek-exam-student-form input[type="text"] {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 16px;
    margin-top: 8px;
    min-height: 46px;
    padding: 10px 12px;
    width: 100%;
}

.ek-exam-questions {
    display: grid;
    gap: 18px;
}

.ek-exam-question {
    border: 1px solid #d7dee8;
    border-radius: 8px;
    margin: 0;
    padding: 18px;
}

.ek-exam-question legend {
    display: flex;
    gap: 10px;
    line-height: 1.45;
    padding: 0 8px;
}

.ek-exam-question legend span {
    align-items: center;
    background: #0b5cab;
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    flex: 0 0 28px;
    height: 28px;
    justify-content: center;
    line-height: 1;
    width: 28px;
}

.ek-exam-options {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.ek-exam-options label {
    align-items: flex-start;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    gap: 12px;
    padding: 13px;
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.ek-exam-options label:hover,
.ek-exam-options label:focus-within {
    background: #f7fbff;
    border-color: #0b5cab;
    box-shadow: 0 0 0 3px rgba(11, 92, 171, 0.10);
}

.ek-exam-options input {
    margin-top: 5px;
}

.ek-exam-options strong {
    color: #0b5cab;
    margin-right: 8px;
}

.ek-exam-submit {
    background: #15803d;
    border: 0;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 800;
    min-height: 50px;
    padding: 12px 18px;
}

.ek-exam-submit:hover,
.ek-exam-submit:focus {
    background: #116b33;
}

.ek-exam-result {
    border-bottom: 1px solid #d7dee8;
    padding: 18px 28px;
}

.ek-exam-result--success {
    background: #ecfdf3;
    color: #14532d;
}

.ek-exam-result--error {
    background: #fef2f2;
    color: #991b1b;
}

.ek-exam-result__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.ek-exam-result__stats span {
    background: rgba(255, 255, 255, 0.82);
    border-radius: 6px;
    padding: 10px 12px;
}

.ek-exam-result__stats b {
    display: block;
    font-size: 20px;
}

.ek-exam-empty {
    color: #475569;
    padding: 28px;
    text-align: center;
}

@media (max-width: 700px) {
    .ek-exam-card__header,
    .ek-exam-student-form {
        padding: 20px;
    }

    .ek-exam-card__header h2 {
        font-size: 24px;
    }

    .ek-exam-student-grid {
        grid-template-columns: 1fr;
    }

    .ek-exam-question {
        padding: 14px;
    }
}
