/**
 * Homepage event popup.
 *
 * The palette and proportions are sampled from the client-approved 1366x768
 * composition. Everything is scoped to the dedicated Flatsome lightbox.
 */

.mfp-container:has(.boc-home-popup-shell) {
	padding: 12px;
}

.boc-home-popup-shell.lightbox-content {
	--boc-popup-ground: #edf7ff;
	--boc-popup-blue: #125494;
	--boc-popup-orange: #b54700;
	--boc-popup-orange-hover: #953a00;
	--boc-popup-event-orange: #ca6a29;
	--boc-popup-button-orange: #e56100;
	--boc-popup-button-orange-hover: #c65300;
	--boc-popup-ink: #4e5455;
	--boc-popup-muted: #626b6f;
	--boc-popup-focus: #052f55;
	width: 100%;
	max-width: 960px;
	max-height: calc(100svh - 24px);
	margin: 0 auto;
	padding: 0 !important;
	overflow: auto;
	overscroll-behavior: contain;
	background: var(--boc-popup-ground);
	box-shadow: 0 18px 55px rgba(4, 30, 52, .28);
	scrollbar-color: var(--boc-popup-blue) var(--boc-popup-ground);
	scrollbar-width: thin;
}

.boc-home-popup-shell::-webkit-scrollbar {
	width: 10px;
}

.boc-home-popup-shell::-webkit-scrollbar-track {
	background: var(--boc-popup-ground);
}

.boc-home-popup-shell::-webkit-scrollbar-thumb {
	border: 2px solid var(--boc-popup-ground);
	border-radius: 10px;
	background: var(--boc-popup-blue);
}

.boc-home-popup-shell .boc-home-popup-content {
	margin: 0;
}

.boc-home-popup-shell .boc-home-popup {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	min-height: min(665px, calc(100svh - 40px));
	margin: 0;
	color: var(--boc-popup-ink);
	background: var(--boc-popup-ground);
}

.boc-home-popup-shell .boc-home-popup__visual {
	position: relative;
	min-width: 0;
	min-height: 665px;
	overflow: hidden;
	background: #8bbbe1;
}

.boc-home-popup-shell .boc-home-popup__photo {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	object-position: 29% center;
}

.boc-home-popup-shell .boc-home-popup__cta {
	position: absolute;
	left: 0;
	bottom: 64px;
	display: flex;
	align-items: center;
	width: min(367px, 62%);
	min-height: 118px;
	margin: 0;
	padding: 18px 40px;
	border-radius: 0 26px 26px 0;
	background: var(--boc-popup-blue);
	color: #fff;
	font-size: clamp(25px, 2.25vw, 34px);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -.02em;
	text-decoration: none;
	transition: background-color .18s ease-out;
}

.boc-home-popup-shell .boc-home-popup__cta:hover {
	background: #0b4379;
	color: #fff;
	text-decoration: none;
}

.boc-home-popup-shell .boc-home-popup__cta:focus-visible,
.boc-home-popup-shell .ff-el-form-control:focus-visible,
.boc-home-popup-shell .ff-btn-submit:focus-visible,
.mfp-content:has(.boc-home-popup-shell) .mfp-close:focus-visible {
	outline: 3px solid var(--boc-popup-focus);
	outline-offset: 3px;
}

.boc-home-popup-shell .boc-home-popup__panel {
	display: flex;
	min-width: 0;
	flex-direction: column;
	justify-content: flex-start;
	padding: 48px 50px 38px;
	background: var(--boc-popup-ground);
}

.boc-home-popup-shell .boc-home-popup__logo {
	display: block;
	width: 225px;
	height: auto;
	margin: 0;
}

.boc-home-popup-shell .boc-home-popup__event {
	display: grid;
	grid-template-columns: 55px minmax(0, 1fr);
	align-items: center;
	gap: 22px;
	margin-top: 42px;
	color: var(--boc-popup-event-orange);
}

.boc-home-popup-shell .boc-home-popup__calendar {
	display: block;
	width: 55px;
	height: 55px;
	margin: 0;
}

.boc-home-popup-shell .boc-home-popup__event time {
	display: flex;
	min-width: 0;
	flex-direction: column;
	font-size: clamp(18px, 1.55vw, 23px);
	font-style: normal;
	line-height: 1.18;
}

.boc-home-popup-shell .boc-home-popup__event strong {
	font-weight: 500;
}

.boc-home-popup-shell .boc-home-popup__event span {
	font-weight: 400;
}

.boc-home-popup-shell .boc-home-popup__title {
	margin: 50px 0 13px;
	color: var(--boc-popup-ink);
	font-size: clamp(29px, 2.45vw, 37px);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -.02em;
	text-wrap: balance;
}

.boc-home-popup-shell .boc-home-popup__intro {
	max-width: 35ch;
	margin: 0;
	color: var(--boc-popup-ink);
	font-size: clamp(18px, 1.6vw, 23px);
	font-weight: 400;
	line-height: 1.28;
}

.boc-home-popup-shell .boc-home-popup__form {
	margin-top: 30px;
	scroll-margin-top: 24px;
}

