/*--------------------------------------------------------------
# Forms
--------------------------------------------------------------*/
.gfield {
	border: 1px solid var(--primary-color);
	border-radius: 0.3rem;
	overflow: hidden !important;
	background: var(--white);
	line-height: normal;
}

.gfield:focus-within {
	outline: 2px auto -webkit-focus-ring-color;
}

body .gfield .gfield_label.gform-field-label {
	color: var(--dark-gray);
	font-weight: normal;
	font-size: 0.7rem;
	margin-bottom: 0;
	padding-left: 0.6rem;
	width: 100%;
}

.gform_wrapper.gravity-theme .gfield .medium,
.gform_wrapper.gravity-theme .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: 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;
	padding-bottom: 1rem;
}

.gform_fileupload_rules {
	padding: 0 1rem 1rem;
	font-style: italic;
}

#sidebar .gfield--input-type-textarea {
	height: 6.5rem;
}

#sidebar h2::before {
	display: none;
}

.ginput_container_consent label {
	font-size: 0.7rem;
}

#sidebar .gform_wrapper {
	margin-top: 1rem;
}

#sidebar .gform_button {
	margin-top: 0;
}

.ginput_container_consent input {
	height: fit-content;
}

@media (max-width: 68.49em) {
	#sidebar .gfield {
		height: 2.4rem;
	}

	#sidebar .gfield--input-type-textarea {
		height: 6.5rem;
	}

	#sidebar .gform_button {
		margin-top: 0;
	}

	#sidebar p {
		font-size: 0.7rem !important;
	}
}

/* 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 */
#contact_section {
	position: relative;
	overflow: hidden;
}

#contact_section::before {
	content: '';
	width: 59.5%;
	width: clamp(50rem, 59.5%, 59.5%);
	aspect-ratio: 1/1;
	border-radius: 50%;
	background-color: var(--yellow);
	position: absolute;
	bottom: -30%;
	left: -21%;
	z-index: 1;
}

#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 .wp-block-cover__inner-container {
	position: relative;
	padding-top: 6.5rem;
	z-index: 2;
}

#contact_section .wp-block-cover__inner-container::before {
	content: '';
	width: 100%;
	aspect-ratio: 1920/154;
	background-color: var(--white);
	position: absolute;
	top: 0;
	left: 0;
}

#contact_section .contact-top {
	position: absolute;
	top: 0;
	left: 0;
	min-width: calc(100% + var(--padding-2x));
	margin-left: calc(var(--padding-1x) * -1) !important;
	z-index: 0;
}

#contact_section .wp-block-columns {
	column-gap: 7rem;
	margin-left: -4rem;
}

#contact_section .contact-pics {
	position: relative;
	margin-top: 5.5rem !important;
}

.contact-pics figure {
	max-width: fit-content;
	border-radius: 50%;
	position: relative;
}

.contact-pics figure::before {
	content: '';
	width: 100%;
	aspect-ratio: 1/1;
	border-radius: 50%;
	background-color: var(--white);
	position: absolute;
	bottom: 0.2rem;
	right: 0.5rem;
	z-index: -1;
}

.contact-pics figure:first-of-type {
	margin-left: auto;
	margin-top: 0 !important;
}

.contact-pics figure:last-of-type {
	position: absolute;
	top: 10rem;
	left: 2rem;
	z-index: 2;
}

.contact-pics figure:last-of-type::before {
	top: -0.3rem;
	right: -0.3rem;
	z-index: -1;
}

#contact_section .gfield--input-type-textarea {
	height: 6.5rem;
}

.ginput_container_consent {
	display: flex;
	gap: 0.7rem;
}

.gfield:has(.ginput_container_consent) .gfield_label {
	display: none;
}

@media (max-width: 68.49em) {
	#contact_section {
		padding-bottom: 10rem !important;
	}

	#contact_section .wp-block-cover__inner-container {
		padding: 0rem;
		padding-top: 2rem;
	}

	#contact_section .wp-block-cover__inner-container>div {
		max-width: 25rem;
	}

	#contact_section .contact-pics {
		margin-top: 0.5rem !important;
		max-width: 18rem;
		min-width: 15rem;
		margin-right: auto;
		margin-left: auto;
		max-height: fit-content;
	}

	#contact_section::before {
		width: 142%;
		right: 20%;
		left: unset;
		bottom: -14%;
	}

	#contact_section .wp-block-columns {
		margin-left: unset;
	}

	#contact_section .wp-block-columns {
		display: flex;
		flex-direction: column-reverse;
	}

	.contact-pics figure:last-of-type {
		left: 0rem;
		width: 8rem;
		top: 6.3rem;
	}

	.contact-pics figure:first-of-type {
		width: 12rem;
	}
}