/* Contact page only. All actual contact details belong to editable page content. */
.bdp-contact-page {
	padding-block: 24px 80px;
	color: var(--bdp-ink);
	font-family: var(--bdp-body);
}

.bdp-contact-page .bdp-page-breadcrumb {
	margin-bottom: 36px;
	color: var(--bdp-muted);
	font-size: 12px;
	line-height: 1.7;
}

.bdp-contact-page .bdp-page-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bdp-contact-page .bdp-page-breadcrumb li + li::before {
	content: "/";
	margin-right: 12px;
	color: var(--bdp-line);
}

.bdp-contact-page .bdp-page-breadcrumb a:hover {
	color: var(--bdp-red);
	text-decoration: underline;
}

.bdp-contact-heading {
	margin-bottom: 40px;
}

.bdp-contact-heading .bdp-eyebrow {
	margin-bottom: 14px;
	color: var(--bdp-muted);
}

.bdp-contact-heading h1 {
	margin: 0 0 24px;
	font-family: var(--bdp-heading);
	font-size: clamp(46px, 4.5vw, 64px);
	font-weight: 400;
	line-height: 1.05;
}

.bdp-contact-heading .bdp-accent {
	width: 64px;
}

.bdp-contact-intro {
	max-width: 650px;
	margin: 24px 0 0;
	font-size: 18px;
	line-height: 1.7;
}

.bdp-contact-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
	align-items: start;
	gap: 40px;
}

.bdp-contact-content,
.bdp-contact-aside {
	min-width: 0;
	overflow-wrap: anywhere;
}

.bdp-contact-content {
	font-size: 16px;
	line-height: 1.8;
}

.bdp-contact-content :where(h2, h3, h4) {
	font-family: var(--bdp-heading);
	font-weight: 400;
	line-height: 1.15;
}

.bdp-contact-content h2 {
	margin: 32px 0 20px;
	font-size: 34px;
}

.bdp-contact-content h3 {
	margin: 0 0 12px;
	font-size: 28px;
}

.bdp-contact-content > :first-child {
	margin-top: 0;
}

.bdp-contact-content > p {
	margin-bottom: 16px;
}

.bdp-contact-content > p:empty {
	display: none;
}

/* Older page content keeps its original markup and reading order. Multiline
   contact paragraphs receive a card treatment without parsing names or details. */
.bdp-contact-content > p:has(br) {
	margin-block: 0 24px;
	padding: 24px 28px;
	border: 1px solid var(--bdp-line);
	border-left: 4px solid var(--bdp-red);
	border-radius: var(--bdp-radius);
	background: var(--bdp-paper);
	line-height: 1.9;
}

.bdp-contact-content > p:has(br)::first-line {
	font-family: var(--bdp-heading);
	font-size: 28px;
	font-weight: 400;
}

/* Optional editor classes used by the Gutenberg fixture. No content rewriting. */
.bdp-contact-content .bdp-contact-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	margin-block: 0 24px;
}

.bdp-contact-content .bdp-contact-cards > .wp-block-group__inner-container {
	display: contents;
}

.bdp-contact-content .bdp-contact-card {
	min-width: 0;
	margin: 0;
	padding: 28px;
	border: 1px solid var(--bdp-line);
	border-top: 4px solid var(--bdp-red);
	border-radius: var(--bdp-radius);
	background: var(--bdp-paper);
}

.bdp-contact-content .bdp-contact-card :where(h2, h3) {
	margin-top: 0;
}

.bdp-contact-content .bdp-contact-card > :last-child,
.bdp-contact-content .bdp-contact-card > .wp-block-group__inner-container > :last-child {
	margin-bottom: 0;
}

.bdp-contact-content .bdp-contact-company {
	margin-top: 24px;
	border-color: transparent;
	background: var(--bdp-soft);
}

.bdp-contact-content a:not(.button):not(.bdp-button):not(.wp-block-button__link) {
	text-decoration: underline;
	text-decoration-color: var(--bdp-red);
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

.bdp-contact-content a:is([href^="mailto:"], [href^="tel:"]) {
	display: inline-block;
	max-width: 100%;
	min-height: 44px;
	padding-block: 8px;
	font-size: 15px;
	line-height: 1.7;
	overflow-wrap: anywhere;
}

.bdp-contact-content a:hover {
	color: var(--bdp-red);
}

.bdp-contact-content :where(input, select, textarea) {
	min-width: 0;
	max-width: 100%;
}

/* CF7 remains in the_content(): no substitute form, hidden feedback or new API. */
.bdp-contact-content .wpcf7 {
	min-width: 0;
	margin-top: 32px;
	padding: 28px;
	border: 1px solid var(--bdp-line);
	border-radius: var(--bdp-radius);
	background: var(--bdp-paper);
}

.bdp-contact-content .wpcf7-list-item {
	margin-inline: 0 16px;
}

.bdp-contact-content .wpcf7-response-output {
	overflow-wrap: anywhere;
}

.bdp-contact-aside {
	padding: 36px 32px 32px;
	border-radius: var(--bdp-radius);
	background: var(--bdp-ink);
	color: var(--bdp-paper);
}

.bdp-contact-aside .bdp-eyebrow {
	margin-bottom: 20px;
	color: #dadada;
}

.bdp-contact-aside h2 {
	margin: 0 0 22px;
	color: var(--bdp-paper);
	font-family: var(--bdp-heading);
	font-size: 38px;
	font-weight: 400;
	line-height: 1.12;
}

.bdp-contact-help-copy {
	margin: 24px 0 28px;
	color: #dadada;
	font-size: 15px;
	line-height: 1.8;
}

.bdp-contact-aside .bdp-button {
	justify-content: space-between;
	width: 100%;
	gap: 16px;
	text-align: left;
}

.bdp-contact-aside .bdp-button:focus-visible {
	outline-color: var(--bdp-paper);
	box-shadow: 0 0 0 6px var(--bdp-ink);
}

@media (max-width: 1100px) {
	.bdp-contact-layout {
		grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
		gap: 28px;
	}

	.bdp-contact-content .bdp-contact-card {
		padding: 24px;
	}

	.bdp-contact-aside {
		padding: 28px;
	}
}

@media (max-width: 960px) {
	.bdp-contact-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}
}

@media (max-width: 600px) {
	.bdp-contact-page {
		padding-block: 20px 48px;
	}

	.bdp-contact-page .bdp-page-breadcrumb {
		margin-bottom: 28px;
		font-size: 11px;
	}

	.bdp-contact-heading {
		margin-bottom: 32px;
	}

	.bdp-contact-heading h1 {
		margin-bottom: 20px;
		font-size: 46px;
	}

	.bdp-contact-intro {
		margin-top: 20px;
		font-size: 16px;
	}

	.bdp-contact-content {
		font-size: 15px;
	}

	.bdp-contact-content h2 {
		font-size: 30px;
	}

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

	.bdp-contact-content > p:has(br),
	.bdp-contact-content .bdp-contact-card,
	.bdp-contact-content .wpcf7 {
		padding: 22px;
		border-radius: 16px;
	}

	.bdp-contact-aside {
		padding: 28px 24px;
	}

	.bdp-contact-aside h2 {
		font-size: 34px;
	}
}
