/*
 * Rivera — «Заявка» page template
 *
 * Blocks:
 *   .request-page — the page ground
 *   .request      — the page's one section: title, editor text, form
 *
 * The page title matches the catalogues'. The form keeps to one readable
 * column rather than the container's full width: a 1340px text field is hard
 * to scan and a long line of message text harder still to write.
 */

/* ── Page ───────────────────────────────────────────────────────────────── */
/* Only the bottom inset differs from every other page (see .site-main). */
.request-page {
    padding-bottom: 72px;
}

@media (max-width: 767px) {
    .request-page {
        padding-bottom: 40px;
    }
}

.request__intro {
    max-width:   720px;
    margin-top:  36px;
    font-size:   var(--fs-body);
    line-height: 1.5;
}

/* Editor output: headings and paragraphs with no classes of their own. */
.request__intro h2,
.request__intro h3 {
    margin:         0 0 12px;
    font-size:      22px;
    font-weight:    400;
    line-height:    1.3;
    letter-spacing: 0.3px;
    text-transform: var(--tt-heading);
}

.request__intro p {
    margin: 0 0 12px;
}

.request__form {
    max-width:  640px;
    margin-top: 32px;
}

/* ── Text below the form ────────────────────────────────────────────────── */
/*
 * Whatever the editor typed after <!--more-->: the long half, which explains
 * at length and would push the form off the screen if it stood above it. The
 * rule above the block says plainly that the form is over, so the reader does
 * not take this for one more field. Typography comes from .prose.
 */
.request__more {
    max-width:   720px;
    margin-top:  48px;
    padding-top: 32px;
    border-top:  1px solid var(--color-border);
}

/* ── JetFormBuilder ─────────────────────────────────────────────────────── */
/* The form is built in the plugin, so its markup is the plugin's: these rules
 * dress its classes in the site's own look. Everything here mirrors .field
 * and the submit button the theme's own form used before. */
.jet-form-builder-row {
    margin-bottom: 22px;
}

.jet-form-builder__label {
    display:        block;
    margin-bottom:  8px;
    color:          var(--color-secondary);
    font-size:      16px;
    line-height:    1.3;
    letter-spacing: 0.3px;
    text-transform: var(--tt-heading);
}

.jet-form-builder__required {
    color: var(--color-orange);
}

.jet-form-builder__field {
    width:            100%;
    min-height:       50px;
    padding:          12px 18px;
    border:           2px solid var(--color-navy-soft);
    border-radius:    12px;
    background-color: var(--color-panel);
    color:            var(--color-secondary);
    font-family:      inherit;
    font-size:        17px;
    line-height:      1.4;
    transition:       border-color var(--transition);
    appearance:       none;
}

textarea.jet-form-builder__field {
    min-height: 160px;
    resize:     vertical;
}

.jet-form-builder__field:hover {
    border-color: var(--color-sky);
}

.jet-form-builder__field:focus-visible,
.jet-form-builder__field:focus {
    border-color: var(--color-orange);
    outline:      none;
}

.jet-form-builder__field[aria-invalid="true"],
.jet-form-builder__field.has-error {
    border-color: var(--color-error);
}

/* The plugin's own validation lines. */
.jet-form-builder__field-error,
.jet-form-builder-message--error {
    margin:      6px 0 0;
    color:       var(--color-error);
    font-size:   15px;
    line-height: 1.4;
}

.jet-form-builder-message--success {
    margin:           0 0 16px;
    padding:          16px 20px;
    border-left:      4px solid currentColor;
    border-radius:    4px;
    background-color: var(--color-navy);
    color:            var(--color-success);
    font-size:        17px;
    line-height:      1.45;
}

.jet-form-builder__action-button,
.jet-form-builder__submit {
    display:          inline-flex;
    align-items:      center;
    justify-content:  center;
    min-width:        240px;
    min-height:       58px;
    padding:          0 32px;
    border:           0;
    border-radius:    12px;
    background-color: var(--color-orange);
    color:            var(--color-navy-deep);
    font-family:      inherit;
    font-size:        20px;
    font-weight:      700;
    line-height:      1.2;
    letter-spacing:   0.5px;
    text-transform:   var(--tt-heading);
    cursor:           pointer;
    transition:       background-color var(--transition);
}

.jet-form-builder__action-button:hover,
.jet-form-builder__submit:hover,
.jet-form-builder__action-button:focus-visible,
.jet-form-builder__submit:focus-visible {
    background-color: var(--color-orange-hot);
}

@media (max-width: 767px) {
    .jet-form-builder__label {
        font-size: 15px;
    }

    .jet-form-builder__field {
        font-size: 16px;
    }

    .jet-form-builder__action-button,
    .jet-form-builder__submit {
        width:      100%;
        min-width:  0;
        min-height: 52px;
        font-size:  18px;
    }
}

/* ── Tablet ─────────────────────────────────────────────────────────────── */
@media (max-width: 1023px) {


    .request__intro {
        margin-top: 28px;
    }
}

/* ── Mobile ─────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {


    .request__intro {
        margin-top: 20px;
        font-size:  16px;
    }

    .request__intro h2,
    .request__intro h3 {
        font-size: 18px;
    }

    .request__form {
        margin-top: 24px;
    }

    .request__more {
        margin-top:  32px;
        padding-top: 24px;
    }

}
