.qcsc-exam-form,
.qcsc-exam-card {
    max-width: 1040px;
    margin: 24px 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: none;
    overflow: hidden;
    color: #263238;
    font-family: inherit;
}

.qcsc-exam-form h2,
.qcsc-exam-card h2 {
    margin: 0;
    padding: 24px 28px;
    border-top: 4px solid #ff641f;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(214, 216, 224, 0.68);
    color: #075b4b;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0;
}

.qcsc-exam-section {
    padding: 24px 28px 28px;
    border-bottom: 12px solid rgba(235, 237, 243, 0.92);
}

.qcsc-exam-modal {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.46);
}

.qcsc-exam-modal-box {
    width: min(520px, 100%);
    border-top: 5px solid #ff641f;
    background: #fff;
    padding: 24px;
    color: #263238;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.qcsc-exam-modal-box h3 {
    margin: 0 0 12px;
    color: #075b4b;
    font-size: 22px;
    font-weight: 800;
}

.qcsc-exam-modal-box ul {
    margin: 0 0 20px 18px;
    padding: 0;
}

.qcsc-exam-modal-button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    border: 0;
    padding: 9px 18px;
    background: #075b4b;
    color: #fff;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
}

.qcsc-exam-modal-button:hover {
    background: #ff641f;
    color: #fff;
}

.qcsc-exam-section:last-of-type {
    border-bottom: 0;
}

.qcsc-exam-section-header {
    position: relative;
    margin: 0 0 18px;
    padding: 13px 18px 14px;
    border-bottom: 0;
    background: rgba(214, 216, 224, 0.72);
    text-align: left;
}

.qcsc-exam-section-header::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    border-radius: 0;
    background: #ff641f;
    box-shadow: none;
}

.qcsc-exam-section-header h3 {
    margin: 0;
    color: #ff641f;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0;
}

.qcsc-exam-section-header p {
    margin: 4px 0 0;
    color: #075b4b;
    font-weight: 700;
}

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

.qcsc-exam-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    color: #075b4b;
    font-weight: 700;
}

.qcsc-exam-field input,
.qcsc-exam-field select,
.qcsc-exam-field textarea {
    width: 100%;
    max-width: 100%;
    min-height: 42px;
    border: 1px solid rgba(7, 91, 75, 0.18);
    border-radius: 0;
    padding: 10px 12px;
    font: inherit;
    font-weight: 400;
    background: rgba(255, 255, 255, 0.94);
    color: #1f2933;
}

.qcsc-exam-field input:focus,
.qcsc-exam-field select:focus,
.qcsc-exam-field textarea:focus {
    border-color: #075b4b;
    box-shadow: 0 0 0 3px rgba(7, 91, 75, 0.12);
    outline: 0;
}

.qcsc-exam-field textarea {
    min-height: 128px;
}

.qcsc-exam-field-full {
    grid-column: 1 / -1;
}

.qcsc-exam-button {
    min-height: 42px;
    margin: 24px 28px 28px;
    border: 0;
    border-radius: 0;
    padding: 12px 22px;
    background: #075b4b;
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
}

.qcsc-exam-button:hover {
    background: #ff641f;
}

.qcsc-exam-help,
.qcsc-exam-notice {
    color: #505a64;
}

.qcsc-status {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 13px;
    font-weight: 700;
}

.qcsc-status-pending {
    background: rgba(255, 100, 31, 0.13);
    color: #ff641f;
}

.qcsc-status-approved {
    background: rgba(7, 91, 75, 0.12);
    color: #075b4b;
}

.qcsc-status-rejected {
    background: #fde7e9;
    color: #a4262c;
}

.qcsc-exam-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
}

.qcsc-exam-tabs a {
    border: 1px solid rgba(7, 91, 75, 0.18);
    border-radius: 0;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    color: #075b4b;
    font-weight: 700;
}

.qcsc-exam-tabs a.active {
    border-color: #075b4b;
    background: #075b4b;
    color: #fff;
}

.qcsc-exam-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.qcsc-exam-actions form {
    margin: 0;
}

.qcsc-exam-details summary {
    cursor: pointer;
    font-weight: 700;
}

.qcsc-exam-details dl {
    display: grid;
    grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
    gap: 8px 16px;
    margin: 16px 0 4px;
}

.qcsc-exam-details dt {
    font-weight: 700;
}

.qcsc-exam-details-heading {
    grid-column: 1 / -1;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid #e6e9ed;
    color: #ff641f;
    font-size: 15px;
    text-transform: uppercase;
}

.qcsc-exam-details dd {
    margin: 0;
}

@media (max-width: 720px) {
    .qcsc-exam-grid {
        grid-template-columns: 1fr;
    }

    .qcsc-exam-form,
    .qcsc-exam-card {
        border-radius: 6px;
    }

    .qcsc-exam-form h2,
    .qcsc-exam-card h2,
    .qcsc-exam-section {
        padding: 18px;
    }

    .qcsc-exam-details dl {
        grid-template-columns: 1fr;
    }
}
