.post-exam-feedback-lock {
    overflow: hidden;
}

.post-exam-feedback-overlay {
    position: fixed;
    inset: 0;
    z-index: 10080;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background:
        radial-gradient(circle at 20% 15%, rgba(25, 200, 161, 0.22), transparent 28%),
        rgba(12, 24, 32, 0.78);
    backdrop-filter: blur(6px);
}

.post-exam-feedback-overlay.is-open {
    display: flex;
}

.post-exam-feedback-modal {
    width: min(680px, 100%);
    max-height: min(92vh, 820px);
    overflow-y: auto;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 28px 80px rgba(2, 10, 18, 0.36);
}

.post-exam-feedback-header {
    position: relative;
    padding: 28px 30px 24px;
    background: linear-gradient(135deg, #173b35 0%, #108a74 52%, #19c8a1 100%);
    color: #ffffff;
    overflow: hidden;
}

.post-exam-feedback-header::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -54px;
    top: -58px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.post-exam-feedback-badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.post-exam-feedback-header h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 12px;
    color: #ffffff;
    font-size: clamp(24px, 4vw, 34px);
    line-height: 1.18;
}

.post-exam-feedback-message {
    position: relative;
    z-index: 1;
    margin: 0;
    color: rgba(255, 255, 255, 0.94);
    line-height: 1.7;
    font-size: 15px;
}

.post-exam-feedback-body {
    padding: 26px 30px 30px;
}

.post-exam-feedback-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid #d9eee8;
    border-radius: 14px;
    background: #f2fffb;
    color: #315e56;
    font-size: 13px;
    line-height: 1.55;
}

.post-exam-feedback-note i {
    margin-top: 2px;
    color: #0f8f78;
}

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

.post-exam-feedback-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.post-exam-feedback-field label {
    color: #173b35;
    font-size: 13px;
    font-weight: 800;
}

.post-exam-feedback-field input,
.post-exam-feedback-field textarea {
    width: 100%;
    border: 1px solid #cfe5df;
    border-radius: 14px;
    background: #fbfffd;
    color: #173b35;
    font: inherit;
    outline: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.post-exam-feedback-field input {
    min-height: 48px;
    padding: 0 14px;
}

.post-exam-feedback-field textarea {
    min-height: 138px;
    resize: vertical;
    padding: 14px;
    line-height: 1.65;
}

.post-exam-feedback-field input:focus,
.post-exam-feedback-field textarea:focus {
    border-color: #19c8a1;
    box-shadow: 0 0 0 4px rgba(25, 200, 161, 0.14);
}

.post-exam-feedback-help {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #68837d;
    font-size: 12px;
}

.post-exam-feedback-error,
.post-exam-feedback-success {
    display: none;
    margin: 16px 0 0;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.55;
}

.post-exam-feedback-error {
    border: 1px solid #fecaca;
    background: #fff1f2;
    color: #b91c1c;
}

.post-exam-feedback-success {
    border: 1px solid #b7ead9;
    background: #ecfdf5;
    color: #0f7f67;
}

.post-exam-feedback-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    margin-top: 20px;
}

.post-exam-feedback-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 26px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #173b35 0%, #19c8a1 100%);
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 16px 28px rgba(25, 200, 161, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-exam-feedback-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 34px rgba(25, 200, 161, 0.34);
}

.post-exam-feedback-submit:disabled {
    cursor: not-allowed;
    opacity: 0.72;
    transform: none;
}

@media (max-width: 640px) {
    .post-exam-feedback-modal {
        border-radius: 18px;
    }

    .post-exam-feedback-header,
    .post-exam-feedback-body {
        padding-left: 20px;
        padding-right: 20px;
    }

    .post-exam-feedback-grid {
        grid-template-columns: 1fr;
    }

    .post-exam-feedback-actions,
    .post-exam-feedback-submit {
        width: 100%;
    }
}
