@font-face {
	font-family: "Agrandhir";
	src: url("/static/fonts/agrandir/400-agrandir-regular.otf") format("opentype");
	font-weight: 400;
	font-display: swap;
}

@font-face {
	font-family: "Agrandhir Wide Light";
	src: url("/static/fonts/agrandir/300-agrandir-wide-light.otf") format("opentype");
	font-weight: 300;
	font-display: swap;
}

@font-face {
	font-family: "Agrandhir Bold";
	src: url("/static/fonts/agrandir/700-agrandir-text-bold.otf") format("opentype");
	font-weight: 700;
	font-display: swap;
}

.section.banner.bes-knowledge-banner {
	position: relative;
	display: block;
	min-height: 620px;
	padding: 0;
	overflow: hidden;
	background: linear-gradient(145deg, #003f3b 0%, #075b50 100%);
}

.bes-knowledge-banner__inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 45%) minmax(0, 55%);
	align-items: center;
	min-height: 620px;
	padding: 170px 0 0 4vw;
	box-sizing: border-box;
}

.bes-knowledge-banner__intro {
	position: relative;
	z-index: 1;
	padding-right: 32px;
}

body.single-post .section.banner.bes-knowledge-banner .bes-knowledge-banner__intro h1 {
	margin: 0 0 24px;
	color: #62bd00;
	font-size: clamp(2rem, 2.8vw, 3.1rem);
	line-height: 1.12;
	font-weight: 400;
	text-transform: none;
}

.bes-knowledge-banner__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	margin-bottom: 28px;
	color: #fff;
	font-size: 0.9rem;
}

.bes-knowledge-banner__labels {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.bes-knowledge-banner__label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 6px 20px;
	border: 1px solid rgba(255, 255, 255, 0.9);
	border-radius: 999px;
	color: #fff;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.2;
	text-decoration: none;
}

.bes-knowledge-banner__label:hover,
.bes-knowledge-banner__label:focus {
	background: #fff;
	color: #003f3b;
}

.bes-knowledge-banner__cta {
	background: transparent;
	border-color: #fff;
	color: #fff;
}

.bes-knowledge-banner__cta:hover,
.bes-knowledge-banner__cta:focus {
	background: #62bd00;
	border-color: #62bd00;
	color: #003f3b;
}

.bes-knowledge-banner__image {
	position: absolute;
	top: clamp(90px, 8.5vw, 160px);
	right: 0;
	bottom: 0;
	width: 55%;
}

.bes-knowledge-banner__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.single-post #secondary {
	float: right;
	width: 30%;
	padding-top: 30px !important;
	padding-left: 30px;
	box-sizing: border-box;
	text-align: left;
}

.single-post #primary {
	float: left;
	width: 70%;
	margin: 0;
	box-sizing: border-box;
}

.bes-knowledge-quote {
	position: relative;
	padding: 72px 0;
	overflow: hidden;
	background: #fff;
}

.bes-knowledge-quote__layout {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: 48px;
	align-items: center;
	max-width: 1180px;
	margin: 0 auto;
}

.bes-knowledge-quote__copy {
	max-width: 480px;
	text-align: left;
}

