/* =============================================================================
   Raspunsul la o cerere de oferta / rezervare (request_result_modal.php)
   ========================================================================== */

.reqm {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
/* `display:flex` de mai sus bate regula implicita a browserului pentru [hidden] */
.reqm[hidden] { display: none; }

/* Fundalul paginii nu trebuie sa se poata derula sub modal */
body.reqm-open { overflow: hidden; }

.reqm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    animation: reqm-fade .18s ease;
}

.reqm-panel {
    position: relative;
    z-index: 1;
    width: min(460px, 100%);
    padding: 34px 28px 26px;
    text-align: center;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .3);
    animation: reqm-in .2s ease;
}
.reqm-panel:focus { outline: none; }

@keyframes reqm-fade { from { opacity: 0; } }
@keyframes reqm-in {
    from { opacity: 0; transform: translateY(12px); }
}
@media (prefers-reduced-motion: reduce) {
    .reqm-backdrop, .reqm-panel { animation: none; }
}

.reqm-x {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #94a3b8;
    font-size: 16px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.reqm-x:hover { background: #f1f5f9; color: #0f172a; }

.reqm-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.reqm-icon.is-ok  { background: #dcfce7; color: #15803d; }
.reqm-icon.is-err { background: #fee2e2; color: #b91c1c; }

.reqm-title {
    margin: 0 0 8px;
    font-size: 19px;
    font-weight: 700;
    color: #0f172a;
}
.reqm-text {
    margin: 0 0 22px;
    font-size: 14.5px;
    line-height: 1.6;
    color: #475569;
}

.reqm-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.reqm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    border: 0;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.reqm-btn[hidden] { display: none; }

.reqm-btn-ghost {
    background: #f1f5f9;
    color: #334155;
}
.reqm-btn-ghost:hover { background: #e2e8f0; }

.reqm-btn-primary {
    background: #00991a;
    color: #fff;
}
.reqm-btn-primary:hover { background: #007a15; color: #fff; }

@media (max-width: 480px) {
    .reqm-panel { padding: 30px 20px 22px; }
    /* Pe telefon butoanele pe un rand ies din ecran: unul sub altul, pe lat. */
    .reqm-actions { flex-direction: column-reverse; }
    .reqm-btn { width: 100%; }
}