.boc-home-popup-shell .fluentform,
.boc-home-popup-shell .frm-fluent-form,
.boc-home-popup-shell .ff-el-group:last-child,
.boc-home-popup-shell .ff_submit_btn_wrapper {
	margin-bottom: 0;
}

.boc-home-popup-shell .ff-el-group {
	margin-bottom: 18px;
}

.boc-home-popup-shell .ff-el-input--label {
	margin-bottom: 7px;
}

.boc-home-popup-shell .ff-el-input--label label {
	margin: 0;
	color: var(--boc-popup-ink);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.25;
}

.boc-home-popup-shell .ff-el-input--label .ff-el-required {
	color: var(--boc-popup-orange);
}

.boc-home-popup-shell .ff-el-form-control {
	min-height: 52px;
	margin: 0;
	padding: 11px 16px;
	border: 1px solid #c9d4dc;
	border-radius: 10px;
	background: #fff;
	box-shadow: none;
	color: var(--boc-popup-ink);
	font-size: 17px;
	line-height: 1.35;
	transition: border-color .18s ease-out, box-shadow .18s ease-out;
}

.boc-home-popup-shell .ff-el-form-control::placeholder {
	color: var(--boc-popup-muted);
	opacity: 1;
}

.boc-home-popup-shell .ff-el-form-control:hover {
	border-color: #8499a7;
}

.boc-home-popup-shell .ff-el-form-control:focus {
	border-color: var(--boc-popup-blue);
	box-shadow: 0 0 0 3px rgba(18, 84, 148, .16);
}

.boc-home-popup-shell .ff-el-is-error .ff-el-form-control {
	border-color: #b42318;
}

.boc-home-popup-shell .error,
.boc-home-popup-shell .text-danger,
.boc-home-popup-shell .ff-el-is-error .error {
	color: #8d1d14;
}

.boc-home-popup-shell form.frm-fluent-form .ff-btn-submit,
.boc-home-popup-shell form.frm-fluent-form .ff-btn-submit:not(.ff_btn_no_style) {
	min-height: 52px;
	margin: 0;
	padding: 11px 28px;
	border: 0;
	border-radius: 10px;
	background: var(--boc-popup-button-orange) !important;
	box-shadow: none;
	color: #fff !important;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0;
	text-transform: none;
	opacity: 1;
	transition: background-color .18s ease-out;
}

.boc-home-popup-shell form.frm-fluent-form .ff-btn-submit:hover,
.boc-home-popup-shell form.frm-fluent-form .ff-btn-submit:focus {
	background: var(--boc-popup-button-orange-hover) !important;
	box-shadow: none;
	color: #fff !important;
	opacity: 1;
}

.boc-home-popup-shell form.frm-fluent-form .ff-btn-submit:disabled,
.boc-home-popup-shell form.frm-fluent-form .ff-btn-submit.ff-btn-loading {
	cursor: wait;
	opacity: .68;
}

.boc-home-popup-shell .ff-message-success {
	margin: 0;
	padding: 16px 18px;
	border: 0;
	border-radius: 10px;
	background: #dfeee5;
	color: #244b33;
	box-shadow: none;
}

.boc-home-popup-shell .boc-home-popup__missing-form {
	padding: 18px;
	border-radius: 10px;
	background: #fff2d8;
	color: #5d4211;
	line-height: 1.45;
}

.mfp-content:has(.boc-home-popup-shell) .mfp-close {
	top: 12px !important;
	right: 12px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #fff;
	color: #4e5455;
	opacity: 1;
	transition: background-color .18s ease-out, color .18s ease-out;
}

.mfp-content:has(.boc-home-popup-shell) .mfp-close:hover {
	background: #fff;
	color: #111;
}

.boc-home-popup-shell ::selection {
	background: var(--boc-popup-blue);
	color: #fff;
}

@media (max-width: 849px) {
	.boc-home-popup-shell.lightbox-content {
		max-height: calc(100svh - 24px);
	}

	.boc-home-popup-shell .boc-home-popup {
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
	}

	.boc-home-popup-shell .boc-home-popup__visual {
		min-height: clamp(230px, 52vw, 350px);
	}

	.boc-home-popup-shell .boc-home-popup__photo {
		object-position: 32% center;
	}

	.boc-home-popup-shell .boc-home-popup__cta {
		bottom: 28px;
		width: min(320px, 60%);
		min-height: 88px;
		padding: 15px 30px;
		border-radius: 0 22px 22px 0;
		font-size: clamp(23px, 4.4vw, 30px);
	}

	.boc-home-popup-shell .boc-home-popup__panel {
		padding: 34px 40px 38px;
	}

	.boc-home-popup-shell .boc-home-popup__logo {
		width: 210px;
	}

	.boc-home-popup-shell .boc-home-popup__event {
		margin-top: 30px;
	}

	.boc-home-popup-shell .boc-home-popup__event time {
		font-size: 20px;
	}

	.boc-home-popup-shell .boc-home-popup__title {
		margin-top: 38px;
		font-size: 32px;
	}

	.boc-home-popup-shell .boc-home-popup__intro {
		max-width: 42ch;
		font-size: 20px;
	}

	.boc-home-popup-shell .boc-home-popup__desktop-break {
		display: none;
	}
}

