/* ==================================================
   Executive Medicine — Contact and confirmation pages
   Page-specific styles only
   ================================================== */

.em-contact-page-body,
.em-contact-page-body * {
	box-sizing: border-box;
}

.em-contact-page-body {
	margin: 0;
	color: #4f626b;
	background: #ffffff;
}

.page-card.em-contact-page {
	--em-contact-navy: #243642;
	--em-contact-navy-deep: #1b2d37;
	--em-contact-green: #49765a;
	--em-contact-green-light: #86bf96;
	--em-contact-pale: #edf4ef;
	--em-contact-cream: #f7f4ee;
	--em-contact-gold: #a98145;
	--em-contact-text: #4f626b;
	--em-contact-border: rgba(36, 54, 66, 0.15);
	--em-contact-shadow: 0 14px 34px rgba(36, 54, 66, 0.08);
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding: 0;
	overflow: hidden;
	background: #ffffff;
	border-radius: 0;
	box-shadow: none;
}

.em-contact-page h1,
.em-contact-page h2,
.em-contact-page h3 {
	font-family: Didot, "Bodoni 72", "Bodoni MT", Georgia, serif;
	font-weight: 500;
}

.em-contact-container {
	width: min(100% - 60px, 1180px);
	margin-right: auto;
	margin-left: auto;
}

.em-contact-eyebrow {
	margin: 0 0 12px;
	color: var(--em-contact-green);
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	line-height: 1.4;
	text-transform: uppercase;
}

.em-contact-eyebrow-light {
	color: #b9d7bd;
}

.em-contact-hero {
	position: relative;
	padding: 90px 30px 76px;
	color: #ffffff;
	background: var(--em-contact-navy);
	text-align: center;
}

.em-contact-hero::after {
	content: "";
	display: block;
	width: 72px;
	height: 3px;
	margin: 30px auto 0;
	background: var(--em-contact-green-light);
}

.em-contact-hero-inner {
	max-width: 920px;
	margin: 0 auto;
}

.em-contact-logo {
	display: block;
	width: auto;
	height: 96px;
	max-width: 100%;
	margin: 0 auto 34px;
	object-fit: contain;
	filter: none;
}

.em-contact-hero h1 {
	margin: 0 0 21px;
	color: #fffdf7;
	font-size: clamp(3rem, 5.8vw, 5.15rem);
	font-weight: 500;
	line-height: 1.02;
	letter-spacing: -0.04em;
	text-wrap: balance;
}

.em-contact-hero-copy {
	max-width: 720px;
	margin: 0 auto 16px;
	color: rgba(255, 255, 255, 0.93);
	font-size: 1.05rem;
	line-height: 1.7;
}

.em-contact-hero-meta {
	margin: 0;
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.78rem;
	letter-spacing: 0.055em;
}

.em-contact-section {
	padding: 92px 0;
	background: #ffffff;
}

.em-contact-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
	align-items: start;
	gap: 30px;
}

.em-contact-form-panel,
.em-contact-details {
	border: 1px solid var(--em-contact-border);
	box-shadow: var(--em-contact-shadow);
}

.em-contact-form-panel {
	padding: clamp(30px, 5vw, 58px);
	background: #ffffff;
}

.em-contact-form-panel h2,
.em-contact-details h2,
.em-contact-section-heading h2,
.em-thanks-panel h2 {
	margin: 0;
	color: var(--em-contact-navy);
	font-size: clamp(2.25rem, 4vw, 3.6rem);
	line-height: 1.08;
	letter-spacing: -0.03em;
	text-wrap: balance;
}

.em-contact-intro {
	max-width: 630px;
	margin: 18px 0 31px;
	color: var(--em-contact-text);
	font-size: 1rem;
	line-height: 1.7;
}

.em-contact-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.em-form-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.em-form-field:nth-of-type(4),
.em-contact-form .cf-turnstile,
.em-contact-form .em-contact-button {
	grid-column: 1 / -1;
}

.em-contact-form .cf-turnstile {
	width: 100%;
	min-width: 0;
}

.em-form-field label {
	color: var(--em-contact-navy);
	font-size: 0.86rem;
	font-weight: 700;
	line-height: 1.35;
}

