/* Review fixes, 2026-11-17. Loaded only by the flexible-content template.
   Keep this separate from the manually maintained page-builder.css. */

/* The builder uses one <picture>, unlike the legacy hero's two <img>s. */
.gs-page-builder .gs-hero picture > .gs-hero__bg {
    display: block;
}

/* Figma 23843:3504: tablet hero, 852px frame. Images remain SCF content. */
@media (min-width: 601px) and (max-width: 1024px) {
    .gs-page-builder .gs-hero__slide { height: 460px; }
    .gs-page-builder .gs-hero__text {
        left: 40px;
        top: auto;
        bottom: 40px;
        width: 374px;
        max-width: calc(100% - 56px);
        gap: 10px;
    }
    .gs-page-builder .gs-hero__title { font-size: 24px; line-height: 28px; }
    .gs-page-builder .gs-hero__descr { margin: 0; font-size: 15px; line-height: 1.3; }
    .gs-page-builder .gs-hero__btn-wrap { width: 328px; max-width: 100%; }
    .gs-page-builder .gs-hero__btn {
        width: 100%; height: auto; min-height: 57px;
        padding: 16px 6px; font-size: 18px; line-height: 1.4;
    }
    .gs-page-builder .gs-hero__caption {
        width: 286px; max-width: 100%; margin: 0;
        font-size: 11px; line-height: 1.2;
    }
}

/* Figma 24458:20552: two equal columns inside the tablet operator card. */
@media (min-width: 601px) and (max-width: 1023px) {
    .gs-page-builder .callback-offer__card:not(:has(.callback-offer__success:not([style*="display: none"]):not([style*="display:none"]))) {
        padding: 30px 16px 0;
    }
    .gs-page-builder .callback-offer__card:not(:has(.callback-offer__success:not([style*="display: none"]):not([style*="display:none"]))) .callback-offer__visual {
        left: 16px;
        top: 30px;
        width: calc(50% - 16px);
        height: calc(100% - 30px);
    }
    .gs-page-builder .callback-offer__card:not(:has(.callback-offer__success:not([style*="display: none"]):not([style*="display:none"]))) .callback-offer__content {
        width: 50%;
        padding: 0 0 30px;
    }
}

/* The shared popup styles add a mobile top margin (202.5px at 390px).
   The inline response already has its own positioned form container. */
.gs-page-builder .new-callback [data-gs-builder-form] > .popup__success {
    margin: 0;
}

/* Keep the native callback-offer success state, without global modal geometry. */
.gs-page-builder .callback-offer__card:has(.callback-offer__success:not([style*="display: none"]):not([style*="display:none"])) {
    min-height: 0;
}
.gs-page-builder .callback-offer [data-gs-builder-form] > .callback-offer__success {
    position: static;
    inset: auto;
    transform: none;
    margin: 0;
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 0;
    box-sizing: border-box;
    padding: 0;
}
.gs-page-builder .callback-offer__success .popupSuccess__heading {
    position: static;
    margin: 0 auto 24px;
}
.gs-page-builder .callback-offer__success .popupSuccess__text {
    position: static;
    margin: 0 auto;
}
@media (max-width: 767px) {
    .gs-page-builder .callback-offer__card:has(.callback-offer__success:not([style*="display: none"]):not([style*="display:none"])) .callback-offer__content {
        min-height: 0;
    }
    .gs-page-builder .callback-offer__card:has(.callback-offer__success:not([style*="display: none"]):not([style*="display:none"])) .callback-offer__form {
        min-height: 230px;
        padding: 32px 24px;
    }
}
