/* Modal overlay */
.sr-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    direction: rtl;
    font-family: inherit;
}

.sr-modal[style*="display: none"] { display: none !important; }

.sr-modal-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    animation: sr-fade 0.2s ease;
}

@keyframes sr-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sr-slide { from { opacity: 0; transform: translateY(-20px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }

.sr-modal-dialog {
    position: relative;
    background: #fff;
    border-radius: 16px;
    max-width: 500px;
    width: calc(100% - 30px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: sr-slide 0.25s ease;
}

.sr-modal-close {
    position: absolute;
    top: 10px;
    left: 10px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: all 0.2s;
    line-height: 1;
}

.sr-modal-close:hover { background: #f5f5f5; color: #333; }

.sr-modal-head {
    padding: 24px 24px 10px;
    text-align: center;
}

.sr-modal-icon {
    font-size: 40px;
    margin-bottom: 8px;
}

.sr-modal-head .sr-modal-title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    color: #2d3142;
}

.sr-modal-sub {
    margin: 0;
    color: #999;
    font-size: 13px;
}

.sr-modal-body {
    padding: 10px 24px 24px;
}

.sr-label {
    display: block;
    font-weight: 600;
    color: #2d3142;
    margin: 14px 0 8px;
    font-size: 14px;
}

.sr-reasons {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sr-reason-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 2px solid #e0e4ef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    color: #2d3142;
}

.sr-reason-item:hover { border-color: #5379CC; background: #f8faff; }

.sr-reason-item input {
    margin: 0;
    cursor: pointer;
    accent-color: #e74c3c;
}

.sr-reason-item:has(input:checked) {
    border-color: #e74c3c;
    background: #fef5f4;
}

#sr-details {
    width: 100%;
    border: 2px solid #e0e4ef;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
    direction: rtl;
}

#sr-details:focus { border-color: #5379CC; }

.sr-modal-footer {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.sr-btn {
    flex: 1;
    padding: 11px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.25s;
}

.sr-btn-primary {
    background: #e74c3c;
    color: #fff;
}

.sr-btn-primary:hover:not(:disabled) { background: #c0392b; }
.sr-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.sr-btn-secondary {
    background: #f5f6fa;
    color: #6b7280;
}

.sr-btn-secondary:hover { background: #e0e4ef; }

.sr-message {
    margin-top: 14px;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    text-align: center;
}

.sr-message.is-success { background: #d4edda; color: #155724; }
.sr-message.is-error { background: #f8d7da; color: #721c24; }

@media (max-width: 500px) {
    .sr-modal-dialog { width: calc(100% - 20px); }
    .sr-modal-head { padding: 20px 16px 8px; }
    .sr-modal-body { padding: 8px 16px 16px; }
}
