/* ========================================
   MedXFactor Contact Us Page
   ======================================== */

.mxf-contact-page {
	position: relative;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	overflow: hidden;
	background: #e3f0f8;
	color: var(--mxf-text);
	font-family: var(--mxf-font-body);
}

.mxf-contact-page *,
.mxf-contact-page *::before,
.mxf-contact-page *::after {
	box-sizing: border-box;
}

.mxf-contact-page a {
	text-decoration: none;
}

.mxf-contact-breadcrumb-shell,
.mxf-contact-hero__inner,
.mxf-contact-map-form__inner,
.mxf-contact-faq__inner {
	width: min(var(--mxf-container), calc(100% - 48px));
	margin-inline: auto;
}

/* Breadcrumb */
.mxf-contact-breadcrumb-shell {
	position: relative;
	z-index: 1;
	padding-top: 2px;
}

.mxf-contact-breadcrumb {
	display: flex;
	align-items: center;
	gap: 13px;
	min-height: 64px;
	padding: 0 33px;
	border-radius: 999px;
	background: #fff;
	color: #333d49;
	font-size: 13px;
	line-height: 1;
}

.mxf-contact-breadcrumb a {
	color: #59616c;
	transition: color 160ms ease;
}

.mxf-contact-breadcrumb a:hover,
.mxf-contact-breadcrumb a:focus-visible {
	color: var(--mxf-primary);
}

.mxf-contact-breadcrumb svg {
	width: 14px;
	height: 14px;
	color: #8e9aa5;
	flex: 0 0 auto;
}

.mxf-contact-breadcrumb span {
	color: #1b2530;
	font-weight: 500;
}

/* Intro */
.mxf-contact-hero {
	position: relative;
	padding: 28px 0 48px;
}

.mxf-contact-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 0.93fr) minmax(0, 1.07fr);
	gap: 54px;
	align-items: start;
	min-height: 442px;
}

.mxf-contact-hero__copy {
	padding-top: 40px;
}

.mxf-contact-eyebrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 27px;
	padding: 0 15px;
	border-radius: 999px;
	background: #5e6265;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.02em;
}

.mxf-contact-hero h1 {
	max-width: 610px;
	margin: 23px 0 21px;
	color: #111;
	font-family: var(--mxf-font-display);
	font-size: clamp(38px, 3vw, 45px);
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -0.035em;
}

.mxf-contact-hero__copy > p {
	max-width: 545px;
	margin: 0;
	color: #59616c;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.55;
	letter-spacing: 0.01em;
}

.mxf-contact-hero__media {
	display: flex;
	align-items: flex-start;
	justify-content: flex-end;
	min-width: 0;
	padding-top: 4px;
}

.mxf-contact-hero__media img {
	display: block;
	width: 100%;
	max-width: 660px;
	height: auto;
	object-fit: contain;
}