@media (min-width: 850px) {
	.boc-home-popup-shell .boc-home-popup,
	.boc-home-popup-shell .boc-home-popup__visual {
		min-height: 580px;
	}

	.boc-home-popup-shell .boc-home-popup__cta {
		bottom: 48px;
		width: min(294px, 62%);
		min-height: 94px;
		padding: 14px 32px;
		font-size: clamp(22px, 2vw, 28px);
	}

	.boc-home-popup-shell .boc-home-popup__panel {
		padding: 30px 38px 26px;
	}

	.boc-home-popup-shell .boc-home-popup__logo {
		width: 185px;
	}

	.boc-home-popup-shell .boc-home-popup__event {
		grid-template-columns: 46px minmax(0, 1fr);
		gap: 16px;
		margin-top: 24px;
	}

	.boc-home-popup-shell .boc-home-popup__calendar {
		width: 46px;
		height: 46px;
	}

	.boc-home-popup-shell .boc-home-popup__event time {
		font-size: clamp(16px, 1.35vw, 19px);
	}

	.boc-home-popup-shell .boc-home-popup__title {
		margin: 28px 0 9px;
		font-size: clamp(26px, 2.1vw, 30px);
	}

	.boc-home-popup-shell .boc-home-popup__intro {
		font-size: 18px;
		line-height: 1.25;
	}

	.boc-home-popup-shell .boc-home-popup__form {
		margin-top: 18px;
	}

	.boc-home-popup-shell .ff-el-group {
		margin-bottom: 12px;
	}

	.boc-home-popup-shell .ff-el-input--label {
		margin-bottom: 5px;
	}

	.boc-home-popup-shell .ff-el-input--label label {
		font-size: 15px;
	}

	.boc-home-popup-shell .ff-el-form-control {
		min-height: 46px;
		padding: 9px 14px;
		font-size: 16px;
	}

	.boc-home-popup-shell form.frm-fluent-form .ff-btn-submit,
	.boc-home-popup-shell form.frm-fluent-form .ff-btn-submit:not(.ff_btn_no_style) {
		min-height: 46px;
		padding: 10px 24px;
		font-size: 19px;
	}
}

@media (max-width: 549px) {
	.boc-home-popup-shell .boc-home-popup__visual {
		min-height: clamp(205px, 61vw, 270px);
	}

	.boc-home-popup-shell .boc-home-popup__cta {
		bottom: 20px;
		width: min(250px, 68%);
		min-height: 70px;
		padding: 11px 22px;
		border-radius: 0 18px 18px 0;
		font-size: clamp(19px, 6vw, 24px);
	}

	.boc-home-popup-shell .boc-home-popup__panel {
		padding: 26px 22px 30px;
	}

	.boc-home-popup-shell .boc-home-popup__logo {
		width: 172px;
	}

	.boc-home-popup-shell .boc-home-popup__event {
		grid-template-columns: 44px minmax(0, 1fr);
		gap: 14px;
		margin-top: 26px;
	}

	.boc-home-popup-shell .boc-home-popup__calendar {
		width: 44px;
		height: 44px;
	}

	.boc-home-popup-shell .boc-home-popup__event time {
		font-size: clamp(15px, 4.5vw, 18px);
	}

	.boc-home-popup-shell .boc-home-popup__title {
		margin: 32px 0 10px;
		font-size: clamp(25px, 7.8vw, 31px);
	}

	.boc-home-popup-shell .boc-home-popup__intro {
		font-size: 17px;
		line-height: 1.35;
	}

	.boc-home-popup-shell .boc-home-popup__form {
		margin-top: 25px;
	}

	.boc-home-popup-shell .ff-el-group {
		margin-bottom: 16px;
	}

	.boc-home-popup-shell .ff-el-form-control,
	.boc-home-popup-shell form.frm-fluent-form .ff-btn-submit,
	.boc-home-popup-shell form.frm-fluent-form .ff-btn-submit:not(.ff_btn_no_style) {
		width: 100%;
		min-height: 52px;
	}

	.mfp-content:has(.boc-home-popup-shell) .mfp-close {
		top: 8px;
		right: 8px;
	}
}

@media (max-height: 700px) and (min-width: 850px) {
	.boc-home-popup-shell .boc-home-popup,
	.boc-home-popup-shell .boc-home-popup__visual {
		min-height: 540px;
	}

	.boc-home-popup-shell .boc-home-popup__panel {
		padding-top: 26px;
		padding-bottom: 22px;
	}

	.boc-home-popup-shell .boc-home-popup__event {
		margin-top: 20px;
	}

	.boc-home-popup-shell .boc-home-popup__title {
		margin-top: 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.boc-home-popup-shell *,
	.boc-home-popup-shell *::before,
	.boc-home-popup-shell *::after {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
	}
}
