/* تدفّق طلب الاشتراك — نافذة تصعد من الأسفل على الهاتف */

.reqflow {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.reqflow[hidden] { display: none; }

.reqflow__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(2px);
}

.reqflow__panel {
    position: relative;
    width: 100%;
    max-width: 460px;
    max-height: 92vh;
    overflow-y: auto;
    padding: 22px 20px 26px;
    background: #fff;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, .18);
    animation: reqflow-up .22s ease-out;
}

@media (min-width: 768px) {
    .reqflow { align-items: center; }
    .reqflow__panel { border-radius: 24px; }
}

@keyframes reqflow-up {
    from { transform: translateY(24px); opacity: 0; }
    to   { transform: none; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .reqflow__panel { animation: none; }
}

.reqflow__x {
    position: absolute;
    inset-inline-end: 14px;
    inset-block-start: 12px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: #f1f5f3;
    color: #55635e;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.reqflow__title {
    margin: 0 34px 2px 0;
    font-size: 1.15rem;
    color: #0e7a57;
}

.reqflow__sub {
    margin: 0 0 18px;
    color: #6b7d77;
    font-size: .86rem;
    line-height: 1.7;
}

/* ── النموذج ── */

.reqflow__field {
    display: block;
    margin-bottom: 13px;
}

.reqflow__field > span {
    display: block;
    margin-bottom: 5px;
    font-size: .82rem;
    font-weight: 600;
    color: #3c4a45;
}

.reqflow__field b { color: #c0392b; }

.reqflow__field input {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    font: inherit;
    color: #22302b;
    background: #f7faf9;
    border: 1px solid #dbe6e2;
    border-radius: 13px;
}

.reqflow__field input:focus-visible {
    outline: none;
    border-color: #0e7a57;
    background: #fff;
}

.reqflow__next {
    width: 100%;
    min-height: 52px;
    margin-top: 6px;
    border: 0;
    border-radius: 14px;
    background: #0e7a57;
    color: #fff;
    font: inherit;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
}

.reqflow__next:active { transform: scale(.995); }

.reqflow__error {
    margin: 10px 0 0;
    padding: 10px 12px;
    background: #fff5f5;
    border: 1px solid #f3c9c9;
    border-radius: 11px;
    color: #a33;
    font-size: .82rem;
    line-height: 1.7;
}

/* ── الملخّص وطرق الدفع ── */

.reqflow__summary {
    position: relative;
    padding: 13px 14px;
    margin-bottom: 18px;
    background: #f4f8f6;
    border-radius: 15px;
    font-size: .85rem;
}

.reqflow__summary > div {
    display: flex;
    gap: 10px;
    padding: 3px 0;
}

.reqflow__summary span { color: #7b8a85; min-width: 52px; }
.reqflow__summary b { font-weight: 600; color: #22302b; }

.reqflow__edit {
    position: absolute;
    inset-inline-end: 10px;
    inset-block-start: 10px;
    padding: 4px 12px;
    border: 1px solid #cfdcd7;
    border-radius: 99px;
    background: #fff;
    color: #0e7a57;
    font: inherit;
    font-size: .76rem;
    cursor: pointer;
}

.reqflow__ask {
    margin: 0 0 10px;
    font-size: .88rem;
    font-weight: 600;
    color: #3c4a45;
}

.reqflow__method {
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    min-height: 68px;
    padding: 13px 15px;
    margin-bottom: 10px;
    text-align: start;
    background: #fff;
    border: 1.5px solid #dbe6e2;
    border-radius: 16px;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

.reqflow__method:not(:disabled):hover { border-color: #0e7a57; }
.reqflow__method:not(:disabled):active { transform: scale(.995); }

.reqflow__method:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.reqflow__method i {
    flex: 0 0 auto;
    font-size: 1.7rem;
    color: #0e7a57;
}

.reqflow__method span { display: grid; gap: 3px; }
.reqflow__method b { font-size: .95rem; }

.reqflow__method small {
    color: #7b8a85;
    font-size: .76rem;
    line-height: 1.6;
}

/* ── التأكيد ── */

.reqflow__done { text-align: center; padding: 14px 0 4px; }
.reqflow__done i { font-size: 3.4rem; color: #1eb185; }
.reqflow__done h3 { margin: 10px 0 6px; font-size: 1.1rem; }

.reqflow__done p {
    margin: 0 0 20px;
    color: #6b7d77;
    font-size: .87rem;
    line-height: 1.8;
}
