.bse-leader-card {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	align-items: center;
	column-gap: 16px;
}

.bse-leader-card .et_pb_team_member_image {
	align-self: start;
	margin: 0;
	width: 48px;
}

.bse-leader-card .et_pb_team_member_image img {
	display: block;
	height: 48px;
	width: 48px;
}

.bse-leader-card .et_pb_team_member_description {
	min-width: 0;
}

.bse-leader-card .et_pb_member_position {
	margin-top: 4px;
}

.bse-leader-card .et_pb_member_social_links {
	display: none;
}

.bse-leadership-row {
	display: grid;
	gap: 28px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bse-leadership-row::after {
	display: none;
}

/* Divi emits quarter-column widths after this asset; the scoped important values keep each grid item at its track width. */
.et_pb_row.bse-leadership-row > .et_pb_column.et_pb_column_1_4 {
	display: flex;
	float: none;
	flex-direction: column;
	margin-right: 0 !important;
	width: 100% !important;
}

.bse-leadership-row .bse-leader-card {
	align-items: center;
	box-shadow: 0 12px 32px rgba(4, 48, 76, 0.08);
	column-gap: 16px;
	display: grid;
	flex: 1 1 auto;
	grid-template-columns: 48px minmax(0, 1fr);
	width: 100%;
}

.bse-referrals-card .et_pb_blurb_content {
	margin: 0;
	max-width: 760px;
}

.bse-referrals-card .et_pb_blurb_container {
	padding-inline-start: 0;
}

/* Compact, reusable section eyebrows. Important overrides the legacy fixed-width Divi fields on the migrated page. */
.bse-section-eyebrow {
	border-radius: 7px !important;
	max-width: 100%;
	padding: 6px 14px !important;
	width: max-content !important;
}

.bse-section-eyebrow .et_pb_text_inner,
.bse-section-eyebrow p {
	margin: 0;
	padding: 0;
	white-space: nowrap;
}

/* Pull the global CTA into this page while preserving protected space below the estimate content. */
body .et-l--footer {
	position: relative;
	z-index: 10;
}

body .et-l--footer .et_pb_section_0_tb_footer {
	overflow: visible;
}

body .et-l--footer .et_pb_row_0_tb_footer.et_pb_row {
	margin-top: -160px !important;
	position: relative;
	z-index: 10;
}

.bse-estimate-guide .et_pb_blurb_container,
.bse-direct-contact-card .et_pb_blurb_container {
	padding-inline-start: 0;
}

.bse-estimate-guide .et_pb_blurb_description > p {
	margin-bottom: 18px;
}

.bse-estimate-steps {
	counter-reset: bse-estimate-step;
	display: grid;
	gap: 14px;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.bse-estimate-steps li {
	counter-increment: bse-estimate-step;
	display: grid;
	grid-template-columns: 30px minmax(0, 1fr);
	column-gap: 10px;
	margin: 0;
}

.bse-estimate-steps li::before {
	align-items: center;
	background: #f84004;
	border-radius: 50%;
	color: #fff;
	content: counter(bse-estimate-step);
	display: flex;
	font-size: 12px;
	font-weight: 700;
	grid-column: 1;
	grid-row: 1 / span 2;
	height: 30px;
	justify-content: center;
	width: 30px;
}

.bse-estimate-steps strong,
.bse-estimate-steps span {
	display: block;
	grid-column: 2;
}

.bse-estimate-steps strong {
	color: #fff;
	font-size: 14px;
	line-height: 1.25;
	margin-bottom: 2px;
}

.bse-estimate-steps span {
	color: #d7e1e8;
	font-size: 13px;
	line-height: 1.45;
}

.bse-estimate-guide,
.bse-direct-contact-card {
	border-top: 4px solid #f84004 !important;
	box-shadow: 0 18px 48px rgba(4, 48, 76, 0.1);
}

.bse-direct-links {
	display: grid;
	gap: 0;
}

.bse-direct-links a,
.bse-direct-links p {
	display: grid;
	gap: 2px;
	margin: 0 !important;
	padding: 11px 0;
}

.bse-direct-links a + a,
.bse-direct-links a + p {
	border-top: 1px solid #e6ecf5;
}

.bse-direct-links a {
	text-decoration: none;
}

.bse-direct-links span {
	color: #69798b;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.bse-direct-links strong {
	color: #04304c;
	font-size: 14px;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.bse-direct-links a:hover strong,
.bse-direct-links a:focus-visible strong {
	color: #f84004;
}

.bse-direct-links a:focus-visible {
	border-radius: 4px;
	outline: 2px solid #f84004;
	outline-offset: 3px;
}

@media (min-width: 768px) and (max-width: 980px) {
	body .et-l--footer .et_pb_row_0_tb_footer.et_pb_row {
		margin-top: -152px !important;
	}

	.bse-leadership-row {
		gap: 22px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	body .et-l--footer .et_pb_row_0_tb_footer.et_pb_row {
		margin-top: -148px !important;
	}

	.bse-leadership-row {
		gap: 18px;
		grid-template-columns: minmax(0, 1fr);
	}

	.bse-leadership-row .bse-leader-card {
		grid-template-columns: 44px minmax(0, 1fr);
		column-gap: 14px;
	}

	.bse-leader-card .et_pb_team_member_image,
	.bse-leader-card .et_pb_team_member_image img {
		height: 44px;
		width: 44px;
	}

	.bse-estimate-grid .et_pb_column:first-child {
		margin-bottom: 24px;
	}
}
