/*------------------------------------*\
    
    Half & Half Image + Text Block Customizations - Global Styling

    The styles you add to this file will be applied to the 'Half & Half Image + Text' block. 
    If there is any reasons why you would need to style this separately,
    please create a block-specific stylesheet for it (don't forget to register that block-specific stylesheet in acf-start-blocks.php)

\*------------------------------------*/

.flex-row {
    display: flex;
    flex-wrap: wrap;
}

.half-and-half{
    display: flex;
    height: auto;
}

.half-and-half-image, 
.half-and-half-text {
    position: relative;
    flex: 0 0 100%;
}

.half-and-half-image img {
    height: 100%;
    width: 100%;
    display: block;
    object-fit: contain;
    -o-object-fit: contain;
}

.half-and-half-image.Contain img {
    object-fit: contain;
}

.image-block-left .half-and-half-image.Contain img {
    object-position: right;
}

.image-block-right .half-and-half-image.Contain img {
    object-position: left;
}

.half-and-half-text {
    padding: 75px 22px;
}

.half-and-half-text.right {
    margin-right: auto;
}

.half-and-half-text.left {
    margin-left: auto;
}

.half-and-half.white-bg {
    background-color: #ffffff;
}
.half-and-half.bg-grey {
    background-color: #F7F8F9;
}

.half-and-half.bg-gradient {
    background: linear-gradient(to bottom,  rgba(208,19,39,1) 0%,rgba(140,26,32,1) 100%);
    color: #fff;
}

.half-and-half.bg-gradient a:not(.btn),
.half-and-half.bg-gradient h2,
.half-and-half.bg-gradient h3,
.half-and-half.bg-gradient h5,
.half-and-half.bg-gradient h5::before {
    color: #fff;
}


.half-and-half-image {
    height: 264px;
}

.half-and-half-text .btn {
    margin-top: 25px;
}

.half-and-half.bg-gradient ul li::before{
    color: white;
}

.reviews__content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
}

.rating-point {
    font-size: 42px;
    line-height: 1.2em;
    padding-bottom: 5px;
    color: #B2081B;
    font-weight: 700;
}

.rating-stars {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #EBC700;
    gap: 4px;
}

.rating-numbers {
    font-size: 20px;
}

.rating-numbers span {
    font-weight: 700;
    letter-spacing: 1px;
}

.rating-image {
    padding-top: 7px;
}

@media (min-width: 768px) {
    .half-and-half-text {
        padding: 110px 52px;
    }

    .half-and-half-image {
        height: 424px;
    }

    .rating-point {
        font-size: 52px;
    }
}
    
@media (min-width: 1200px) {
    .half-and-half-image, 
    .half-and-half-text {
        position: relative;
        flex: 0 0 50%;
    }
    
    .half-and-half-image img {
        position: absolute;
        object-fit: cover;
        -o-object-fit: cover;
    }
    
    .flex-opposite {
        flex-direction: row-reverse;
    }

    .half-and-half-text__wrapper {
       max-width: 676px;
    }

    .image-block-right .half-and-half-text__wrapper {
       padding-left: 16px;
       padding-right: 97px;
    }

    .image-block-left .half-and-half-text__wrapper {
        padding-right: 16px;
        padding-left: 97px;
     }

    .half-and-half-text.left .half-and-half-text__wrapper {
        float: right;
    }

    .half-and-half-image {
        height: auto;
    }

    .half-and-half-text {
        padding: 40px 0;
    }
}


.form-col--mailing {
    margin-top: 32px;
}

.form-col--mailing .form-col__item {
    display: flex;
    position: relative;
    border-radius: 8px;
}

.form-col--mailing .form-col__item input[type=email] {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.form-col--mailing .form-col__item input[type=submit] {
    flex: 1;
    border: 0;
    font-size: 18px;
    color: #fff;
    background-color: #444444;
    padding: 12px 32px;

    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.form-col--mailing .wpcf7-not-valid-tip {
    position: absolute;
    left: 0;
    bottom: -31px;
}

.form-col--mailing .wpcf7-not-icon {
    display: none;
}

.wpcf7-form.invalid .form-col--mailing {
    margin-bottom: 40px;
}