/* Модальное окно жалобы — без Bootstrap, совместимо с глобальным input { height: 64px } в main.css */

.spr-report-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.spr-report-modal.is-open {
    display: flex;
}

.spr-report-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(3px);
}

.spr-report-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    max-height: calc(100vh - 2rem);
    overflow: auto;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.spr-report-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.1rem 0.75rem;
    border-bottom: 1px solid #eef1f4;
}

.spr-report-modal__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
}

.spr-report-modal__close {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: #f3f4f6;
    color: #64748b;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.spr-report-modal__close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.spr-report-modal__body {
    padding: 0.85rem 1.1rem 1rem;
}

.spr-report-modal__material {
    margin: 0 0 0.85rem;
    font-size: 0.84rem;
    color: #64748b;
    line-height: 1.45;
}

.spr-report-modal__label {
    display: block;
    margin: 0 0 0.45rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
}

.spr-report-reasons {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.85rem;
}

.spr-report-reason {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.65rem;
    border: 1.5px solid #e8ebef;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
    user-select: none;
}

.spr-report-reason:hover {
    border-color: #ffd7c3;
    background: #fffaf7;
}

.spr-report-reason:has(input:checked) {
    border-color: #ff6b35;
    background: #fff7f3;
}

.spr-report-reason input[type="radio"] {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px;
    min-height: 16px;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    accent-color: #e63946;
    cursor: pointer;
}

.spr-report-reason span {
    font-size: 0.88rem;
    color: #334155;
    line-height: 1.3;
}

.spr-report-reason:has(input:checked) span {
    font-weight: 600;
    color: #9a3412;
}

.spr-report-modal__comment {
    width: 100%;
    min-height: 72px;
    height: auto !important;
    padding: 0.6rem 0.75rem;
    border: 1.5px solid #e8ebef;
    border-radius: 10px;
    font-size: 0.88rem;
    line-height: 1.45;
    resize: vertical;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.spr-report-modal__comment:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.12);
}

.spr-report-modal__msg {
    margin: 0.65rem 0 0;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    font-size: 0.84rem;
    line-height: 1.4;
}

.spr-report-modal__msg.is-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.spr-report-modal__msg.is-success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.spr-report-modal__msg.is-hidden {
    display: none;
}

.spr-report-modal__foot {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.75rem 1.1rem 1rem;
    border-top: 1px solid #eef1f4;
}

.spr-report-modal__btn {
    border: none;
    border-radius: 10px;
    padding: 0.55rem 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.spr-report-modal__btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.spr-report-modal__btn--ghost {
    background: #f3f4f6;
    color: #475569;
}

.spr-report-modal__btn--ghost:hover:not(:disabled) {
    background: #e5e7eb;
}

.spr-report-modal__btn--danger {
    background: linear-gradient(135deg, #e63946, #ff6b35);
    color: #fff;
}

.spr-report-modal__btn--danger:hover:not(:disabled) {
    transform: translateY(-1px);
}
