/**
 * Event popup (Flatsome lightbox with class boc-home-popup-shell).
 *
 * Layout, images and text live in the popup's UX Builder content. This file
 * only holds what UX Builder cannot set: the full-bleed frame, the tab shape
 * of the photo button and the Fluent Forms fields.
 */

.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-event {
	margin: 0 !important;
	color: var(--boc-popup-ink);
	background: var(--boc-popup-ground);
}

/* Photo fills the full column height next to a taller panel. */
.boc-home-popup-shell .boc-event__visual > .col-inner,
.boc-home-popup-shell .boc-event__visual .banner {
	height: 100%;
}

/* Tab flush with the photo's left edge, rounded only on the right. */
.boc-home-popup-shell .boc-event__cta .text-box-content {
	border-radius: 0 26px 26px 0;
	transition: background-color .18s ease-out;
}

.boc-home-popup-shell .boc-event__cta:has(a):hover .text-box-content {
	background-color: #0b4379 !important;
}

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

.boc-home-popup-shell .boc-event__cta a {
	color: #fff;
	letter-spacing: -.02em;
	text-decoration: none;
}

.boc-home-popup-shell .boc-event__cta a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.boc-home-popup-shell .boc-event h2 {
	margin-bottom: 9px;
	color: var(--boc-popup-ink);
	letter-spacing: -.02em;
	text-wrap: balance;
}

.boc-home-popup-shell .boc-event .icon-inner {
	background: none; /* site-wide Customizer CSS paints icons white */
}

.boc-home-popup-shell .boc-event .featured-box p {
	margin: 0;
}

.boc-home-popup-shell .boc-event .fluentform {
	margin-top: 18px;
	scroll-margin-top: 24px;
}

.boc-home-popup-shell .boc-event__cta a: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 .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 .boc-event__cta .text-box-content {
		border-radius: 0 18px 18px 0;
	}
}

@media (min-width: 850px) {
	.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 .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 (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;
	}
}
