.ans-icon {
	flex: 0 0 auto;
	width: 1.35rem;
	height: 1.35rem;
}

.contact-page__heading {
	display: grid;
	grid-template-columns: minmax(300px, 0.8fr) minmax(380px, 1.2fr);
	grid-template-rows: auto auto;
	align-items: end;
	max-width: none;
	padding-block: clamp(2.75rem, 5vw, 5rem) clamp(2rem, 3.5vw, 3.5rem);
	column-gap: clamp(3rem, 8vw, 8rem);
}

.contact-page__heading > .eyebrow {
	grid-column: 1;
	grid-row: 1;
}

.contact-page__heading .eyebrow,
.contact-section-heading .eyebrow,
.contact-social .eyebrow {
	margin-bottom: 0.65rem;
}

.contact-page__heading h1 {
	grid-column: 1;
	grid-row: 2;
	margin-bottom: 0;
	font-size: clamp(3.1rem, 4.8vw, 4.3rem); /* impeccable-disable-line design-system-font-size -- Display role scaled down for this page's narrower 0.8fr heading column, not a full-width hero */
}

.contact-page__heading .page-heading__intro {
	grid-column: 2;
	grid-row: 1 / span 2;
	align-self: end;
	max-width: 680px;
	padding-bottom: 0.55rem;
	font-size: clamp(1.05rem, 1.35vw, 1.25rem); /* impeccable-disable-line design-system-font-size -- narrower variant of the shared .page-heading__intro/.course-hero__lead lead role, scaled for this column's 680px max-width vs the base 750px */
	line-height: 1.6;
}

.contact-direct {
	padding-top: clamp(1rem, 2vw, 2rem);
}

.contact-section-heading {
	display: block;
	max-width: 760px;
	margin-bottom: clamp(1.75rem, 3vw, 2.75rem);
}

.contact-section-heading h2 {
	margin-bottom: 0;
	font-size: clamp(2rem, 3vw, 2.65rem); /* impeccable-disable-line design-system-font-size -- Headline role scaled down; this heading sits above a 760px-max prose column, not a full section-width headline */
	line-height: 1.16;
}

.contact-card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
}

.contact-card {
	min-width: 0;
	padding: clamp(1.5rem, 3vw, 2.5rem);
	border: 1px solid var(--ans-line);
	border-radius: 14px;
	background: var(--ans-paper);
	box-shadow: 0 12px 32px rgb(17 17 17 / 5%);
}

.contact-card__icon {
	display: inline-grid;
	width: 3.25rem;
	height: 3.25rem;
	margin-bottom: 1.5rem;
	border-radius: 50%;
	color: var(--ans-paper);
	background: var(--ans-magenta);
	place-items: center;
}

.contact-card:nth-child(2) .contact-card__icon {
	background: var(--ans-orange);
}

.contact-card:nth-child(3) .contact-card__icon {
	background: var(--ans-blue);
}

.contact-card h3 {
	font-size: clamp(1.3rem, 2vw, 1.8rem);
}

.contact-card p {
	color: #4b4b4b;
}

.contact-card a {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	max-width: 100%;
	font-weight: 750;
	overflow-wrap: anywhere;
}

.contact-card a .ans-icon,
.contact-location .ans-button .ans-icon {
	width: 1rem;
	height: 1rem;
}

.contact-location__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.75fr);
	align-items: center;
	gap: clamp(2rem, 6vw, 6rem);
}

.contact-map {
	position: relative;
	display: block;
	min-height: 390px;
	overflow: hidden;
	border: 1px solid var(--ans-line);
	background: #e9e6e3;
	box-shadow: var(--ans-shadow);
}

.contact-map img {
	width: 100%;
	height: 100%;
	min-height: 390px;
	object-fit: cover;
	transition: transform 300ms ease;
}

.contact-map:hover img {
	transform: scale(1.015);
}

.contact-map__action {
	position: absolute;
	right: 1rem;
	bottom: 1rem;
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.8rem 1rem;
	color: var(--ans-paper);
	background: var(--ans-ink);
	font-size: 0.85rem;
	font-weight: 750;
	text-decoration: none;
}

.contact-location__content address {
	padding-left: 1.25rem;
	margin-block: 1.75rem;
	border-left: 4px solid var(--ans-orange);
	font-style: normal;
	font-weight: 700;
}

.contact-location__hours {
	margin-bottom: 1.75rem;
}

.contact-location__hours p {
	margin: 0.25rem 0 0;
}

.contact-location .ans-button,
.contact-social__links a,
.contact-action {
	gap: 0.6rem;
}

.contact-actions__grid {
	display: grid;
	grid-template-columns: minmax(250px, 0.75fr) minmax(0, 1.25fr);
	align-items: start;
	gap: clamp(2rem, 7vw, 7rem);
}

.contact-actions__choices {
	border-top: 1px solid var(--ans-line);
}

.contact-action {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.4rem 0;
	border-bottom: 1px solid var(--ans-line);
	color: var(--ans-ink);
	text-decoration: none;
}

.contact-action strong,
.contact-action small {
	display: block;
}

.contact-action strong {
	margin-bottom: 0.2rem;
	font-size: 1.1rem; /* impeccable-disable-line design-system-font-size -- deliberate mid-scale emphasis between body and title for a tappable list row, not a body/title substitute */
}

.contact-action small {
	color: #555;
	font-size: 0.85rem;
}

.contact-action > .ans-icon {
	width: 1.5rem;
	height: 1.5rem;
	color: var(--ans-magenta);
	transition: transform 160ms ease;
}

.contact-action:hover > .ans-icon {
	transform: translate(0.15rem, -0.15rem);
}

.contact-social {
	color: var(--ans-ink);
	border-block: 1px solid var(--ans-line);
	background: var(--ans-paper);
}

