/* BFI call scheduler — [bdn_lead_form scheduler="yes"]: step 1 details | step 2 calendar + times,
   one yellow button underneath. Builds on lead-form.css (colours, fields, button). */

.bfi-lead-form--scheduler {
	--bfi-book-cream: #FAF9F7;
	--bfi-book-soft-yellow: #FEF4D6;
}

/* Wider popup for two columns */
.pum-container:has(.bfi-lead-form--scheduler) {
	width: min(980px, calc(100vw - 32px)) !important;
}

.bfi-lead-form--scheduler .bfi-book {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: 0;
	align-items: start;
}
.bfi-lead-form--scheduler .bfi-book__col--details {
	padding-right: 28px;
}
.bfi-lead-form--scheduler .bfi-book__col--time {
	min-height: 100%;
	padding-left: 28px;
	border-left: 1px solid #ECE8E2;
}

/* Step titles with the yellow number */
.bfi-lead-form .bfi-book__step {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
	color: var(--bfi-lf-ink);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
}
.bfi-lead-form .bfi-book__num {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--bfi-lf-yellow);
	color: var(--bfi-lf-ink);
	font-size: 15px;
	font-weight: 700;
}
.bfi-lead-form--scheduler .bfi-lead-form__field {
	margin-bottom: 12px;
}

/* Picker: calendar + times side by side */
.bfi-lead-form .bfi-book__loading,
.bfi-lead-form .bfi-book__empty {
	margin: 8px 0;
	padding: 18px;
	border-radius: 16px;
	background: var(--bfi-book-cream);
	color: var(--bfi-lf-muted);
	font-size: 14px;
	line-height: 1.6;
}
.bfi-lead-form .bfi-book__wrap {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 124px;
	gap: 16px;
}

.bfi-lead-form .bfi-book__cal {
	padding: 12px 12px 8px;
	border: 1px solid #ECE8E2;
	border-radius: 18px;
	background: #fff;
}
.bfi-lead-form .bfi-book__cal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 8px;
}
.bfi-lead-form .bfi-book__month {
	color: var(--bfi-lf-ink);
	font-size: 15px;
	font-weight: 600;
}
.bfi-lead-form .bfi-book__nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--bfi-lf-ink);
	font-size: 0;
	cursor: pointer;
}
.bfi-lead-form .bfi-book__nav::before {
	content: "";
	width: 9px;
	height: 9px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	transform: rotate(45deg);
	margin-right: 3px;
}
.bfi-lead-form .bfi-book__nav--prev::before {
	transform: rotate(-135deg);
	margin: 0 0 0 3px;
}
.bfi-lead-form .bfi-book__nav:hover:not(:disabled) {
	background: #F5F3F0;
}
.bfi-lead-form .bfi-book__nav:disabled {
	opacity: .25;
	cursor: default;
}

.bfi-lead-form .bfi-book__grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 2px;
	text-align: center;
}
.bfi-lead-form .bfi-book__wd {
	padding: 4px 0 6px;
	color: var(--bfi-lf-soft);
	font-size: 11.5px;
	font-weight: 500;
	text-transform: capitalize;
}
.bfi-lead-form .bfi-book__day {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 38px;
	height: 36px;
	margin: 0 auto;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #B8BEBF;
	font-family: inherit;
	font-size: 14px;
	font-weight: 400;
	line-height: 1;
	cursor: default;
}
.bfi-lead-form .bfi-book__day.is-open {
	color: var(--bfi-lf-ink);
	font-weight: 600;
	cursor: pointer;
}
.bfi-lead-form .bfi-book__day.is-open:hover {
	background: var(--bfi-book-soft-yellow);
}
.bfi-lead-form .bfi-book__day.is-selected,
.bfi-lead-form .bfi-book__day.is-selected:hover {
	background: var(--bfi-lf-yellow);
	color: var(--bfi-lf-ink);
}
.bfi-lead-form .bfi-book__day:focus-visible,
.bfi-lead-form .bfi-book__time:focus-visible,
.bfi-lead-form .bfi-book__nav:focus-visible {
	outline: 2px solid var(--bfi-lf-green);
	outline-offset: 1px;
}

