/*--------------------------------------------------------------
# Forms
--------------------------------------------------------------*/
.gfield {
	border: 1px solid var(--accent-color);
	border-color: #758091;
	overflow: hidden !important;
	background: var(--white);
	line-height: normal;
}

.gfield_required {
	color: var(--gray-blue);
}

.gfield:focus-within {
	outline: 2px auto -webkit-focus-ring-color;
}

.gfield .gfield_label.gform-field-label {
	color: var(--content-color);
	font-weight: normal;
	font-size: 0.7rem;
	font-style: italic;
	margin-bottom: 0;
	padding-left: 0.6rem;
}

.gfield .medium,
.gfield .large {
	padding: 0 0.6rem 0.35rem !important;
	color: var(--content-color);
	background: var(--white);
	outline: none;
	border: 0 !important;
}

.gform_footer {
	position: relative;
	margin-top: 0.7rem;
}

.gform_footer {
	justify-content: center;
}

.gform_button {
	transition: color 0.3s, background-color 0.3s;
	margin: 0.9rem auto 0;
}

.gform_ajax_spinner {
	position: absolute;
	top: 0;
	right: 0.5rem;
	bottom: 0;
	margin: auto;
	border: 0.2em solid rgba(0, 0, 0, 0.4);
	border-left: 0.2em solid #07B084;
	border-radius: 50%;
	width: 1.2em;
	height: 1.2em;
	animation: spin 1.1s infinite linear;
}

.gform_confirmation_message {
	font-family: inherit;
	font-size: 1.1em;
	font-weight: normal;
}

.gform_fileupload_rules {
	padding: 0 1rem 1rem;
	font-style: italic;
}

/* Validation styling */
.gform_wrapper .gform_validation_errors .gform_submission_error {
	border: none;
	margin: 0;
}

.gform_validation_errors p {
	margin: 0;
}

.gfield_error {
	border-color: #c02b0a;
}

.gfield_validation_message {
	border-left: none !important;
	border-right: none !important;
	border-bottom: none !important;
}

.gform_required_legend,
#contact_section .sidebar-form-content {
	display: none;
}

.contact-content {
	color: var(--content-color);
}

.contact-emergency {
	color: var(--gray-blue);
	font-weight: 600;
}

/* Full width contact form */
#contact_section {
	--contain-padding: clamp(var(--mobile-padding, 1rem), calc(50vw - 20rem), 26.3rem);
	padding-bottom: clamp(2.4rem, 10vw, 6.25rem);
}

#contact_section .wp-block-cover__inner-container {
	background: rgba(255, 255, 255, 0.9);
	padding: 1.25rem clamp(1.2rem, 10vw, 7.5rem) 3.25rem;
}

#contact_section .gform_title {
	text-align: center;
}

#contact_section .gform_description {
	font-size: clamp(0.7rem, 3vw, 0.9rem);
	margin-bottom: 4rem;
}

#contact_section .contact-emergency {
	display: block;
	margin-bottom: 1rem;
}

#contact_section .wp-block-columns {
	row-gap: 6rem;
}

@media (prefers-reduced-motion:no-preference) {
	#contact_section .wp-block-cover__inner-container {
		opacity: 0;
		transform: translateY(2rem);
		transition: transform 0.6s, opacity 0.6s;
	}

	#contact_section.js-intersected .wp-block-cover__inner-container {
		opacity: 1;
		transform: translateY(0);
	}
}

/*--------------------------------------------------------------
# Fullwidth Contact
--------------------------------------------------------------*/
#contact_section p {
	text-align: center;
}

#contact_section figure {
	border-radius: 10px;
	overflow: hidden;
	position: relative;
}

#contact_section figure::before {
	content: '';
	width: calc(100% - 1em);
	height: calc(100% - 1em);
	border: 0.05rem solid var(--white);
	border-radius: 10px;
	position: absolute;
	top: 0.5em;
	left: 0.5em;
}

.contact-images figure:first-of-type {
	margin-left: 2em;
	margin-bottom: -2.5em;
}

.contact-images figure:last-of-type {
	max-width: 56%;
}

#contact_section .gform_title {
	text-align: center;
	border-bottom: 0.05rem solid var(--content-color);
	padding-bottom: 1em;
}

#contact_section .contact-content {
	display: block;
	margin-bottom: 1rem;
}

.full-width-form-content {
	font-size: 0.9rem;
	font-family: var(--title-font);
}

#contact_section .watermark {
	display: none;
}

@media only screen and (min-width: 68.5em) {
	#contact_section {
		font-size: clamp(0.8rem, 1.1vw, 1rem);
	}

	#contact_section h2,
	#gform_wrapper_1 {
		margin-top: unset;
	}

	#contact_section .watermark {
		display: block;
		position: absolute;
		width: 45em;
		top: 0em;
		left: -3.5em;
		z-index: -1;
		opacity: 0.4;
	}

	#contact_section p,
	#contact_section .gform_title {
		text-align: left;
	}

	#contact_section .gform_footer {
		justify-content: flex-start;
	}

	#contact_section figure {
		min-width: 30em;
		transform-origin: right;
		transition: all 500ms;
		opacity: 0;
		right: -3em;
	}

	#contact_section figure:last-of-type {
		min-width: 20em;
		margin-top: 0em;
		transform-origin: bottom;
		right: unset;
		bottom: -3em;
		transition-delay: 500ms;
	}

	#contact_section.js-intersected figure {
		right: 0;
		bottom: 0;
		opacity: 1;
	}

	#contact_section .wp-block-columns {
		gap: 2.5em;
	}

	#contact_section figure::before {
		width: calc(100% - 2em);
		height: calc(100% - 2em);
		top: 1em;
		left: 1em;
	}
}