.em-form-field label span {
	color: #74838a;
	font-weight: 500;
}

.em-form-field input,
.em-form-field textarea {
	width: 100%;
	margin: 0;
	padding: 13px 14px;
	color: var(--em-contact-navy);
	background: #fbfcfb;
	border: 1px solid rgba(36, 54, 66, 0.26);
	border-radius: 0;
	font: inherit;
	font-size: 1rem;
	line-height: 1.45;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.em-form-field textarea {
	min-height: 150px;
	resize: vertical;
}

.em-form-field input:focus,
.em-form-field textarea:focus {
	background: #ffffff;
	border-color: var(--em-contact-green);
	box-shadow: 0 0 0 3px rgba(134, 191, 150, 0.25);
	outline: none;
}

.em-contact-page .hp-field {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.em-contact-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	min-height: 50px;
	margin: 2px 0 0;
	padding: 13px 24px;
	color: #ffffff;
	background: var(--em-contact-green);
	border: 1px solid var(--em-contact-green);
	border-radius: 0;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.35;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.em-contact-button:hover,
.em-contact-button:focus-visible {
	color: #ffffff;
	background: var(--em-contact-navy);
	border-color: var(--em-contact-navy);
	transform: translateY(-1px);
}

.em-contact-button:focus-visible,
.em-contact-text-link:focus-visible,
.em-contact-details a:focus-visible,
.em-thanks-panel a:focus-visible {
	outline: 3px solid rgba(134, 191, 150, 0.55);
	outline-offset: 3px;
}

.em-contact-details {
	padding: 38px 32px;
	background: var(--em-contact-cream);
}

.em-contact-details h2 {
	font-size: clamp(2rem, 3.2vw, 2.75rem);
}

.em-contact-details > p:not(.em-contact-eyebrow) {
	margin: 18px 0 30px;
	color: var(--em-contact-text);
	font-size: 0.96rem;
	line-height: 1.7;
}

.em-contact-detail-list {
	display: grid;
	gap: 24px;
}

.em-contact-detail {
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr);
	gap: 13px;
	padding-top: 23px;
	border-top: 1px solid rgba(36, 54, 66, 0.14);
}

.em-contact-detail i {
	margin-top: 4px;
	color: var(--em-contact-green);
	font-size: 1rem;
	text-align: center;
}

.em-contact-detail h3 {
	margin: 0 0 7px;
	color: var(--em-contact-navy);
	font-family: "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: 1.4;
	text-transform: uppercase;
}

.em-contact-detail p {
	margin: 0;
	color: var(--em-contact-text);
	font-size: 0.92rem;
	line-height: 1.65;
}

.em-contact-detail a,
.em-thanks-panel a:not(.em-contact-button) {
	color: var(--em-contact-green);
	font-weight: 650;
	overflow-wrap: anywhere;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.em-contact-location {
	padding: 86px 0 90px;
	background: var(--em-contact-pale);
}

.em-contact-section-heading {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
	align-items: end;
	gap: 30px;
	margin-bottom: 34px;
}

.em-contact-section-heading .em-contact-eyebrow,
.em-contact-section-heading h2 {
	grid-column: 1;
}

.em-contact-section-heading h2 {
	grid-row: 2;
}

.em-contact-section-heading > p:last-child {
	grid-column: 2;
	grid-row: 2;
	margin: 0 0 5px;
	color: var(--em-contact-text);
	font-size: 1rem;
	line-height: 1.65;
}

.em-contact-map {
	overflow: hidden;
	background: #dfe7e1;
	border: 1px solid var(--em-contact-border);
	box-shadow: var(--em-contact-shadow);
}

.em-contact-map iframe {
	display: block;
	width: 100%;
	height: 430px;
	border: 0;
}

.em-contact-return {
	margin-top: 28px;
	text-align: center;
}

.em-contact-text-link {
	color: var(--em-contact-green);
	font-weight: 700;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

/* Thank-you page */
.em-thanks-hero {
	padding-bottom: 68px;
}

.em-thanks-main {
	padding: 88px 30px 96px;
	background: var(--em-contact-cream);
}

.em-thanks-section {
	width: min(100%, 820px);
	margin: 0 auto;
}

.em-thanks-panel {
	padding: clamp(36px, 7vw, 70px);
	background: #ffffff;
	border: 1px solid var(--em-contact-border);
	box-shadow: var(--em-contact-shadow);
	text-align: center;
}

.em-thanks-icon {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	margin: 0 auto 24px;
	color: #ffffff;
	background: var(--em-contact-green);
	border-radius: 50%;
	font-size: 1.35rem;
}

.em-thanks-panel > p:not(.em-contact-eyebrow) {
	max-width: 630px;
	margin: 21px auto 0;
	color: var(--em-contact-text);
	font-size: 1rem;
	line-height: 1.75;
}

.em-thanks-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 32px;
}

.em-contact-button-secondary {
	color: var(--em-contact-navy);
	background: transparent;
	border-color: rgba(36, 54, 66, 0.4);
}

@media (max-width: 900px) {
	.em-contact-layout {
		grid-template-columns: 1fr;
	}

	.em-contact-details {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 30px;
	}

	.em-contact-details > .em-contact-eyebrow,
	.em-contact-details > h2,
	.em-contact-details > p,
	.em-contact-detail-list {
		grid-column: 1 / -1;
	}

	.em-contact-detail-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 680px) {
	.em-contact-container {
		width: min(100% - 36px, 1180px);
	}

	.em-contact-hero {
		padding: 72px 22px 62px;
	}

	.em-contact-logo {
		margin-bottom: 25px;
	}

	.em-contact-section {
		padding: 62px 0;
	}

	.em-contact-form {
		grid-template-columns: 1fr;
	}

	.em-form-field:nth-of-type(4),
	.em-contact-form .cf-turnstile,
	.em-contact-form .em-contact-button {
		grid-column: auto;
	}

	.em-contact-form .em-contact-button {
		width: 100%;
	}

	.em-contact-details,
	.em-contact-detail-list {
		display: grid;
		grid-template-columns: 1fr;
	}

	.em-contact-location {
		padding: 62px 0 70px;
	}

	.em-contact-section-heading {
		display: block;
	}

	.em-contact-section-heading > p:last-child {
		margin-top: 16px;
	}

	.em-contact-map iframe {
		height: 360px;
	}

	.em-thanks-main {
		padding: 38px 16px 50px;
	}

	.em-thanks-hero {
		padding: 38px 18px 34px;
	}

	.em-thanks-hero .em-contact-logo {
		width: auto;
		height: 64px;
		max-width: 100%;
		margin: 0 auto 16px;
		object-fit: contain;
		filter: none;
	}

	.em-thanks-hero .em-contact-eyebrow {
		margin-bottom: 7px;
		font-size: 0.67rem;
	}

	.em-thanks-hero h1 {
		margin-bottom: 11px;
		font-size: clamp(2rem, 9.5vw, 2.55rem);
		line-height: 1.06;
	}

	.em-thanks-hero .em-contact-hero-copy {
		margin-bottom: 0;
		font-size: 0.88rem;
		line-height: 1.5;
	}

	.em-thanks-hero::after {
		width: 48px;
		height: 2px;
		margin-top: 20px;
	}

	.em-thanks-panel {
		padding: 26px 18px 28px;
	}

	.em-thanks-icon {
		width: 46px;
		height: 46px;
		margin-bottom: 17px;
		font-size: 1rem;
	}

	.em-thanks-panel .em-contact-eyebrow {
		margin-bottom: 7px;
		font-size: 0.67rem;
	}

	.em-thanks-panel h2 {
		font-size: clamp(1.55rem, 7.4vw, 1.95rem);
		line-height: 1.14;
	}

	.em-thanks-panel > p:not(.em-contact-eyebrow) {
		margin-top: 15px;
		font-size: 0.88rem;
		line-height: 1.6;
	}

	.em-thanks-actions {
		gap: 8px;
		margin-top: 22px;
	}

	.em-thanks-actions .em-contact-button {
		min-height: 43px;
		padding: 10px 16px;
		font-size: 0.82rem;
	}

	.em-thanks-actions,
	.em-thanks-actions .em-contact-button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.em-contact-button,
	.em-form-field input,
	.em-form-field textarea {
		transition: none;
	}
}
