/* Contact page */
main.page-template-contact {
	width: 100%;
	max-width: none;
	--contact-page-gutter: 20px;
	--contact-font-eyebrow: 12px;
	--contact-font-lead: 18px;
	--contact-font-section-title: 20px;
	--contact-font-item-title: 18px;
	--contact-font-body: 17px;
	--contact-font-label: 16px;
	--contact-font-control: 17px;
	--contact-font-caption: 16px;
	--contact-font-action: 15px;
	--contact-font-faq-title: 24px;
}

.contact-hero {
	position: relative;
	left: 50%;
	width: 100vw;
	min-height: clamp(430px, 46vw, 620px);
	margin-left: -50vw;
	display: flex;
	align-items: center;
	overflow: hidden;
	background-color: #edf5ff;
	background-image:
		linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 58%),
		url('../images/home/banner_1.png');
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

.contact-hero__inner {
	position: relative;
	z-index: 1;
	width: calc(100% - 40px);
	max-width: 1360px;
	margin: 0 auto;
}

.contact-hero__content {
	width: min(47%, 590px);
}

.contact-hero__eyebrow {
	display: inline-flex;
	margin: 0 0 20px;
	padding: 7px 14px;
	color: #0758d1;
	background-color: #e8f2ff;
	border-radius: 999px;
	font-size: var(--contact-font-eyebrow);
	font-weight: 700;
	letter-spacing: 0.09em;
	line-height: 1;
	text-transform: uppercase;
}

.contact-hero h1 {
	margin: 0;
	color: #101a35;
	font-family: var(--potf-font-heading, "Inter", sans-serif);
	font-size: var(--potf-type-page-title);
	font-weight: 800;
	letter-spacing: -0.035em;
	line-height: 1.1;
	text-transform: uppercase;
}