/* Times of the chosen day */
.bfi-lead-form .bfi-book__day-label {
	margin: 2px 0 10px;
	color: var(--bfi-lf-muted);
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1.35;
	text-transform: capitalize;
}
.bfi-lead-form .bfi-book__time-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-height: 286px;
	overflow-y: auto;
	padding: 2px;
}
.bfi-lead-form .bfi-book__time {
	flex: 0 0 auto;
	height: 42px;
	margin: 0;
	padding: 0 10px;
	border: 1px solid var(--bfi-lf-line);
	border-radius: 100px;
	background: #fff;
	color: var(--bfi-lf-ink);
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease;
}
.bfi-lead-form .bfi-book__time:hover {
	border-color: var(--bfi-lf-yellow);
}
.bfi-lead-form .bfi-book__time.is-selected {
	border-color: var(--bfi-lf-yellow);
	background: var(--bfi-lf-yellow);
	font-weight: 600;
}

.bfi-lead-form .bfi-book__tz {
	margin: 12px 0 0;
	color: var(--bfi-lf-soft);
	font-size: 12px;
	line-height: 1.4;
}

/* Button row and "send without a time" */
.bfi-lead-form--scheduler .bfi-book__submit {
	max-width: 440px;
	margin: 22px auto 0;
}
.bfi-lead-form .bfi-book__alt {
	margin: 12px 0 0;
	text-align: center;
}
.bfi-lead-form .bfi-book__no-time {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: #2B4448;
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.bfi-lead-form .bfi-book__no-time:hover {
	color: var(--bfi-lf-green);
}

/* Confirmation */
.bfi-lead-form .bfi-book__booked {
	padding: 40px 32px 44px;
	outline: none;
	text-align: center;
}
.bfi-lead-form .bfi-book__booked-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin: 0 0 16px;
	border-radius: 50%;
	background: var(--bfi-lf-yellow);
}
.bfi-lead-form .bfi-book__booked-icon::before {
	content: "";
	width: 14px;
	height: 26px;
	margin-top: -6px;
	border-right: 4px solid var(--bfi-lf-ink);
	border-bottom: 4px solid var(--bfi-lf-ink);
	transform: rotate(45deg);
}
.bfi-lead-form .bfi-book__booked .bfi-lead-form__title {
	font-size: 26px;
}
.bfi-lead-form .bfi-book__booked-text {
	max-width: 520px;
	margin: 6px auto 0;
	color: var(--bfi-lf-ink);
	font-size: 16px;
	line-height: 1.6;
}

@media (max-width: 860px) {
	.bfi-lead-form--scheduler .bfi-book {
		grid-template-columns: minmax(0, 1fr);
	}
	.bfi-lead-form--scheduler .bfi-book__col--details {
		padding-right: 0;
	}
	.bfi-lead-form--scheduler .bfi-book__col--time {
		min-height: 0; /* iPhone Safari stretched 100% to the whole stacked grid = big empty space */
		margin-top: 10px;
		padding: 20px 0 0;
		border-left: 0;
		border-top: 1px solid #ECE8E2;
	}
}
@media (max-width: 480px) {
	.bfi-lead-form .bfi-book__wrap {
		grid-template-columns: minmax(0, 1fr);
	}
	.bfi-lead-form .bfi-book__time-list {
		flex-direction: row;
		flex-wrap: wrap;
		max-height: none;
	}
	.bfi-lead-form .bfi-book__time {
		flex: 1 0 calc(33.333% - 8px);
		height: 40px;
		font-size: 14px;
	}
	.bfi-lead-form .bfi-book__booked {
		padding: 32px 18px 36px;
	}
}
