/*--------------------------------------------------------------
# Forms
--------------------------------------------------------------*/
.gfield {
	border: 1px solid var(--content-color);
	border-radius: 0.2rem;
	overflow: hidden !important;
	background: var(--white);
	line-height: normal;
}

.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;
	margin-bottom: 0;
	padding-left: 0.6rem;
	width: 100%;
}

.gform_wrapper.gravity-theme .gfield_required {
	color: var(--content-color);
}

body .gform_wrapper .gfield .medium,
body .gform_wrapper .gfield .large {
	padding: 0 0.6rem 0.35rem;
	color: var(--content-color);
	background: var(--white);
	outline: none;
	border: 0 !important;
	/* Prevent border on validation error */
}

.gform_footer {
	position: relative;
	margin-top: 0.7rem;
}

.gform_footer {
	justify-content: flex-start;
}

.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;
	padding-bottom: 1rem;
}

.gform_fileupload_rules {
	padding: 0 1rem 1rem;
	font-style: italic;
}

@media (max-width: 68.49em) {
	#sidebar .gform_button {
		margin-top: 0;
	}
}

/* Validation styling */
.gform_wrapper .gform_validation_errors .gform_submission_error {
	border: none;
	margin: 0;
	font-size: 0.8rem;
}

.gform_wrapper.gravity-theme .gform_validation_errors {
	padding: 0.2rem;
}

.gform_validation_errors p {
	margin: 0;
}

.gfield_error {
	border-color: #c02b0a;
}

.gform_wrapper .validation_message.gfield_validation_message {
	border: none;
	border-top: inherit;
	padding: 0.2rem 0.6rem;
}

.gform_required_legend,
#contact_section .sidebar-form-content {
	display: none;
}

/* Full width contact form */

.wp-block-template-part:has(#contact_section) {
	margin-top: 0;
}

#contact_section .wp-block-cover__inner-container {
	padding: 0;
	width: 100%;
	max-width: 47.3rem;
}

#contact_section .gform_title {
	text-align: center;
}

#contact_section .gform_description {
	font-size: clamp(0.7rem, 3vw, 0.9rem);
}

#contact_section .contact-emergency {
	display: block;
	margin-bottom: 1rem;
}

#contact_section .gform_footer {
	margin-top: 0;
}

#contact_section h2::before {
	background-color: var(--white);
}

#contact_section .gfield {
	border-radius: 0;
}

#contact_section h2 {
	color: var(--white);
	position: relative;
	padding-bottom: 2rem;
	margin-bottom: 2rem !important;
	text-align: var(--center-on-mobile);
}

#contact_section h2::before {
	content: '';
	width: 5.8rem;
	height: .1rem;
	background-color: var(--white);
	position: absolute;
	bottom: 0;
	left: calc(50% - 2.8rem);
}

@media (max-width: 68.49em) {

	.wp-block-template-part:has(#contact_section) {
		margin-top: 0 !important;
	}

	#contact_section {
		padding-bottom: 4.4rem !important;
		padding-top: 7rem !important;
	}

	#contact_section h2 {
		padding-bottom: 1.5rem !important;
		margin-bottom: 1rem !important;
		text-align: center !important;
	}

	#contact_section h2::before {
		left: calc(50% - 2.9rem)
	}

	#contact_section .gform_footer {
		justify-content: start;
	}

	#contact_section .wp-block-cover__inner-container>* {
		padding-left: 2.4rem !important;
		padding-right: 2.4rem !important;

	}
}

#sidebar .gform-footer {
	justify-content: center;
}