.contact {
	position: relative;
	min-height: 818px;
	overflow: hidden;
	color: var(--white);
	background: #000f2e;
}

.contact__img {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
	visibility: hidden;
}

.contact__img--mobile,
.contact__img--large {
	display: none;
}

@media (max-width: 767px) {
	.contact:has(.contact__img--mobile) > .contact__img:not(.contact__img--mobile) {
		display: none;
	}

	.contact__img--mobile {
		display: block;
	}
}

@media (min-width: 2000px) {
	.contact:has(.contact__img--large) > .contact__img:not(.contact__img--large) {
		display: none;
	}

	.contact__img--large {
		display: block;
	}
}

.contact::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(0, 15, 46, 0) 51%, #000f2e 100%);
	pointer-events: none;
}

.contact__layout {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 74px;
	padding-top: 94px;
	padding-bottom: 140px;
}

.contact__intro {
	flex: 1 1 538px;
	max-width: 538px;
	padding-top: 19px;
}

.contact h1 {
	visibility: hidden;
	margin: 0 0 30px;
	color: var(--white);
	font-family: var(--sans);
	font-size: 74px;
	font-weight: 400;
	line-height: 1.05;
}

.contact__email {
	visibility: hidden;
	color: var(--white);
	font-family: var(--sans);
	font-size: 30px;
	font-weight: 400;
	line-height: 1.05;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.contact__email:hover {
	opacity: 0.75;
}

.contact__card {
	flex: 1 1 649px;
	width: 100%;
	max-width: 649px;
	min-height: 546px;
	padding: 73px 56px 48px;
	background: var(--white);
	border-radius: 5px;
	color: var(--navy);
	visibility: hidden;
}

.contact__card .gform_wrapper {
	margin: 0;
}

.contact__card .gform_heading,
.contact__card .gform_required_legend,
.contact__card .gform_description {
	display: none;
}

.contact__card .gform_wrapper.gravity-theme .gform_fields {
	display: flex;
	flex-direction: column;
	gap: 30px;
	width: 100%;
}

.contact__card .gform_wrapper.gravity-theme .gfield {
	grid-column: auto;
	width: 100%;
	margin: 0;
	padding: 0;
}

.contact__card .gform_wrapper.gravity-theme .hidden_label > .gfield_label {
	position: static;
	display: block;
	width: auto;
	height: auto;
	margin: 0 0 8px;
	padding: 0;
	overflow: visible;
	clip: auto;
	clip-path: none;
	border: 0;
	color: var(--blue);
	font-family: var(--mono);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-transform: uppercase;
}

.contact__card .gfield_required_custom {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.contact__card .gfield_required::after {
	content: "*";
	margin-left: 4px;
	color: var(--blue);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0;
}

.contact__card .ginput_container input,
.contact__card .ginput_container textarea {
	width: 100%;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid var(--line);
	border-radius: 4px;
	background: var(--white);
	color: #111;
	font-family: var(--sans);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.2;
	box-shadow: none;
}

.contact__card .ginput_container input {
	height: 42px;
}

.contact__card .gform_wrapper.gravity-theme .gfield textarea.large,
.contact__card .ginput_container textarea {
	display: block;
	height: 112px;
	min-height: 112px;
	resize: vertical;
}

.contact__card .ginput_container input::placeholder,
.contact__card .ginput_container textarea::placeholder {
	color: #111;
	opacity: 1;
}

.contact__card .ginput_container input:focus,
.contact__card .ginput_container textarea:focus {
	border-color: var(--blue);
	outline: none;
}

.contact__card .gform_wrapper.gravity-theme .gform_footer.top_label {
	display: flex;
	justify-content: center;
	width: 100%;
	margin: 36px 0 0;
	padding: 0;
}

.contact__card .gform_wrapper.gravity-theme .gform_button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 32px;
	margin: 0;
	padding: 8px 12px;
	border: 0;
	border-radius: 0;
	background: var(--blue);
	color: var(--white);
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.08em;
	line-height: 1;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: none;
}

.contact__card .gform_wrapper.gravity-theme .gform_button::after {
	content: "";
	width: 8px;
	height: 9px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='9' viewBox='0 0 8 9' fill='none'%3E%3Cpath d='M7.39418 4.26886L0 0V8.53789L7.39418 4.26886Z' fill='white'/%3E%3C/svg%3E") center / contain no-repeat;
}

.contact__card .gform_wrapper.gravity-theme .gform_button:hover {
	background: #0464d0;
}

.contact__card .gfield_validation_message,
.contact__card .validation_message {
	margin: 6px 0 0;
	color: #c40000;
	font-family: var(--sans);
	font-size: 13px;
	line-height: 1.4;
}

.contact__card .gfield_error input,
.contact__card .gfield_error textarea {
	border-color: #c40000;
}

.contact__card .gform_confirmation_message {
	margin: 0;
	color: var(--navy);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.5;
}

body:has(#contact) .closing {
	display: none;
}

@media (max-width: 1100px) {
	.contact__layout {
		gap: 40px;
	}

	.contact h1 {
		font-size: 56px;
	}

	.contact__email {
		font-size: 24px;
	}

	.contact__card {
		padding: 48px 32px 40px;
	}
}

@media (max-width: 980px) {
	.contact {
		min-height: 0;
	}

	.contact__layout {
		flex-direction: column;
		padding-top: 64px;
		padding-bottom: 72px;
	}

	.contact__intro,
	.contact__card {
		flex-basis: auto;
		max-width: none;
	}

	.contact__intro {
		padding-top: 0;
	}

	.contact h1 {
		font-size: 48px;
	}
}

@media (max-width: 640px) {
	.contact__layout {
		padding-top: 48px;
		padding-bottom: 56px;
	}

	.contact h1 {
		font-size: 40px;
		margin-bottom: 20px;
	}

	.contact__email {
		font-size: 22px;
	}

	.contact__card {
		min-height: 0;
		padding: 32px 20px 28px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.contact__img,
	.contact h1,
	.contact__email,
	.contact__card {
		visibility: visible;
	}
}
