/* Блок записи #order (template-parts/order/order-section.php): форма CF7 слева, фото до края окна справа */

.order-section {
    overflow: hidden;
    background: var(--price-color-active);
    color: #fff;
}

.order-section__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 560px;
}

.order-section__grid--single {
    grid-template-columns: minmax(0, 1fr);
}

.order-section__main {
    padding: 100px 72px 100px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.order-section .order-section__title {
    color: #fff;
    margin-bottom: 16px;
}

.order-section__sub {
    font-family: var(--price-font-sans);
    font-size: 17px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .78);
    margin: 0 0 36px;
    max-width: 44ch;
}

.order-section__sub b {
    font-weight: 500;
    color: var(--price-color-accent);
}

.order-section__form {
    max-width: 520px;
}

.order-section__form div:has(> .wpcf7-form-control-wrap:not([data-name^="acceptance"])) {
    display: block;
    width: 100%;
    max-width: none;
    padding: 0;
    margin-bottom: 30px;
}

.order-section__form input[type="text"],
.order-section__form input[type="tel"] {
    max-width: none;
}

.order-section__form div:has(> [data-name^="acceptance"]) {
    justify-content: flex-start;
    margin: 0;
    font-family: var(--price-font-sans);
    font-size: 15px;
    line-height: 1.35;
    color: rgba(255, 255, 255, .85);
}

.order-section__form [data-name^="acceptance"] .wpcf7-list-item {
    margin: 0;
}

.order-section__form [data-name^="acceptance"] label {
    align-items: flex-start;
    gap: 12px;
}

.order-section__form [data-name^="acceptance"] p {
    margin: 0;
}

.order-section__form .wpcf7-form-control-wrap {
    position: relative;
    display: block;
}

.order-section__form .wpcf7-not-valid-tip {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 5px;
    font-family: var(--price-font-sans);
    font-size: 13px;
    line-height: 1.2;
    color: #f7c3c3;
    white-space: nowrap;
}

.order-section__form input.wpcf7-not-valid {
    border-bottom-color: #f0a3a3;
}

.order-section__form .wpcf7 form .wpcf7-response-output {
    display: none !important;
}

.order-section__form .wpcf7-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    min-height: 50px;
    padding: 10px 40px;
    border: 0;
    border-radius: 999px;
    background: var(--price-color-accent);
    color: #fff;
    font-family: var(--price-font-serif);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background .15s ease;
}

.order-section__form .wpcf7-form button:hover {
    background: #a8956f;
}

.order-section__form .wpcf7-form button > span {
    font-size: 20px;
    color: #fff;
}

.order-section__form .wpcf7-form button > span + span,
.order-section__form .wpcf7-form .ps-button__icon {
    display: none;
}

.order-section__photo {
    position: relative;
    margin-right: calc(var(--ltr-bleed) * -1);
    background: rgba(255, 255, 255, .06);
}

.order-section__photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 30%;
}

@media (max-width: 991px) {
    .order-section__grid {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .order-section__main {
        padding: 56px 0;
    }

    .order-section__photo {
        aspect-ratio: 4 / 4.2;
        order: -1;
        margin: 0 calc(var(--ltr-gut) * -1);
    }
}

.order-section__modal .modal-dialog {
    width: auto;
    max-width: 440px;
    margin: 15vh auto 0;
    padding: 0 16px;
}

.order-section__modal .modal-content {
    border: 0;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(39, 48, 88, .25);
}

.order-section__modal .modal-body {
    padding: 44px 36px 36px;
    text-align: center;
}

.order-section__modal-text {
    margin: 0 0 28px;
    font-family: var(--price-font-serif);
    font-size: 20px;
    line-height: 1.4;
    color: var(--price-color-text);
}