.contact-hero h1 span {
	color: var(--potf-primary, #0758d1);
}

.contact-hero__description {
	max-width: 540px;
	margin: 24px 0 0;
	color: #4e5c70;
	font-size: var(--contact-font-lead);
	line-height: 1.8;
}

/* Contact information and message form */
.contact-main {
	padding: 0 var(--contact-page-gutter);
	background: #fff;
}

.contact-main__inner {
	display: grid;
	grid-template-columns: minmax(310px, .72fr) minmax(0, 1.45fr);
	width: 100%;
	max-width: 1360px;
	margin: 0 auto;
	padding-block: clamp(72px, 7vw, 104px);
	box-sizing: border-box;
	gap: clamp(48px, 6vw, 88px);
}

.contact-info {
	padding-right: clamp(20px, 4vw, 60px);
	border-right: 1px solid #dce5f1;
}

.contact-info > h2,
.contact-form-wrap > h2 {
	margin: 0;
	color: #0758d1;
	font-size: var(--contact-font-section-title);
	font-weight: 800;
	letter-spacing: .02em;
	text-transform: uppercase;
}

.contact-info > h2::after {
	display: block;
	width: 40px;
	height: 3px;
	margin-top: 16px;
	background: #4b72e8;
	content: "";
}

.contact-info__list {
	margin-top: 28px;
}

.contact-info__item {
	display: grid;
	grid-template-columns: 68px minmax(0, 1fr);
	padding: 24px 0;
	align-items: center;
	gap: 22px;
	border-bottom: 1px solid #e2e8f0;
}

.contact-info__item:last-child {
	border-bottom: 0;
}

.contact-info__icon {
	display: inline-flex;
	width: 64px;
	height: 64px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #eef4ff;
	color: #1856dc;
	font-size: 30px;
	line-height: 1;
}

.contact-info__icon svg {
	width: 30px;
	height: 30px;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.contact-info__item h3 {
	margin: 0 0 7px;
	color: #1c2940;
	font-size: var(--contact-font-item-title);
	font-weight: 700;
}

.contact-info__item p {
	margin: 0;
	color: #526077;
	font-size: var(--contact-font-body);
	line-height: 1.7;
	word-break: break-word;
}

.contact-form-wrap__intro {
	margin: 24px 0 28px;
	color: #526077;
	font-size: var(--contact-font-body);
	line-height: 1.75;
}

.contact-form {
	display: grid;
	gap: 22px;
}

.contact-form__row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.contact-form label {
	display: grid;
	gap: 9px;
	color: #243149;
	font-size: var(--contact-font-label);
	font-weight: 600;
}

.contact-form label > span:first-child {
	color: #0758d1;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 14px 16px;
	border: 1px solid #ced9e8;
	border-radius: 9px;
	outline: 0;
	background: #fff;
	color: #1f2937;
	font: inherit;
	font-size: var(--contact-font-control);
	font-weight: 400;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select {
	min-height: 52px;
}

.contact-form textarea {
	min-height: 160px;
	resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
	border-color: #0758d1;
	box-shadow: 0 0 0 3px rgba(7, 88, 209, .12);
}

.contact-form__consent {
	display: flex !important;
	align-items: flex-start;
	gap: 10px !important;
	font-weight: 400 !important;
}

.contact-form__consent input {
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	flex: 0 0 auto;
	accent-color: #0758d1;
}

.contact-form__consent span {
	color: #526077 !important;
	line-height: 1.5;
}

.contact-form__consent a {
	color: #0758d1;
	font-weight: 600;
	text-decoration: none;
}

.contact-form__submit {
	display: inline-flex;
	width: fit-content;
	min-width: 190px;
	min-height: 48px;
	padding: 0 26px;
	align-items: center;
	justify-content: center;
	gap: 12px;
	border: 0;
	border-radius: 999px;
	background: #0758d1;
	color: #fff;
	font-size: var(--contact-font-action);
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .2s ease, transform .2s ease;
}

.contact-form__submit:hover {
	background: #003f9f;
	transform: translateY(-2px);
}



/* Quality and service trust strip */
.contact-trust {
	padding: 40px var(--contact-page-gutter);
	background: #fff;
}

.contact-trust__inner {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	width: 100%;
	max-width: 1360px;
	min-height: 146px;
	box-sizing: border-box;
	margin: 0 auto;
	padding: 28px 34px;
	align-items: center;
	border: 1px solid #e1e8f2;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 12px 34px rgba(32, 71, 121, .09);
}

.contact-trust__item {
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr);
	min-height: 78px;
	padding: 0 26px;
	align-items: center;
	gap: 16px;
	border-right: 1px solid #dfe7f1;
}

.contact-trust__item:first-child {
	padding-left: 0;
}

.contact-trust__item:last-child {
	padding-right: 0;
	border-right: 0;
}

.contact-trust__icon {
	display: inline-flex;
	width: 48px;
	height: 48px;
	align-items: center;
	justify-content: center;
	color: #0758d1;
}

.contact-trust__icon svg {
	width: 40px;
	height: 40px;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.contact-trust__item h2 {
	margin: 0 0 8px;
	color: #124baa;
	font-size: var(--contact-font-item-title);
	font-weight: 800;
	line-height: 1.4;
}

.contact-trust__item p {
	margin: 0;
	color: #526077;
	font-size: var(--contact-font-caption);
	line-height: 1.65;
}

.contact-page-content {
	padding: 72px var(--contact-page-gutter);
}

.contact-page-content .wrap {
	width: min(100%, 1200px);
	margin: 0 auto;
}

.contact-page-content .wrap p {
	font-size: var(--contact-font-body);
	line-height: 1.8;
	color: #4e5c70;
	margin: 0 0 20px;
}

.contact-page-content .wrap h2,
.contact-page-content .wrap h3,
.contact-page-content .wrap h4,
.contact-page-content .wrap h5,
.contact-page-content .wrap h6 {
	color: #101a35;
	margin: 1.6em 0 0.8em;
	line-height: 1.25;
}

.contact-page-content .wrap h2 {
	font-size: var(--potf-type-content-title);
}

.contact-page-content .wrap h3 {
	font-size: var(--potf-type-subtitle);
}

.contact-page-content .wrap ul,
.contact-page-content .wrap ol {
	margin: 0 0 20px 1.4em;
	padding: 0;
	color: #4e5c70;
	font-size: var(--contact-font-body);
	line-height: 1.8;
}

.contact-page-content .wrap li {
	margin: 0 0 12px;
}

.contact-page-content .wrap a {
	color: var(--potf-primary, #0758d1);
	text-decoration: underline;
}

/* Tablet typography. */
@media (max-width: 1024px) {
	main.page-template-contact {
		--contact-font-eyebrow: 11px;
		--contact-font-lead: 17px;
		--contact-font-section-title: 18px;
		--contact-font-item-title: 17px;
		--contact-font-body: 16px;
		--contact-font-label: 15px;
		--contact-font-control: 16px;
		--contact-font-caption: 15px;
		--contact-font-action: 14px;
		--contact-font-faq-title: 22px;
	}
}

/* Mobile typography. Inputs remain 16px to prevent browser auto-zoom. */
@media (max-width: 767px) {
	main.page-template-contact {
		--contact-page-gutter: 16px;
		--contact-font-lead: 16px;
		--contact-font-section-title: 17px;
		--contact-font-item-title: 16px;
		--contact-font-body: 15px;
		--contact-font-caption: 15px;
		--contact-font-faq-title: 20px;
	}
}

@media (max-width: 900px) {
	.contact-hero {
		min-height: 500px;
		background-image:
			linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.82) 48%, rgba(255, 255, 255, 0.12) 100%),
			url('../images/home/banner_1.png');
		background-position: 62% center;
	}

	.contact-hero__content {
		width: min(64%, 540px);
	}

	.contact-main__inner {
		grid-template-columns: 1fr;
	}

	.contact-info {
		padding-right: 0;
		border-right: 0;
	}

	.contact-info__list {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0 30px;
	}



	.contact-trust__inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0;
	}

	.contact-trust__item {
		padding: 24px;
		border-right: 0;
		border-bottom: 1px solid #dfe7f1;
	}

	.contact-trust__item:nth-child(odd) {
		border-right: 1px solid #dfe7f1;
	}

	.contact-trust__item:nth-last-child(-n + 2) {
		border-bottom: 0;
	}
}

@media (max-width: 600px) {
	.contact-hero {
		min-height: 470px;
		padding: 44px 0;
		background-image:
			linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 62%, rgba(255, 255, 255, 0.55) 100%),
			url('../images/home/banner_1.png');
		background-position: 66% center;
	}

	.contact-hero__inner {
		width: calc(100% - 32px);
	}

	.contact-hero__content {
		width: 100%;
	}

	.contact-hero__eyebrow {
		margin-bottom: 16px;
	}

	.contact-hero__description {
		max-width: 94%;
		margin-top: 20px;
	}

	.contact-page-content {
		padding-block: 48px;
	}

	.contact-main {
		padding-inline: var(--contact-page-gutter);
	}

	.contact-main__inner {
		padding-block: 56px;
	}

	.contact-info__list,
	.contact-form__row {
		grid-template-columns: 1fr;
	}

	.contact-info__item {
		grid-template-columns: 56px minmax(0, 1fr);
		gap: 16px;
	}

	.contact-info__icon {
		width: 54px;
		height: 54px;
		font-size: 25px;
	}

	.contact-form__submit {
		width: 100%;
	}



	.contact-trust {
		padding: 0 var(--contact-page-gutter) 56px;
	}

	.contact-trust__inner {
		grid-template-columns: 1fr;
		padding: 12px 20px;
	}

	.contact-trust__item,
	.contact-trust__item:first-child,
	.contact-trust__item:last-child,
	.contact-trust__item:nth-child(odd),
	.contact-trust__item:nth-last-child(-n + 2) {
		padding: 22px 0;
		border-right: 0;
		border-bottom: 1px solid #dfe7f1;
	}

	.contact-trust__item:last-child {
		border-bottom: 0;
	}
}

/* Contact form status messages */
.contact-form__message {
	display: none;
	padding: 14px 16px;
	border-radius: 9px;
	font-size: var(--contact-font-body);
	line-height: 1.6;
	margin-top: 18px;
}
.contact-form__message--success {
	background: #e6f7ed;
	border: 1px solid rgba(46, 204, 113, 0.2);
	color: #1e7e34;
}
.contact-form__message--error {
	background: #fdf2f2;
	border: 1px solid rgba(224, 86, 86, 0.2);
	color: #9b1c1c;
}