.mxf-contact-hero__fallback {
	position: relative;
	width: min(100%, 660px);
	aspect-ratio: 1.49;
	border-radius: 36% 22% 22% 35%;
	background:
		radial-gradient(circle at 50% 57%, #2774ef 0 11%, transparent 11.5%),
		radial-gradient(circle at 50% 57%, #dbeef9 0 33%, transparent 33.5%),
		linear-gradient(145deg, #d79049, #8f4e24);
}

.mxf-contact-hero__fallback span {
	position: absolute;
	inset: 21% 27% 18%;
	border-radius: 50%;
	background: linear-gradient(135deg, #7bb8d9, #d7eef7);
}

/* Contact bar */
.mxf-contact-channels {
	position: relative;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 13px 22px;
	width: min(100%, 528px);
	min-height: 94px;
	margin-top: 29px;
	padding: 17px 26px 15px;
	border-radius: 48px;
	background: linear-gradient(110deg, #0870f9 0%, #258df8 68%, #2995f9 100%);
	box-shadow: 0 15px 32px rgb(0 91 246 / 10%);
}

.mxf-contact-channels__status {
	position: absolute;
	top: -11px;
	right: 43px;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	min-width: 155px;
	height: 34px;
	padding: 0 19px;
	border-radius: 0 0 22px 22px;
	background: #e3f0f8;
	color: #303b46;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
}

.mxf-contact-channels__status::before,
.mxf-contact-channels__status::after {
	content: "";
	position: absolute;
	top: 0;
	width: 16px;
	height: 14px;
	background: transparent;
}

.mxf-contact-channels__status::before {
	left: -15px;
	border-radius: 0 13px 0 0;
	box-shadow: 8px -7px 0 0 #e3f0f8;
}

.mxf-contact-channels__status::after {
	right: -15px;
	border-radius: 13px 0 0;
	box-shadow: -8px -7px 0 0 #e3f0f8;
}

.mxf-contact-channels__status i {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #28c76f;
	box-shadow: 0 0 0 3px rgb(40 199 111 / 11%);
}

.mxf-contact-channel {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.25;
	white-space: nowrap;
}

.mxf-contact-channel:hover,
.mxf-contact-channel:focus-visible {
	color: #fff;
	opacity: 0.86;
}

.mxf-contact-channel svg {
	width: 22px;
	height: 22px;
	flex: 0 0 auto;
}

.mxf-contact-channel--phone {
	grid-column: 1 / 2;
	grid-row: 1;
	padding-top: 2px;
}

.mxf-contact-channel--email-primary {
	grid-column: 1;
	grid-row: 2;
}

.mxf-contact-channel--email-secondary {
	grid-column: 2;
	grid-row: 2;
}

/* Map and form */
.mxf-contact-map-form {
	position: relative;
	padding: 57px 0 84px;
}

.mxf-contact-map-form__inner {
	position: relative;
	min-height: 690px;
}

.mxf-contact-map {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	width: 72%;
	height: 615px;
	overflow: hidden;
	border-radius: 31px;
	background: #080b10;
	box-shadow: 0 18px 42px rgb(12 51 104 / 5%);
}

.mxf-contact-map::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(90deg, rgb(0 0 0 / 7%), transparent 32%, rgb(0 0 0 / 5%));
}

.mxf-contact-map img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 450ms ease;
}

.mxf-contact-map:hover img,
.mxf-contact-map:focus-visible img {
	transform: scale(1.015);
}

.mxf-contact-map__fallback {
	display: block;
	width: 100%;
	height: 100%;
	background:
		radial-gradient(circle at 49% 50%, rgb(50 117 255 / 55%) 0 4%, transparent 4.5%),
		linear-gradient(8deg, transparent 46%, #1264f4 46.5% 49.5%, transparent 50%),
		repeating-linear-gradient(72deg, transparent 0 76px, rgb(255 255 255 / 5%) 77px 79px),
		repeating-linear-gradient(-12deg, transparent 0 83px, rgb(255 255 255 / 4%) 84px 86px),
		#080b10;
}

.mxf-contact-map__label {
	position: absolute;
	left: 18%;
	bottom: 0;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-width: 139px;
	height: 38px;
	padding: 0 20px;
	border-radius: 18px 18px 0 0;
	background: #fff;
	color: #707984;
	font-size: 13px;
	font-weight: 500;
}

.mxf-contact-map__label::before,
.mxf-contact-map__label::after {
	content: "";
	position: absolute;
	bottom: 0;
	width: 26px;
	height: 26px;
	background: #fff;
	transform: rotate(45deg);
	z-index: -1;
}

.mxf-contact-map__label::before {
	left: -10px;
}

.mxf-contact-map__label::after {
	right: -10px;
}

.mxf-contact-map__label svg {
	width: 21px;
	height: 21px;
	color: #2a8af8;
	flex: 0 0 auto;
}

.mxf-contact-form-card {
	position: absolute;
	top: 52px;
	right: 0;
	z-index: 4;
	width: 520px;
	min-height: 615px;
	padding: 48px 24px 40px;
	border-radius: 31px;
	background: #fff;
	box-shadow: 0 25px 46px rgb(23 58 90 / 14%);
}

.mxf-contact-form-card h2 {
	margin: 0 0 35px;
	color: #101010;
	font-family: var(--mxf-font-display);
	font-size: 37px;
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -0.035em;
	text-align: center;
}

.mxf-contact-form__notice {
	margin: -18px 0 19px;
	padding: 11px 14px;
	border-radius: 12px;
	font-size: 13px;
	line-height: 1.45;
}

.mxf-contact-form__notice.is-success {
	background: #e7f9ef;
	color: #176a3f;
}

.mxf-contact-form__notice.is-error {
	background: #fff0f0;
	color: #9c2828;
}

.mxf-contact-form {
	position: relative;
	margin: 0;
}

.mxf-contact-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 14px;
}

.mxf-contact-form label {
	display: block;
	margin: 0;
}

.mxf-contact-form__full {
	grid-column: 1 / -1;
}

.mxf-contact-form input,
.mxf-contact-form select,
.mxf-contact-form textarea {
	width: 100%;
	margin: 0;
	border: 0;
	outline: 0;
	border-radius: 999px;
	background: #e3f0f8;
	color: #34414d;
	font-family: var(--mxf-font-body);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.2;
	box-shadow: inset 0 0 0 1px transparent;
	transition: box-shadow 160ms ease, background-color 160ms ease;
}

.mxf-contact-form input,
.mxf-contact-form select {
	height: 42px;
	padding: 0 15px;
}

.mxf-contact-form select {
	appearance: none;
	padding-right: 45px;
	background-image:
		linear-gradient(45deg, transparent 50%, #687581 50%),
		linear-gradient(135deg, #687581 50%, transparent 50%);
	background-position:
		calc(100% - 20px) 18px,
		calc(100% - 15px) 18px;
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
}

.mxf-contact-form textarea {
	display: block;
	height: 181px;
	min-height: 181px;
	padding: 17px 15px;
	border-radius: 23px;
	resize: vertical;
}

.mxf-contact-form input::placeholder,
.mxf-contact-form textarea::placeholder,
.mxf-contact-form select:invalid {
	color: #7e8b96;
	opacity: 1;
}

.mxf-contact-form input:focus,
.mxf-contact-form select:focus,
.mxf-contact-form textarea:focus {
	background: #e9f5fb;
	box-shadow: inset 0 0 0 2px rgb(0 83 246 / 25%);
}

.mxf-contact-form button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 54px;
	margin-top: 24px;
	padding: 0 28px;
	border: 0;
	border-radius: 999px;
	background: var(--mxf-primary);
	color: #fff;
	font-family: var(--mxf-font-body);
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.mxf-contact-form button:hover,
.mxf-contact-form button:focus-visible {
	background: #0049dc;
	transform: translateY(-1px);
	box-shadow: 0 12px 24px rgb(0 83 246 / 20%);
}

.mxf-contact-form__honeypot {
	position: absolute !important;
	left: -10000px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

/* Demo FAQ */
.mxf-contact-faq {
	position: relative;
	padding: 11px 0 136px;
}

.mxf-contact-faq__inner {
	display: grid;
	grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
	gap: 69px;
	align-items: center;
}

.mxf-contact-faq__content h2 {
	margin: 0 0 32px;
	color: #111;
	font-family: var(--mxf-font-display);
	font-size: 38px;
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -0.035em;
}

.mxf-contact-faq__list {
	border-top: 1px solid #b8ceda;
}

.mxf-contact-faq__item {
	border-bottom: 1px solid #b8ceda;
}

.mxf-contact-faq__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 22px;
	min-height: 83px;
	padding: 22px 0;
	color: #151a20;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.4;
	list-style: none;
	cursor: pointer;
}

.mxf-contact-faq__item summary::-webkit-details-marker {
	display: none;
}

.mxf-contact-faq__item summary span {
	display: inline-flex;
	align-items: baseline;
	gap: 0;
}

.mxf-contact-faq__item summary strong {
	font-weight: 500;
}

.mxf-contact-faq__item summary i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 21px;
	height: 21px;
	flex: 0 0 auto;
	color: #334a5c;
}

.mxf-contact-faq__item summary svg {
	width: 100%;
	height: 100%;
	transition: opacity 180ms ease;
}

.mxf-contact-faq__item[open] summary i {
	color: var(--mxf-primary);
}

.mxf-contact-faq__item[open] summary .mxf-contact-faq__vertical {
	opacity: 0;
}

.mxf-contact-faq__answer {
	padding: 0 42px 27px 0;
}

.mxf-contact-faq__answer p {
	margin: 0;
	color: #59616c;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.55;
}

.mxf-contact-faq__media {
	display: grid;
	grid-template-columns: 200px minmax(0, 1fr);
	gap: 14px;
	height: 490px;
}

.mxf-contact-faq__image {
	overflow: hidden;
	border: 1px solid rgb(78 126 151 / 12%);
	border-radius: 26px;
	background:
		radial-gradient(circle at 70% 70%, rgb(64 219 196 / 20%), transparent 44%),
		linear-gradient(145deg, #fff, #e7f7f3);
}

.mxf-contact-faq__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mxf-contact-faq__image--left img {
	object-position: center;
}

.mxf-contact-faq__image--right img {
	object-position: center top;
}

/* Tablet */
@media (max-width: 1180px) {
	.mxf-contact-breadcrumb-shell,
	.mxf-contact-hero__inner,
	.mxf-contact-map-form__inner,
	.mxf-contact-faq__inner {
		width: calc(100% - 32px);
	}

	.mxf-contact-hero__inner {
		gap: 28px;
	}

	.mxf-contact-hero__copy {
		padding-top: 36px;
	}

	.mxf-contact-hero h1 {
		font-size: 39px;
	}

	.mxf-contact-hero__copy > p {
		font-size: 16px;
	}

	.mxf-contact-channels {
		padding-inline: 20px;
	}

	.mxf-contact-channel {
		font-size: 13px;
	}

	.mxf-contact-map {
		width: 71%;
	}

	.mxf-contact-form-card {
		width: 490px;
	}

	.mxf-contact-faq__inner {
		gap: 42px;
	}

	.mxf-contact-faq__media {
		grid-template-columns: 160px minmax(0, 1fr);
	}
}

/* Stacked layout */
@media (max-width: 900px) {
	.mxf-contact-hero {
		padding-bottom: 45px;
	}

	.mxf-contact-hero__inner {
		grid-template-columns: 1fr;
		gap: 34px;
	}

	.mxf-contact-hero__copy {
		padding-top: 42px;
	}

	.mxf-contact-hero__copy > p {
		max-width: 680px;
	}

	.mxf-contact-hero__media {
		justify-content: center;
		padding-top: 0;
	}

	.mxf-contact-map-form {
		padding-top: 40px;
	}

	.mxf-contact-map-form__inner {
		min-height: 0;
	}

	.mxf-contact-map {
		position: relative;
		width: 100%;
		height: 470px;
	}

	.mxf-contact-form-card {
		position: relative;
		top: auto;
		right: auto;
		width: calc(100% - 48px);
		min-height: 0;
		margin: -72px auto 0;
	}

	.mxf-contact-faq {
		padding-top: 20px;
	}

	.mxf-contact-faq__inner {
		grid-template-columns: 1fr;
		gap: 48px;
	}

	.mxf-contact-faq__content {
		max-width: 720px;
	}

	.mxf-contact-faq__media {
		width: min(100%, 680px);
		margin-inline: auto;
	}
}

/* Mobile */
@media (max-width: 640px) {
	.mxf-contact-breadcrumb-shell,
	.mxf-contact-hero__inner,
	.mxf-contact-map-form__inner,
	.mxf-contact-faq__inner {
		width: calc(100% - 24px);
	}

	.mxf-contact-breadcrumb-shell {
		padding-top: 8px;
	}

	.mxf-contact-breadcrumb {
		min-height: 52px;
		padding: 0 20px;
		font-size: 12px;
	}

	.mxf-contact-hero {
		padding-top: 10px;
	}

	.mxf-contact-hero__copy {
		padding-top: 28px;
	}

	.mxf-contact-hero h1 {
		margin-top: 18px;
		font-size: 34px;
	}

	.mxf-contact-hero__copy > p {
		font-size: 15px;
		line-height: 1.6;
	}

	.mxf-contact-channels {
		grid-template-columns: 1fr;
		gap: 13px;
		min-height: 0;
		padding: 28px 24px 22px;
		border-radius: 28px;
	}

	.mxf-contact-channels__status {
		right: 24px;
	}

	.mxf-contact-channel--phone,
	.mxf-contact-channel--email-primary,
	.mxf-contact-channel--email-secondary {
		grid-column: auto;
		grid-row: auto;
	}

	.mxf-contact-map-form {
		padding: 25px 0 74px;
	}

	.mxf-contact-map {
		height: 350px;
		border-radius: 24px;
	}

	.mxf-contact-map__label {
		left: 50%;
		transform: translateX(-50%);
	}

	.mxf-contact-form-card {
		width: calc(100% - 20px);
		margin-top: -42px;
		padding: 35px 18px 28px;
		border-radius: 25px;
	}

	.mxf-contact-form-card h2 {
		margin-bottom: 27px;
		font-size: 31px;
	}

	.mxf-contact-form__grid {
		grid-template-columns: 1fr;
		gap: 13px;
	}

	.mxf-contact-form__full {
		grid-column: auto;
	}

	.mxf-contact-form input,
	.mxf-contact-form select {
		height: 46px;
	}

	.mxf-contact-form textarea {
		height: 150px;
		min-height: 150px;
	}

	.mxf-contact-faq {
		padding-bottom: 78px;
	}

	.mxf-contact-faq__content h2 {
		font-size: 32px;
	}

	.mxf-contact-faq__item summary {
		min-height: 72px;
		font-size: 15px;
	}

	.mxf-contact-faq__answer p {
		font-size: 14px;
	}

	.mxf-contact-faq__media {
		grid-template-columns: minmax(0, 0.55fr) minmax(0, 1.45fr);
		gap: 9px;
		height: 360px;
	}

	.mxf-contact-faq__image {
		border-radius: 20px;
	}
}