.contact-social .eyebrow {
	color: var(--ans-blue);
}

.contact-social__inner {
	display: grid;
	grid-template-columns: minmax(260px, 1fr) minmax(320px, 0.8fr);
	align-items: center;
	gap: clamp(2rem, 7vw, 7rem);
}

.contact-social__inner h2 {
	margin-bottom: 0.35rem;
	font-size: clamp(1.9rem, 2.7vw, 2.45rem); /* impeccable-disable-line design-system-font-size -- Headline role scaled down for this two-column panel's 260px minimum column */
	line-height: 1.14;
}

.contact-social__inner p:last-child {
	margin: 0;
	color: #475466;
}

.contact-social__links {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
	padding: 0;
	margin: 0;
	list-style: none;
}

.contact-social__links a {
	display: flex;
	align-items: center;
	min-height: 4.5rem;
	padding: 1rem 1.15rem;
	border: 1px solid #b9c8dc;
	color: var(--ans-ink);
	background: #f8fafc;
	font-weight: 750;
	text-decoration: none;
	transition: border-color 160ms ease, background 160ms ease;
}

.contact-social__links a:hover {
	border-color: var(--ans-blue);
	background: var(--ans-paper);
	box-shadow: 0 10px 30px rgb(53 109 184 / 12%);
}

.contact-social__links li:first-child a > .ans-icon:first-child {
	color: var(--ans-blue);
}

.contact-social__links li:last-child a > .ans-icon:first-child {
	color: var(--ans-magenta);
}

.contact-social__links a .ans-icon:last-child {
	width: 1rem;
	height: 1rem;
	margin-left: auto;
}

.contact-chat {
	position: fixed;
	z-index: 1000;
	right: max(1.25rem, env(safe-area-inset-right));
	bottom: max(1.25rem, env(safe-area-inset-bottom));
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.8rem;
}

.contact-chat__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	min-height: 3.5rem;
	padding: 0.8rem 1.15rem;
	border: 0;
	border-radius: 999px;
	color: var(--ans-paper);
	background: var(--ans-magenta);
	box-shadow: 0 12px 35px rgb(17 17 17 / 28%);
	font-weight: 800;
	cursor: pointer;
	transition: background 160ms ease, transform 160ms ease;
}

.contact-chat__toggle:hover {
	background: #6f003f;
	transform: translateY(-2px);
}

.contact-chat__toggle .ans-icon {
	width: 1.4rem;
	height: 1.4rem;
}

.contact-chat__panel {
	width: min(380px, calc(100vw - 2rem));
	padding: 1.35rem;
	border: 1px solid var(--ans-line);
	background: var(--ans-paper);
	box-shadow: 0 20px 60px rgb(17 17 17 / 25%);
}

.contact-chat__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
}

.contact-chat__header .eyebrow {
	margin-bottom: 0.35rem;
}

.contact-chat__header h2 {
	margin-bottom: 0.85rem;
	font-size: 1.65rem; /* impeccable-disable-line design-system-font-size -- fixed 380px popup, not a responsive column; the Title role's vw-based clamp doesn't apply inside a panel that doesn't scale with viewport width */
}

.contact-chat__close {
	display: inline-grid;
	flex: 0 0 auto;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 1px solid var(--ans-line);
	border-radius: 50%;
	color: var(--ans-ink);
	background: var(--ans-paper);
	cursor: pointer;
	place-items: center;
}

.contact-chat__close .ans-icon {
	width: 1.15rem;
	height: 1.15rem;
}

.contact-chat__panel > p {
	color: #555;
	font-size: 0.85rem;
}

.contact-chat__options {
	display: grid;
	gap: 0.65rem;
}

.contact-chat__options a {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	padding: 0.8rem;
	border: 1px solid var(--ans-line);
	color: var(--ans-ink);
	text-decoration: none;
}

.contact-chat__options a:hover {
	border-color: var(--ans-magenta);
	background: #fff7fb;
}

.contact-chat__options strong,
.contact-chat__options small {
	display: block;
}

.contact-chat__options small {
	color: #595959;
	font-size: 0.75rem;
	overflow-wrap: anywhere;
}

.contact-chat__options > a > .ans-icon {
	width: 1.4rem;
	height: 1.4rem;
	color: var(--ans-magenta);
}

@media (max-width: 1240px) {
	.contact-card-grid {
		grid-template-columns: 1fr 1fr;
	}

	.contact-card:last-child {
		grid-column: 1 / -1;
	}

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

@media (max-width: 820px) {
	.contact-page__heading {
		display: block;
		max-width: 700px;
	}

	.contact-page__heading h1 {
		margin-bottom: 1.25rem;
	}

	.contact-page__heading .page-heading__intro {
		padding-bottom: 0;
	}
}

@media (max-width: 680px) {
	.contact-section-heading,
	.contact-card-grid,
	.contact-actions__grid,
	.contact-social__inner,
	.contact-social__links {
		grid-template-columns: 1fr;
	}

	.contact-card:last-child {
		grid-column: auto;
	}

	.contact-map,
	.contact-map img {
		min-height: 260px;
	}

	.contact-map__action {
		right: 0.65rem;
		bottom: 0.65rem;
		left: 0.65rem;
		justify-content: center;
	}

	.contact-chat {
		right: max(0.75rem, env(safe-area-inset-right));
		bottom: max(0.75rem, env(safe-area-inset-bottom));
	}

	.contact-chat__panel {
		width: calc(100vw - 1.5rem);
		max-height: calc(100vh - 6.5rem);
		overflow-y: auto;
	}

	.contact-chat__toggle {
		width: 3.5rem;
		padding: 0;
	}

	.contact-chat__toggle span {
		display: none;
	}
}
