/* ────────────────────────────────────────────────────────────────────────
   page-quickpay.css — форма «Быстрая оплата» на странице /oplata.

   Стилистика 1-в-1 со страницей /order (page-order.css): карточка с
   радиусом 28px и градиентной полосой сверху, инпуты-пилюли 48px с
   радиусом 40px, тёмная кнопка-пилюля. Все стили в скоупе .qp-scope —
   страница живёт внутри общей темы сайта, ничего снаружи не трогаем.
   ────────────────────────────────────────────────────────────────────── */

.qp-scope {
    --qp-white:        #FFFFFF;
    --qp-blue:         #0071E3;
    --qp-green:        #2E7D32;
    --qp-text-dark:    #1D1C1F;
    --qp-text-gray:    #6E6E73;
    --qp-border-light: #D2D2D7;
    --qp-divider:      #E5E5EA;
    --qp-bg-secondary: #FAFAFC;
    --qp-red:          #FF3B30;

    font-family: -apple-system, 'SF Pro Text', 'Inter', 'Helvetica Neue', sans-serif;
    color: var(--qp-text-dark);
    margin: 8px 0 48px;
}
.qp-scope *, .qp-scope *::before, .qp-scope *::after { box-sizing: border-box; }

.qp-card {
    max-width: 720px;
    background:
        linear-gradient(90deg, var(--qp-blue), #A57248, var(--qp-blue)) top left / 100% 4px no-repeat,
        var(--qp-white);
    background-clip: padding-box;
    border: 1px solid var(--qp-border-light);
    border-radius: 28px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    padding: 36px;
    margin: 0;
}

/* ─── Шапка карточки ─────────────────────────────────────────────────── */
.qp-head {
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--qp-divider);
}
.qp-brand {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.4px;
}
.qp-brand-sub {
    margin-top: 4px;
    font-size: 14px;
    color: var(--qp-text-gray);
}

/* ─── Поля ───────────────────────────────────────────────────────────── */
.qp-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0 16px;
}
.qp-field {
    flex: 1 1 200px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}
.qp-field--wide { flex: 2 1 280px; }
.qp-field > label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--qp-blue);
    user-select: none;
}
.qp-field input {
    width: 100%;
    height: 48px;
    padding: 0 18px;
    border: 1px solid var(--qp-border-light);
    border-radius: 40px;
    background: var(--qp-white);
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    color: var(--qp-text-dark);
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.qp-field input::placeholder { color: #A9A9AE; font-weight: 400; }
.qp-field input:hover { border-color: #B5B5BB; background: var(--qp-bg-secondary); }
.qp-field input:focus {
    outline: none;
    border-color: var(--qp-blue);
    background: var(--qp-white);
    box-shadow: 0 0 0 3px rgba(0,113,227,0.12);
}
.qp-field.is-error input { border-color: var(--qp-red); box-shadow: 0 0 0 3px rgba(255,59,48,0.12); }
.qp-field-hint {
    font-size: 12px;
    color: var(--qp-text-gray);
    line-height: 1.35;
    padding-left: 18px;
}
.qp-field-error {
    color: var(--qp-red);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    min-height: 0;
    padding-left: 18px;
    display: none;
}
.qp-field.is-error .qp-field-error { display: block; }

/* ─── Итог и кнопка ──────────────────────────────────────────────────── */
.qp-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 8px;
    padding-top: 22px;
    border-top: 1px solid var(--qp-divider);
}
.qp-total-label {
    font-size: 12px;
    color: var(--qp-text-gray);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.qp-total {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--qp-green);
    letter-spacing: -0.5px;
    line-height: 1.15;
    white-space: nowrap;
}
.qp-submit {
    background: var(--qp-text-dark);
    color: var(--qp-white);
    border: none;
    padding: 15px 44px;
    border-radius: 60px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, transform .1s, opacity .15s;
}
.qp-submit:hover { background: #000; }
.qp-submit:active { transform: scale(0.98); }
.qp-submit:disabled { opacity: 0.55; cursor: default; transform: none; }

.qp-consent {
    margin-top: 16px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--qp-text-gray);
}
.qp-consent a { color: var(--qp-blue); text-decoration: underline; }

/* Общая ошибка отправки (сеть/сервер) */
.qp-form-error {
    display: none;
    margin-top: 14px;
    padding: 12px 18px;
    background: #FDECEA;
    border-left: 3px solid var(--qp-red);
    border-radius: 8px;
    color: #B3261E;
    font-size: 14px;
    font-weight: 500;
}
.qp-form-error.visible { display: block; }

/* Плашка тестового режима (видна только при /oplata?test=…) */
.qp-testmode {
    display: none;
    margin-bottom: 18px;
    padding: 10px 18px;
    background: #FFF8E1;
    border-left: 3px solid #FF9F0A;
    border-radius: 8px;
    color: #8A6D00;
    font-size: 13px;
    font-weight: 600;
}
.qp-testmode.visible { display: block; }

@media (max-width: 640px) {
    .qp-card { padding: 24px 18px; border-radius: 20px; }
    .qp-footer { flex-direction: column; align-items: stretch; text-align: center; }
    .qp-submit { width: 100%; }
}
