/* perks strip under the intro */
.bto-foh-hero { margin: 1.25rem 0 1.75rem; }
.bto-foh-perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.bto-foh-perk { background: var(--bto-panel); border: 1px solid var(--bto-line); border-radius: var(--bto-radius); padding: .75rem .85rem; line-height: 1.3; }
.bto-foh-perk b { display: block; font-size: 1.05rem; color: var(--bto-blue); }
.bto-foh-perk span { display: block; margin-top: .15rem; font-size: .9rem; color: var(--bto-soft); }
.bto-foh-perk--gift { background: var(--bto-green-soft); border-color: #cfe7b5; }
.bto-foh-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 1rem; }
.bto-foh-btn { display: inline-block; background: var(--bto-blue); color: #fff !important; font-weight: 700; font-size: 1.05rem; padding: .85rem 1.5rem; border-radius: 999px; text-decoration: none !important; }
.bto-foh-btn:hover, .bto-foh-btn:focus { background: var(--bto-navy); }
.bto-foh-cta small { color: var(--bto-soft); font-size: .95rem; }
.bto-foh-cta--mid { margin: 1.25rem 0 2rem; }

/* /book-a-showroom-visit/: weekday visit is the main offer, weekend open house a smaller band under it */
.bto-foh-ways .bto-foh-main { border-top-color: var(--bto-blue); background: #fff; box-shadow: 0 6px 24px rgba(16,35,63,.08); padding: 1.6rem 1.6rem 1.5rem; }
.bto-foh-main__kicker { margin: 0 0 .35rem; font-weight: 700; color: var(--bto-green-dk); letter-spacing: .01em; }
.bto-foh-main .bto-card__title { margin: 0 0 1.1rem; font-size: 1.55rem; line-height: 1.25; }
.bto-foh-why { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.bto-foh-why__item { background: var(--bto-blue-soft); border-radius: 8px; padding: .85rem 1rem; line-height: 1.35; }
.bto-foh-why__item b { display: block; color: var(--bto-blue); font-size: 1.05rem; }
.bto-foh-why__item span { display: block; margin-top: .2rem; font-size: .93rem; color: var(--bto-soft); }
.bto-foh-main .bto-foh-cta { margin-top: 1.25rem; }
.bto-foh-weekend { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; padding: .9rem 1.1rem; border-radius: var(--bto-radius); background: var(--bto-green-soft); border: 1px solid #cfe7b5; }
.bto-foh-weekend > div { flex: 1; line-height: 1.4; }
.bto-foh-weekend strong { display: block; color: var(--bto-navy); }
.bto-foh-weekend span { display: block; font-size: .92rem; color: var(--bto-soft); }
.bto-foh-weekend .bto-foh-btn { flex: 0 0 auto; padding: .65rem 1.2rem; font-size: .98rem; }
.bto-foh-btn--ghost { background: #fff; color: #215197 !important; box-shadow: inset 0 0 0 2px #215197; }
.bto-foh-btn--ghost:hover, .bto-foh-btn--ghost:focus { background: #EAF0F8; }
.bto-foh-form .bto-visit-type ul { list-style: none !important; padding-left: 0 !important; margin-left: 0 !important; }
.bto-foh-form .bto-visit-type li { margin-bottom: .4rem; list-style: none !important; }

/* step 7 = where a showroom starts; week 1-2 = best time to visit */
.bto-steps .bto-foh-step7 { background: #fff; border-top-color: #B8C2CC; border-style: dashed; border-top-style: solid; }
.bto-steps .bto-foh-step7::before { background: #8A96A3; }
.bto-steps .bto-foh-best { background: var(--bto-green-soft); border: 2px solid var(--bto-green-dk); border-top-width: 4px; }
.bto-foh-tag { display: inline-block; margin-top: .6rem; padding: .2rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .02em; }
.bto-foh-tag--grey { background: #E9EDF1; color: #4A5560; }
.bto-foh-tag--green { background: #3E7D32; color: #fff; }

/* the theme's link green (#9FD86B) is 1.7:1 on white; on this page body links use the brand blue (8:1) */
.entry-content a:not(.bto-foh-btn) { color: #215197; text-decoration: underline; text-underline-offset: 2px; }
.entry-content a:not(.bto-foh-btn):hover { color: #10233F; }

/* registration form as a card */
#foh-register { scroll-margin-top: 80px; }
.bto-foh-form { background: #F7FAFC; border: 1px solid #E2E8F0; border-top: 4px solid var(--theme-palette-color-2, #215197); border-radius: 10px; padding: 1.25rem 1.25rem .5rem; margin: 1rem 0 1.25rem; }
.bto-foh-form .wpforms-container { margin: 0 !important; }
/* form 6666 opens with a 500px map iframe. Hide it only where the page shows the address elsewhere (add class bto-foh-form--nomap);
   /book-a-showroom-visit/ keeps it, since the map is what that page is for. */
.bto-foh-form--nomap [id$="-field_54-container"].wpforms-field-html { display: none; }
.bto-foh-map iframe { display: block; width: 100%; height: 420px; border-radius: 10px; }
/* field 55 is an empty HTML field that leaves a gap between the two checkboxes */
.bto-foh-form [id$="-field_55-container"].wpforms-field-html { display: none; }
.bto-foh-form input[type=text], .bto-foh-form input[type=tel], .bto-foh-form input[type=email], .bto-foh-form select { font-size: 16px !important; min-height: 48px; background: #fff; }
.bto-foh-form .wpforms-field-checkbox { margin-top: .5rem; padding: .85rem 1rem !important; background: #fff; border: 1px solid #E2E8F0; border-radius: 8px; }
.bto-foh-form .wpforms-field-checkbox + .wpforms-field-checkbox,
.bto-foh-form .wpforms-field-html + .wpforms-field-checkbox { margin-top: .9rem; }
.bto-foh-form .wpforms-field-checkbox li { display: flex; align-items: flex-start; gap: .6rem; }
.bto-foh-form .wpforms-field-checkbox input[type=checkbox] { width: 22px !important; height: 22px !important; flex: 0 0 22px; margin: 0 !important; }
.bto-foh-form .wpforms-field-checkbox label { line-height: 1.4; }
.bto-foh-form .wpforms-submit { width: 100%; min-height: 52px; font-size: 1.1rem !important; border-radius: 999px !important; }

/* mobile sticky bar */
.bto-foh-bar { display: none; }
@media (max-width: 768px) {
	.bto-foh-perks { grid-template-columns: repeat(2, 1fr); }
	.bto-foh-why { grid-template-columns: 1fr; gap: .55rem; }
	/* showroom page: keep the address, but small, so the weekday offer and its button reach the first screen */
	.entry-content > h1.wp-block-heading.has-text-align-center { margin-bottom: .25rem; } /* size is fixed site-wide (27–30px !important) */
	/* phones: button straight under the offer title, the four reasons after it, so the button is on the first screen */
	.bto-foh-main { display: flex; flex-direction: column; }
	.bto-foh-main .bto-foh-cta { order: 3; margin: 0 0 1rem; }
	.bto-foh-main .bto-foh-why { order: 4; }
	.bto-foh-main__kicker { order: 1; }
	.bto-foh-main .bto-card__title { order: 2; margin-bottom: .9rem; }
	.entry-content > h5.has-text-align-center { font-size: .92rem; font-weight: 500; line-height: 1.4; margin: 0 0 1rem; color: #434F58; }
	.bto-foh-main__kicker { font-size: .92rem; }
	.bto-foh-why__item { padding: .65rem .85rem; }
	.bto-foh-map iframe { height: 300px; }
	.bto-foh-ways .bto-foh-main { padding: 1.2rem 1.1rem 1.2rem; }
	.bto-foh-main .bto-card__title { font-size: 1.3rem; }
	.bto-foh-weekend { flex-direction: column; align-items: stretch; }
	/* theme h2 is 35px on phones, bigger than the showroom page's 27px h1 */
	.entry-content h2.wp-block-heading { font-size: 1.5rem; line-height: 1.25; }
	/* "What you will see": seven short cards, two per row; the circle already numbers them, so drop the "Step N" line */
	.bto-steps:has(.bto-foh-step7) .bto-grid { grid-template-columns: 1fr 1fr; gap: .6rem; }
	.bto-steps:has(.bto-foh-step7) .bto-step { padding: 3.2rem .85rem 1rem; }
	.bto-steps:has(.bto-foh-step7) .bto-step::before { top: .9rem; left: .85rem; width: 2.1rem; height: 2.1rem; font-size: 1rem; }
	.bto-steps:has(.bto-foh-step7) .bto-step__when { display: none; }
	.bto-steps:has(.bto-foh-step7) .bto-step__what { margin-top: 0; font-size: 1.02rem; }
	.bto-steps:has(.bto-foh-step7) .bto-step p { font-size: .88rem; }
	.bto-foh-btn { display: block; text-align: center; width: 100%; }
	.bto-foh-cta small { display: block; width: 100%; text-align: center; }
	.bto-foh-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 99990; align-items: center; gap: .75rem; padding: .6rem 16px calc(.6rem + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); box-shadow: 0 -2px 12px rgba(16,35,63,.12); transform: translateY(110%); transition: transform .25s ease; }
	.bto-foh-bar span { flex: 1; font-size: .9rem; line-height: 1.25; color: #10233F; }
	.bto-foh-bar a { flex: 0 0 auto; background: var(--theme-palette-color-2, #215197); color: #fff !important; font-weight: 700; padding: .7rem 1.1rem; border-radius: 999px; text-decoration: none !important; }
	body.bto-foh-bar-on .bto-foh-bar { transform: none; }
	/* the chat plugin writes bottom:12px !important inline, so lift it with transform instead */
	.btoai-root { transition: transform .25s ease; }
	.b1111-fab { transition: transform .25s ease; }
	/* the bar is 74px with the safe-area padding; lift both floating widgets so neither sits on it or on each other */
	body.bto-foh-bar-on .btoai-root, body.bto-foh-bar-on .b1111-fab { transform: translateY(-76px); }
	body.bto-foh-bar-on { padding-bottom: 76px; }
	/* the 11.11 coupon bubble sits on the submit button; tuck it away while the form is on screen */
	body.bto-foh-form-on .b1111-fab { visibility: hidden !important; pointer-events: none !important; }
}
/* form 93745 one-date layout (2026-11-06): date on the left, time (Mon–Fri) or pick-up (Sat/Sun) on the right */
.bto-foh-form .bto-visit-type-hidden { display: none !important; }
.bto-foh-form .bto-visit-time, .bto-foh-form .bto-visit-pickup { display: none; }
@media (max-width: 600px) {
  .bto-foh-form .bto-visit-date, .bto-foh-form .bto-visit-time, .bto-foh-form .bto-visit-pickup { width: 100% !important; margin-left: 0 !important; float: none !important; }
}
/* full-width inputs in each half, and the "required" star on time / pick-up (required by the server rule, not by WPForms) */
.bto-foh-form .bto-visit-date input, .bto-foh-form .bto-visit-date .wpforms-datepicker-wrap,
.bto-foh-form .bto-visit-time input, .bto-foh-form .bto-visit-pickup select { width: 100% !important; max-width: 100% !important; }
.bto-foh-form .bto-visit-date { padding-left: 0 !important; }
.bto-foh-form .bto-visit-time .wpforms-field-label::after, .bto-foh-form .bto-visit-pickup .wpforms-field-label::after { content: " *"; color: #d63637; }
.bto-foh-form .bto-visit-date .wpforms-datepicker-wrap { position: relative; display: block; }
.bto-foh-form .bto-visit-date .wpforms-datepicker-clear { right: 14px !important; left: auto !important; }
