.block-form-with-background {
	color: white;
	position: relative;
}

.block-form-with-background .cbg-header {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
	
	padding-top:90px;
	padding-bottom:100px;
}

.block-form-with-background .why-background_image {
	position: absolute;
	height: 100%;
    width: 100vw;
	z-index: -1;
}

.block-form-with-background .why-background_image img {
	height: 100%;
    width: 100%;
	object-fit: cover;
}

.block-form-with-background .form-with-b-subtitle {
	margin-bottom:32px;
	position: relative;
}

.block-form-with-background .form-with-b-subtitle:after {
	position: relative;
	content: '';
	background: var(--Text-White, #FCFCFC);
	height:1px;
	width: 100%;
	display: block;
	margin-top:32px;
}


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

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

.block-form-with-background .cbg-contact-form {
    border-radius: 32px 0 32px 0;
    width: 100%;
}

.block-form-with-background .cbg-contact-form>div {
}

.block-form-with-background .h3 span {
    color: var(--Secondary-100, #589F00);
}


.block-form-with-background .h3 {
    border-bottom: 1px solid #DCDCDC;
    padding-bottom: 20px;
}

.block-form-with-background form.wpcf7-form .fieldset-cf7mls,
.block-form-with-background form.wpcf7-form {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
}

.block-form-with-background form.wpcf7-form button, 
.block-form-with-background form.wpcf7-form input[type="submit"] {
	width: calc(50% - 12px);
}

.block-form-with-background form .h3 {
    align-self: flex-start;
}

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

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

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

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

.block-form-with-background .display-h1 {
	font-size: 48px;
	margin-bottom: 25px;
}

.block-form-with-background .form-flex-container {
	display: flex;
	flex-wrap: wrap;
}

.block-form-with-background .form-flex-container label {
	width: 50%;
	margin-bottom: 24px;
}

@media (min-width: 992px) {
	.block-form-with-background .form-flex-container label:nth-child(2n-1) {
		padding-right: 12px;
	}

	.block-form-with-background .form-flex-container label:nth-child(2n) {
		padding-left: 12px;
	}
}

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

.block-form-with-background form.wpcf7-form .two-buttons button.cf7mls_back {
    background: none;
    color: black;
}

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

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

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

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

@media screen and (max-width:992px) {
    .block-form-with-background>img {
        object-fit: cover;
        object-position: 0;
        height: 100%;
        width: 100%;
    }
	
	.block-form-with-background .display-h1 {
    	font-size: 32px;
    	line-height: 1.2;
	}
	
	.block-form-with-background .header-block-end {
		display: none;
	}
	
	.block-form-with-background .cbg-header {
    	padding-top: 45px;
    	padding-bottom: 50px;
	}
	
	.block-form-with-background .cbg-header {
		margin-bottom: 0px;
	}

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

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

    .block-form-with-background .header-block-end {
        padding: 42px 16px 5px 16px;
    }

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

    .block-form-with-background .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-form-with-background .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-form-with-background .form-flex-container label {
    	width: 100%;
    	margin-bottom: 15px;
	}
	
	.block-form-with-background form.wpcf7-form .fieldset-cf7mls, .block-form-with-background form.wpcf7-form {
    	align-items: initial;
	}
	
	.block-form-with-background form.wpcf7-form button, 
	.block-form-with-background form.wpcf7-form input[type="submit"] {
    	width: 100%;
		margin-top: 15px;
	}

}


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

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