/*
    Block: Form
    Note: Selectors must start with .block-form
*/

@layer blocks {
    .block-form .sticky-wrapper img {
        border-radius: 0.5rem;
    }

    .block-form .wrap {
        display: grid;
        grid-template-columns: 442fr 738fr;
        gap: 6.25rem;
        align-items: start;
    }

    .block-form .sticky-wrapper {
        position: sticky;
        top: 4.0313rem;
    }

    .block-form .form-title {
        margin-block: 0 4.375rem;
    }

    .block-form .google-rating-widget:not(:last-child) {
        margin-bottom: 2.5rem;
    }
    
    @media screen and (width <= 920px) {
        .block-form .form-title {
            margin-bottom: 3.125rem;
        }
    }

    @media screen and (width <= 620px) {
        .block-form .sticky-wrapper {
            position: static;
        }
        /* .block-form .sticky-wrapper:not(:has(.text-content)) {
            display: none;
        } */
        .block-form .sticky-wrapper:has(img):not(:has(.google-rating-widget img)) {
            display: none;
        }
        .block-form .wrap {
            grid-template-columns: 1fr;
            gap: 3.125rem;
        }
    }
}