.bes-knowledge-quote__eyebrow {
	margin: 0 0 12px;
	color: #62bd00;
	font-family: "Agrandhir Bold", sans-serif;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.bes-knowledge-quote__copy h2 {
	margin: 0 0 16px;
	color: #003f3b;
	font-family: "Agrandhir Bold", sans-serif;
	font-size: clamp(2rem, 3vw, 2.75rem);
	line-height: 1.08;
}

.bes-knowledge-quote__copy > p:last-child {
	margin: 0;
	color: #28444b;
	font-family: "Agrandhir Wide Light", "Agrandhir", sans-serif;
	font-size: 20px;
	line-height: 1.5;
}

.bes-knowledge-quote__form {
	min-width: 0;
	padding: 28px;
	border: 1px solid #e0e8f2;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 12px 32px rgba(0, 63, 59, 0.08);
}

.bes-knowledge-quote__form,
.bes-knowledge-quote__form .hs-form,
.bes-knowledge-quote__form .hs-form * {
	font-family: "Agrandhir", Arial, sans-serif;
}

.bes-knowledge-quote__form .hs-form-field {
	margin-bottom: 14px;
}

/* Put email on its own row, followed by the full-width phone field. */
.bes-knowledge-quote__form .hs-form fieldset.form-columns-2:has(.hs_email) {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	max-width: 100%;
}

.bes-knowledge-quote__form .hs-form fieldset.form-columns-2:has(.hs_email) > .hs_email,
.bes-knowledge-quote__form .hs-form fieldset.form-columns-2:has(.hs_email) > .hs_phone {
	float: none !important;
	width: 100% !important;
	max-width: 100% !important;
}

.bes-knowledge-quote__form .hs-form-field input:not([type="checkbox"]):not([type="radio"]),
.bes-knowledge-quote__form .hs-form-field select,
.bes-knowledge-quote__form .hs-form-field textarea {
	box-sizing: border-box;
	max-width: 100%;
	border: 1px solid #d5deea;
	border-radius: 8px;
	background: #f7f9fc;
	color: #173b42;
	font-size: 14px;
}

.bes-knowledge-quote__form .hs-form-field input:not([type="checkbox"]):not([type="radio"]),
.bes-knowledge-quote__form .hs-form-field select {
	min-height: 44px;
}

.bes-knowledge-quote__form .hs-form-field textarea {
	min-height: 100px;
	border-radius: 8px;
}

.bes-knowledge-quote__form .hs-form-field.hs_phone .input {
	display: block !important;
	width: 100%;
	min-width: 0;
}

.bes-knowledge-quote__form .hs-form-field.hs_phone .hs-fieldtype-intl-phone {
	display: block !important;
	width: 100%;
	min-width: 0;
}

.bes-knowledge-quote__form .hs-form-field.hs_phone .hs-fieldtype-intl-phone .input {
	display: flex !important;
	align-items: center;
	justify-content: flex-start !important;
	flex-wrap: nowrap;
	gap: 8px !important;
	width: 100% !important;
	min-width: 0;
}

.bes-knowledge-quote__form .hs-form-field.hs_phone .hs-fieldtype-intl-phone .input > * {
	flex: 1 1 0% !important;
	width: auto !important;
	max-width: none !important;
	min-width: 0;
	margin: 0 !important;
}

.bes-knowledge-quote__form .hs-form-field.hs_phone .hs-fieldtype-intl-phone .input > *:first-child {
	flex: 0 0 47% !important;
	width: 47% !important;
	max-width: 47% !important;
}

.bes-knowledge-quote__form .hs-form-field.hs_phone .hs-fieldtype-intl-phone select.hs-input {
	flex: 0 0 47% !important;
	box-sizing: border-box;
	width: 47% !important;
	max-width: 47% !important;
	min-width: 0;
}

.bes-knowledge-quote__form .hs-form-field.hs_phone .hs-fieldtype-intl-phone input[type="tel"] {
	flex: 0 0 47% !important;
	box-sizing: border-box;
	width: 47% !important;
	max-width: 47% !important;
	min-width: 0;
}

.bes-knowledge-quote__form .hs-form-field.hs_phone > label {
	display: none;
}

.bes-knowledge-quote__form .hs-button {
	min-height: 44px;
	padding: 10px 24px;
	border: 0;
	border-radius: 6px !important;
	background: #034b46;
	color: #fff;
	font-weight: 600;
}

.bes-knowledge-quote__form .hs-button:hover,
.bes-knowledge-quote__form .hs-button:focus {
	background: #62bd00;
	color: #003f3b;
}

.bes-knowledge-banner:not(.has-featured-image) .bes-knowledge-banner__inner {
	grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 992px) {
	.single-post #secondary {
		float: none;
		width: 100%;
		padding-left: 0;
	}

	.single-post #primary {
		float: none;
		width: 100%;
	}

	.bes-knowledge-quote {
		padding: 48px 0;
	}

	.bes-knowledge-quote__layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}

	.bes-knowledge-quote__form {
		padding: 20px;
	}
}

@media (max-width: 768px) {
	.section.banner.bes-knowledge-banner {
		min-height: 0;
	}

	.bes-knowledge-banner__inner {
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
		padding: 36px 24px 0;
	}

	.bes-knowledge-banner__intro {
		padding: 0 0 32px;
	}

	body.single-post .section.banner.bes-knowledge-banner .bes-knowledge-banner__intro h1 {
		font-size: clamp(1.8rem, 7vw, 2.5rem);
	}

	.bes-knowledge-banner__meta {
		margin-bottom: 28px;
	}

	.bes-knowledge-banner__image {
		position: relative;
		top: auto;
		width: calc(100% + 48px);
		margin: 0 -24px;
	}

	.bes-knowledge-banner__image img {
		width: 100%;
		height: auto;
	}

}

/* Keep HubSpot's phone country selector and number field adjacent. */
#be-contact-form .hs_phone .hs-fieldtype-intl-phone .input {
	display: grid !important;
	grid-template-columns: minmax(0, 47%) minmax(0, 47%) !important;
	align-items: center !important;
	justify-content: initial !important;
	column-gap: 8px !important;
	width: 100% !important;
	min-width: 0 !important;
}

#be-contact-form .hs_phone .hs-fieldtype-intl-phone .input > :has(select.hs-input) {
	grid-column: 1 !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	margin: 0 !important;
}

#be-contact-form .hs_phone .hs-fieldtype-intl-phone .input > :has(input[type="tel"]) {
	grid-column: 2 !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	margin: 0 !important;
}

#be-contact-form .hs_phone .hs-fieldtype-intl-phone .input > select.hs-input {
	grid-column: 1 !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	margin: 0 !important;
}

#be-contact-form .hs_phone .hs-fieldtype-intl-phone .input > input[type="tel"] {
	grid-column: 2 !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	margin: 0 !important;
}

@media (max-width: 768px) {
	#be-contact-form .hs_phone .hs-fieldtype-intl-phone .input {
		grid-template-columns: minmax(0, 100%) !important;
		row-gap: 8px !important;
	}

	#be-contact-form .hs_phone .hs-fieldtype-intl-phone .input > :has(select.hs-input),
	#be-contact-form .hs_phone .hs-fieldtype-intl-phone .input > :has(input[type="tel"]),
	#be-contact-form .hs_phone .hs-fieldtype-intl-phone .input > select.hs-input,
	#be-contact-form .hs_phone .hs-fieldtype-intl-phone .input > input[type="tel"] {
		grid-column: 1 !important;
		width: 100% !important;
		max-width: 100% !important;
	}
}
