.block-cbg-header {
    margin-bottom: 58px;
}

.block-cbg-header .cbg-header {
    position: relative;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.00)60.8%, rgba(0, 0, 0, 0.35)67.75%, rgba(0, 0, 0, 0.70)90.81%);
    border-radius: 32px;
    overflow: hidden;
    padding-top: 131px;

}

.block-cbg-header .cbg-header>picture,
.block-cbg-header .cbg-header img {
    position: absolute;
    z-index: -1;
    top: 0;
    object-fit: cover;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.block-cbg-header .cbg-header .container {
    position: relative;
    z-index: 1;
    padding-top: 132px;
}

.block-cbg-header .cbg-contact-form {
    border-radius: 32px 0 32px 0;
    background-color: #fff;
    padding: 30px 0 0 33px;
    max-width: 496px;
    width: 100%;
}

.block-cbg-header .cbg-contact-form>div {
    border-radius: 32px;
    border: 1px solid #DADCE1;
    background: var(--Text-White, #FCFCFC);
    padding: 40px;
}


.block-cbg-header .h3 span {
    color: var(--Secondary-100, #CF2B24);
}


.block-cbg-header .h3 {
    border-bottom: 1px solid var(--Primary-15, #061735);
    padding-bottom: 20px;
}

.block-cbg-header form.wpcf7-form .fieldset-cf7mls,
.block-cbg-header form.wpcf7-form {
    display: flex !important;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.fieldset-cf7mls-wrapper {
    max-width: 100%;
}

.fieldset-cf7mls-wrapper fieldset>p {
    display: none;
}

.fieldset-cf7mls-wrapper fieldset>.cf7mls-btns {
    display: none;
}

.block-cbg-header form.wpcf7-form .two-buttons {
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.block-cbg-header form.wpcf7-form .two-buttons button {
    width: fit-content;
    gap: 12px;
}

.block-cbg-header form.wpcf7-form .two-buttons button.cf7mls_back {
    background: none;
    color: #061735;
}

.block-cbg-header form.wpcf7-form:where(.invalid, .init) .wpcf7-spinner {
    display: none;
}

.block-cbg-header .header-block-end {
    display: flex;
    align-items: flex-end;
    padding: 54px 40px;
}

.block-cbg-header button .next-form {
    background-image: url('img/arrow-forward.svg');
    width: 24px;
    height: 24px;
    margin-left: 12px;
}

.cbg-contact-form {
    position: relative;
}

.cbg-contact-form:after {
    content: '';
    width: 50px;
    height: 50px;
    position: absolute;
    top: -50px;
    right: 0;
    border-radius: 32px;
    box-shadow: 25px 25px 0 0 #fff
}

.cbg-contact-form::before {
    content: '';
    width: 50px;
    height: 50px;
    position: absolute;
    left: -50px;
    bottom: 0;
    border-radius: 32px;
    box-shadow: 25px 25px 0 0 #fff;
}

@media screen and (max-width:992px) {
    .block-cbg-header>img {
        object-fit: cover;
        object-position: 0;
        height: 100%;
        width: 100%;
    }
	
	.block-cbg-header {
    	margin-bottom: 25px;
	}

    .cbg-header {
        margin-bottom: 27px;
        border-radius: 32px 32px 23px 32px;
        overflow: hidden;
        min-height: 753px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }

    .block-cbg-header .header-block-button {
        background-color: #fff;
        min-height: 72px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        border-top-left-radius: 32px;
        position: relative;
    }

    .block-cbg-header .header-block-end {
        padding: 42px 16px;
    }

    .block-cbg-header .header-block-button a {
        background-color: var(--Secondary-100, #CF2B24);
        position: relative;
        z-index: 2;
    }

    .block-cbg-header .header-block-button:after {
        content: '';
        width: 50px;
        height: 50px;
        position: absolute;
        top: -50px;
        right: 0;
        border-radius: 32px;
        box-shadow: 25px 25px 0 0 #fff
    }

    .block-cbg-header .header-block-button::before {
        content: '';
        width: 50px;
        height: 50px;
        position: absolute;
        left: -50px;
        bottom: 0;
        border-radius: 32px;
        box-shadow: 25px 25px 0 0 #fff
    }
	
	.block-cbg-header .header-block-button::before,
	.block-cbg-header .header-block-button::after {
		display: none;
	}
	
	.block-cbg-header .cbg-header {
		height: 500px;
	}
	
	body .block-cbg-header .header-block-button {
		background-color: initial;
		min-height: initial;
		
		padding-left: 15px;
    	padding-bottom: 25px;
	}

}


@media screen and (max-width:576px) {
    .block-cbg-header .header-block-button a.button {
        font-size: 14px;
        padding: 14px 15px;
    }

    .block-cbg-header .cbg-header {
        border-radius: 24px;
    }
}

@media (max-width: 767px) {
	.block-cbg-header .cbg-header {
    	min-height: initial;
    	padding-top: 0px;
	}
	
	.block-cbg-header .header-block-end {
		padding-bottom: 15px;
	}
	
	body:not(.home) .block-cbg-header .cbg-header>picture, 
	body:not(.home) .block-cbg-header .cbg-header>img {
		filter: brightness(0.65);
	}
	
	.block-cbg-header .header-block-button a.button {
        padding: 14px 17px;
    }
}