/**
 * Half Image Half Form Block
 * Contact form section with background image
 */

.half-image-half-form {
	position: relative;
	display: flex;
	flex-direction: column;
}

/* Image position modifiers */
.half-image-half-form--image-left {
	flex-direction: row-reverse;
}

.half-image-half-form--image-right {
	flex-direction: row;
}

.half-image-half-form__form {
	width: 100%;
	padding: 90px 25px;
}

.bg-dark .contact-form {
	color: var(--white);

	.gfield_label {
		color: var(--white);
	}
}

.contact-form h2 {
	text-align: center;
	margin: 0 0 30px;
}

.half-image-half-form--enhanced {
	min-height: 100vh;
}

.half-image-half-form__container {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.half-image-half-form__form-wrapper {
	flex: 1;
	display: flex;
	align-items: center;
}

.contact-form--enhanced {
	width: 100%;
}

.contact-form__subheading {
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 1rem;
	color: var(--color-primary);
}

.contact-form__heading {
	margin-bottom: 2rem;
}

.contact-form__description {
	margin-bottom: 2rem;
	color: var(--color-gray-700);
}

.half-image-half-form__image-wrapper {
	position: absolute;
	top: 0;
	right: 0;
	width: 50%;
	height: 100%;
	z-index: -1;
}

.half-image-half-form__bg-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (min-width: 768px) {
	.half-image-half-form {
		flex-direction: row;
		min-height: 500px;
	}

	.half-image-half-form__form {
		padding: 100px 52px;
		width: 70%;
		display: flex;
		align-items: center;
	}

	.half-image-half-form__image {
		width: 30%;
		height: auto;
		min-height: 500px;
		overflow: hidden;
		display: block;
	}

	.half-image-half-form__img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		object-position: center;
	}
	.half-image-half-form--enhanced .half-image-half-form__container {
		flex-direction: row;
	}
	.half-image-half-form--enhanced .half-image-half-form__form-wrapper {
		width: 60%;
		padding: 4rem;
	}
	.half-image-half-form--enhanced .half-image-half-form__image-wrapper {
		position: static;
		width: 40%;
	}
}

@media (min-width: 1200px) {
	.half-image-half-form__form {
		padding: 100px 70px;
		width: 60%;
	}

	.half-image-half-form--image-right .half-image-half-form__form {
		justify-content: flex-end;
	}

	.contact-form {
		max-width: 616px;
		width: 100%;
	}

	.half-image-half-form__image {
		width: 40%;
	}
	.half-image-half-form--enhanced .half-image-half-form__form-wrapper {
		width: 55%;
		padding: 6rem;
	}
	.half-image-half-form--enhanced .half-image-half-form__image-wrapper {
		width: 45%;
	}
}

@media (min-width: 1600px) {
	.half-image-half-form__form {
		padding: 100px 106px;
		width: 55%;
	}

	.half-image-half-form__image {
		width: 45%;
	}
	.half-image-half-form--enhanced .half-image-half-form__form-wrapper {
		width: 50%;
		padding: 8rem;
	}
	.half-image-half-form--enhanced .half-image-half-form__image-wrapper {
		width: 50%;
	}
}
