/* ============================================================
   Forms — the ONE form component of the site (forms unification, owner decisions 2026-10-04): every popup in the window
   look B (.bm-sheet), the B field style for the inline forms too, the summary card, the success view, the home band.
   Loaded wherever a form or a window can print: a dependency of catalog.css (inc/assets.php, inc/pages/assets.php) and
   of the lead-form block's CSS, and enqueued by every form print (inc/forms-ui.php bm_form_assets()).
   The first three parts moved here unchanged on 2026-10-04 (same order, so every form looks as before — the review
   window to the pixel): the CF7 markup rules (from blocks/lead-form/style.css), the dialog base + the upload drop zone
   (from catalog.css), the window shell .bm-sheet + its field style .bm-sheet-form (from catalog.css).
   ============================================================ */

/* Contact Form 7 markup (see docs/cf7-form.txt) */
.bm-cf7 { display: flex; flex-direction: column; gap: 16px; }
.bm-cf7 .hidden-fields-container { display: none; }
/* spam honeypot (drag-and-drop upload add-on): off-screen, still in the form */
.bm-cf7 .wpcf7_hp_field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.bm-cf7 p { margin: 0; }
.bm-cf7 label { display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #B1B4C3; }
.bm-cf7 .wpcf7-form-control-wrap { display: block; }
.bm-cf7 input[type="text"],
.bm-cf7 input[type="tel"],
.bm-cf7 input[type="email"],
.bm-cf7 textarea {
	width: 100%;
	padding: 13px 14px;
	border: 1px solid var(--bm-field-border); /* owner 2026-10-12: the field token of base.css (rollback there) */
	border-radius: var(--bm-r);
	outline: none;
	background: #fff;
	font-size: 14.5px;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	color: var(--bm-strong);
}
.bm-cf7 textarea { height: auto; min-height: 96px; resize: vertical; }
.bm-cf7 input:focus, .bm-cf7 textarea:focus { border-color: var(--bm-orange); box-shadow: var(--bm-focus); }
/* readable text when the browser autofills the dark-page form */
.bm-cf7 input:-webkit-autofill { -webkit-text-fill-color: var(--bm-strong); box-shadow: 0 0 0 40px #fff inset; }
.bm-cf7 .wpcf7-submit {
	width: 100%;
	padding: 15px 28px;
	border: 0;
	border-radius: var(--bm-r);
	background: var(--bm-orange-fill);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: #fff;
	cursor: pointer;
	transition: background 200ms ease;
}
.bm-cf7 .wpcf7-submit:hover { background: var(--bm-orange-fill-hover); }
.bm-cf7 .wpcf7-submit:disabled { opacity: .6; cursor: default; }
.bm-cf7 .wpcf7-spinner { display: none; }
.bm-cf7.submitting .wpcf7-submit { opacity: .7; }
.bm-cf7 .wpcf7-not-valid-tip { margin-top: 6px; font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: #FF8A50; }
.bm-cf7 .wpcf7-response-output { margin: 0; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--bm-r); font-size: 13.5px; color: #fff; }
.bm-cf7.init .wpcf7-response-output, .bm-cf7.resetting .wpcf7-response-output, .bm-cf7 .wpcf7-response-output:empty { display: none; }
.bm-cf7.sent .wpcf7-response-output { border-color: var(--bm-ok); background: rgba(31, 138, 91, .15); }
.bm-cf7.invalid .wpcf7-response-output, .bm-cf7.failed .wpcf7-response-output { border-color: #FF8A50; }
/* CF7's summary for screen readers (status line + list of invalid fields) is printed BEFORE the <form>, inside
   div.wpcf7 (.bm-cf7 is the form's own class): visually hidden, still announced (role status / aria-live) */
.wpcf7 .screen-reader-response { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; white-space: nowrap; }
/* the status line of a form that loads on demand (assets/js/forms-lazy.js: role status, right after the form):
   «Надсилаємо…» while a submit waits / goes, .is-err when it could not go; empty = visually hidden, still a live region */
.wpcf7 > .bm-cf7-note { margin: 12px 0 0; font-size: 13px; font-weight: 600; line-height: 1.45; color: #B1B4C3; }
.wpcf7 > .bm-cf7-note.is-err { color: #FF8A50; }
.wpcf7 > .bm-cf7-note:empty { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* CF7 on a light background (gray variant, form dialogs of the catalog) */
.bm-cf7--light label { color: var(--bm-muted-text); }
.bm-cf7--light .form__file { gap: 10px; font-size: 13px; letter-spacing: 0; text-transform: none; }
.bm-cf7--light .wpcf7-not-valid-tip, .bm-cf7--light + .bm-cf7-note.is-err { color: #C43D00; }
.bm-cf7--light + .bm-cf7-note { color: var(--bm-muted-text); }
.bm-cf7--light .wpcf7-response-output { border-color: var(--bm-border); color: var(--bm-text); }
.bm-cf7--light.sent .wpcf7-response-output { background: var(--bm-ok-wash); }

/* ---------- form dialog (<dialog> + CF7) ---------- */
.bm-dialog { width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: var(--bm-r-md); background: #fff; color: var(--bm-text); box-shadow: 0 24px 64px rgba(11, 11, 10, .28); }
.bm-dialog::backdrop { background: rgba(11, 11, 10, .62); }
.bm-dialog__box { position: relative; padding: 34px 32px 30px; }
.bm-dialog__close { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--bm-muted); font-size: 22px; cursor: pointer; }
.bm-dialog__close:hover { background: var(--bm-g100); color: var(--bm-strong); }
/* The catalog CF7 forms open with <p class="bm-cf7__title">; old form bodies (rollback) with <legend> + span.js-form__close. */
.bm-dialog .bm-cf7__title, .bm-dialog legend { display: block; width: 100%; padding: 0 36px 0 0; font: 800 22px/1.25 var(--bm-fd); text-transform: uppercase; color: var(--bm-strong); }
.bm-dialog .js-form__close { display: none; }
.bm-cf7 .form__file { margin: 0; font-size: 13px; color: var(--bm-muted-text); }
/* ---------- the upload field ([mfile]: the drag-and-drop upload add-on's wrapper › handler › container › inner + counter)
   = the calc window's drop zone on every form (owner answer 2026-10-03: the «Інфоцентр» prototype's window; 2026-10-04
   «да» to the same look for the other forms with files — the product КП dialog, the FAQ form, the review photos): the
   dashed box «Перетягніть файли сюди / або / Прикріпіть файли» (the words: inc/forms.php) with its counter «0 / 10» in the
   corner, orange border + wash while a file is dragged over it; phones (≤ 640 px, the prototype's break) show «Прикріпіть
   файли» alone (no dragging on a touch screen). The add-on's own CSS comes later on the lazy views: two classes at least
   in every rule here. Keyboard / screen reader: assets/js/dropzones.js. */
.bm-cf7 .codedropz-upload-wrapper { margin: 0; }
/* its dashed frame = the field border token (owner 2026-10-12 «рамки полей во всех формах … чуть темнее»: the «Поле файлів»
   under the text fields of the calc / КП / FAQ / review forms is a field too; the same base.css rollback brings it back) */
.bm-cf7 .codedropz-upload-handler { position: relative; min-height: 128px; margin: 0; border: 1.5px dashed var(--bm-field-border); border-radius: var(--bm-r-md); background: transparent; transition: background-color 150ms ease, border-color 150ms ease; }
.bm-cf7 .codedropz-upload-handler.codedropz-dragover { border-color: var(--bm-orange); background: var(--bm-orange-soft); }
.bm-cf7 .codedropz-upload-container { padding: 26px 22px 30px; }
/* overflow visible: the add-on's inner box clips (overflow hidden), and without padding of its own the link's 44 px
   target (13 px past its line) would scroll that box when it takes the keyboard focus — the title cut in half, the focus
   ring cut off. The container's own padding (26 / 30 px, phones 16 / 26) holds the target. */
.bm-cf7 .codedropz-upload-inner { padding: 0; overflow: visible; font-size: 1rem; line-height: 1.5; }
.bm-cf7 .codedropz-upload-inner span { display: block; }
.bm-cf7 .codedropz-upload-inner > span:first-child { font: 500 1.02rem/1.5 var(--bm-fd); color: var(--bm-strong); }
.bm-cf7 .codedropz-upload-inner > span:nth-child(2) { margin: 4px 0; font-size: .9rem; color: var(--bm-muted-text); }
/* the «Прикріпіть файли» link: a 44 px tall target (padding) that takes no more room than its text line (equal negative
   margins), inside the drop zone's own padding */
.bm-cf7 .codedropz-btn-wrap .cd-upload-btn { display: inline-block; margin: -13px -10px; padding: 13px 10px; font: 600 1.02rem/24px var(--bm-fd); color: var(--bm-orange-text); }
.bm-cf7 .codedropz-btn-wrap .cd-upload-btn:hover { color: var(--bm-orange-deep); }
/* its keyboard ring drawn inside the 44 px target (2 px off the words), clear of «або» above it */
.bm-cf7 .codedropz-btn-wrap .cd-upload-btn:focus-visible { outline-offset: -8px; }
.bm-cf7 .dnd-upload-counter { position: absolute; right: 12px; bottom: 8px; font-size: .78rem; line-height: 1.3; color: var(--bm-muted-text); }
.bm-cf7 .dnd-upload-status { font-size: 13px; }
@media (max-width: 640px) {
	.bm-cf7 .codedropz-upload-handler { min-height: 96px; }
	.bm-cf7 .codedropz-upload-container { padding: 16px 14px 26px; }
	.bm-cf7 .codedropz-upload-inner > span:is(:first-child, :nth-child(2)) { display: none; }
	.bm-cf7 .codedropz-btn-wrap .cd-upload-btn { font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) {
	.bm-cf7 .codedropz-upload-handler { transition: none; }
}
/* light form styles (.bm-cf7--light) come with the lead-form block CSS, a dependency of this file on category/product pages */
@media (max-width: 767px) {
	.bm-dialog__box { padding: 28px 18px 22px; }
	.bm-dialog .bm-cf7__title, .bm-dialog legend { font-size: 18px; }
}

/* ---------- form sheet (.bm-sheet): ONE window shell for the page forms with a heading of their own — the review window
   (template-parts/reviews/modal.php, handoff design/clients-reviews-sitemap-2026-09-30 README 2.4) and the request
   window of «Модулі в наявності» (template-parts/stock/form.php, owner request 2026-10-04: the prototype's form is the
   same family). A native <dialog class="bm-dialog bm-sheet"> (assets/js/dialogs.js): white panel, square corners,
   the eyebrow + upper-case title + the grey square × head, the body (the CF7 form, .bm-sheet-form: visible labels over
   white bordered 52 px fields, the design's red messages .bm-sheet__err, the orange send button with its arrow), the
   success area; width --bm-sheet-w (640 px; the stock window 580 px). Phones (< 600 px): the window fills the screen.
   The rules moved here from reviews.css unchanged (2026-10-04): the review window looks as before, to the pixel. ---------- */
.bm-sheet {
	width: min(var(--bm-sheet-w, 640px), calc(100% - 48px));
	max-width: none;
	max-height: calc(100dvh - 48px);
	overflow-y: auto;
	overscroll-behavior: contain;
	border-radius: 0;
	box-shadow: 0 18px 48px rgba(27, 30, 46, .24);
	color: var(--bm-text);
}
.bm-sheet::backdrop { background: rgba(27, 30, 46, .62); }
.bm-sheet__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 28px 28px 0; }
.bm-sheet__heading { min-width: 0; }
.bm-sheet__eyebrow { margin-bottom: 10px; }
.bm-sheet__title { margin: 0; font: 800 26px/1.15 var(--bm-fd); text-transform: uppercase; color: var(--bm-strong); }
.bm-sheet__close {
	flex: none;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin: -2px -2px 0 0;
	padding: 0;
	border: 0;
	background: var(--bm-g100);
	color: var(--bm-strong);
	cursor: pointer;
}
.bm-sheet__close:hover { background: var(--bm-orange-fill); color: #fff; }
.bm-sheet__close .bm-ico { width: 16px; height: 16px; stroke-width: 2.4; }
.bm-sheet__body { padding: 24px 28px 28px; }
.bm-sheet__body[hidden], .bm-sheet__ok[hidden] { display: none; }
.bm-sheet__ok { padding: 24px 28px 32px; }

/* the CF7 form of a sheet (.bm-cf7 .bm-cf7--light: lead-form block CSS) in the design's field style */
.bm-sheet-form { gap: 18px; }
.bm-sheet-form label { gap: 8px; font-size: 14px; font-weight: 600; line-height: 1.4; letter-spacing: 0; text-transform: none; color: var(--bm-strong); }
.bm-sheet-form input[type="text"], .bm-sheet-form input[type="tel"], .bm-sheet-form textarea { font-size: 15px; }
.bm-sheet-form input[type="text"], .bm-sheet-form input[type="tel"] { min-height: 52px; }
.bm-sheet-form ::placeholder { color: var(--bm-field-ph); opacity: 1; } /* owner 2026-10-12: the field token of base.css (rollback there) */
.bm-sheet-form select {
	width: 100%;
	height: 52px;
	padding: 0 14px;
	border: 0;
	border-radius: var(--bm-r-md);
	outline: none;
	box-shadow: inset 0 0 0 1px var(--bm-field-border); /* the field token (base.css) */
	background-color: #fff;
	font: 400 15px/1.2 var(--bm-fb);
	letter-spacing: 0;
	text-transform: none;
	color: var(--bm-strong);
	cursor: pointer;
}
.bm-sheet-form select:focus { box-shadow: inset 0 0 0 1px var(--bm-orange), var(--bm-focus); }
/* invalid fields: red border — the lead-form rule .bm-cf7 input[type="text"] (0,2,1) must not win over it */
.bm-sheet-form.bm-cf7 input[aria-invalid="true"], .bm-sheet-form.bm-cf7 textarea[aria-invalid="true"], .bm-sheet-form.bm-cf7 select[aria-invalid="true"] { border-color: #C93030; }
/* phones / touch screens (owner 2026-10-09): 16 px text in every field of every form — the windows (types 1–3, the review,
   the FAQ question), the inline forms (rubric text, contacts, works), every CF7 body — iOS Safari zooms the page into a
   field whose text is under 16 px when it gets focus (and stays zoomed). After the field rules above (.bm-cf7 14.5 px,
   .bm-sheet-form 15 px — same weight 0,2,1, so this later rule wins); desktop keeps them. Text-entry controls only (not
   the radio cards, check boxes, the send button or the file input). A one-line field whose hint no longer fits ends in «…»
   instead of a cut letter (the calc window's «Надішлемо розрахунок на пошту»: 259 px in the 254 px of a 320 px phone). */
@media (max-width: 767px), (pointer: coarse) {
	.bm-cf7 :is(input:not([type="hidden"], [type="submit"], [type="button"], [type="reset"], [type="image"], [type="checkbox"], [type="radio"], [type="file"], [type="range"], [type="color"]), textarea, select) { font-size: 16px; }
	.bm-cf7 input:is([type="text"], [type="tel"], [type="email"]) { text-overflow: ellipsis; }
}
/* the design's message under a field (the page script: aria-hidden there, announced through aria-describedby) */
.bm-sheet__err { display: block; margin-top: 6px; font-size: 13.5px; font-weight: 600; line-height: 1.4; letter-spacing: 0; text-transform: none; color: #C93030; }
.bm-sheet-form label > .bm-sheet__err { margin-top: -2px; }
.bm-sheet-form .wpcf7-submit,
.bm-sheet-form .wpcf7-submit:hover {
	width: auto;
	padding: 15px 52px 15px 28px;
	background: var(--bm-orange-fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E") right 26px center / 16px no-repeat;
}
.bm-sheet-form .wpcf7-submit:hover { background-color: var(--bm-orange-fill-hover); }
/* held until CF7 + reCAPTCHA are ready (assets/js/forms-lazy.js: aria-disabled, the form aria-busy): busy, not pressable */
.bm-sheet-form .wpcf7-submit[aria-disabled="true"] { opacity: .6; cursor: progress; }

@media (prefers-reduced-motion: no-preference) {
	.bm-sheet__close { transition: background-color 160ms var(--bm-ease-out), border-color 160ms var(--bm-ease-out), color 160ms var(--bm-ease-out); }
	/* the window rises in (README: translateY 16 px + opacity, 320 / 240 ms) and fades out */
	.bm-sheet { transition: transform 320ms var(--bm-ease-out), opacity 240ms var(--bm-ease-out), overlay 320ms allow-discrete, display 320ms allow-discrete; }
	.bm-sheet:not([open]) { transform: translateY(16px); opacity: 0; }
	.bm-sheet::backdrop { transition: background-color 240ms var(--bm-ease-out), overlay 240ms allow-discrete, display 240ms allow-discrete; }
	.bm-sheet:not([open])::backdrop { background-color: transparent; }
	@starting-style {
		.bm-sheet[open] { transform: translateY(16px); opacity: 0; }
		.bm-sheet[open]::backdrop { background-color: transparent; }
	}
}
/* phones: the window fills the screen */
@media (max-width: 599px) {
	.bm-sheet { width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; }
	.bm-sheet__head { padding: 20px 18px 0; }
	.bm-sheet__title { font-size: 22px; }
	.bm-sheet__body { padding: 20px 18px 28px; }
	.bm-sheet__ok { padding: 20px 18px 28px; }
}

/* ============================================================
   The form component's own parts (forms unification 2026-10-04: inc/forms-ui.php, template-parts/forms/*,
   assets/js/forms.js). The window = .bm-sheet above; the fields = .bm-sheet-form above (the B field style, inline forms too).
   ============================================================ */

/* ---------- the component's windows (template-parts/forms/sheet.php): 640 px (calc), 580 px (short, as the stock
   window); the send button full width; sent: the head keeps only the × (the success view has its own title) ---------- */
.bm-form-sheet { --bm-sheet-w: 640px; }
.bm-form-sheet--short { --bm-sheet-w: 580px; }
.bm-sheet__eyebrow[hidden] { display: none; }
.bm-form-sheet .bm-form__cf7 .wpcf7-submit, .bm-form-sheet .bm-form__cf7 .wpcf7-submit:hover { width: 100%; }
.bm-form-sheet:has(> .bm-sheet__ok:not([hidden])) .bm-sheet__head { height: 0; }
.bm-form-sheet:has(> .bm-sheet__ok:not([hidden])) .bm-sheet__heading { display: none; }
.bm-form-sheet:has(> .bm-sheet__ok:not([hidden])) .bm-sheet__close { position: relative; z-index: 1; margin-left: auto; }
/* sent: the window (the component's, the stock window) keeps its size (forms.js pin(): no layout shift — a centred
   window would shrink and move) and the success view sits in the middle of it */
.bm-sheet[data-bm-pin][open] { display: flex; flex-direction: column; }
.bm-sheet[data-bm-pin] > .bm-sheet__ok:not([hidden]) { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center; }
/* without JavaScript a window cannot open: it shows in the page where it is printed (the opener links href="#{id}") */
@media (scripting: none) {
	.bm-form-sheet:not([open]) { display: block; position: static; width: auto; max-width: var(--bm-sheet-w, 640px); height: auto; max-height: none; margin: 0 auto 56px; overflow: visible; border: 1px solid var(--bm-border); box-shadow: none; opacity: 1; transform: none; }
	.bm-form-sheet .bm-sheet__close { display: none; }
	/* the upload field works only with JavaScript (the add-on uploads each file as it is chosen): no hint, no raw browser
	   input («Choose files») without it */
	.bm-form__cf7 .bm-form__files { display: none; }
}

/* ---------- the fields of the component's CF7 bodies (.bm-form__cf7): name + phone in two columns (one below 600 px),
   the comment, the files hint + drop zone, the send button, the privacy line ---------- */
.bm-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.bm-form__cf7 textarea { min-height: 94px; }
.bm-form__files { display: flex; flex-direction: column; gap: 8px; }
.bm-form__files .form__file { margin: 0; font-size: 13px; line-height: 1.45; letter-spacing: 0; text-transform: none; color: var(--bm-muted-text); }
/* the drop zone's room is kept until the upload add-on builds it (a lazy window: the add-on loads after the click — the
   window grew by ~110 px, a layout shift; verification 2026-10-04): the built zone's height (136.08 px; phones ≤ 640 px:
   96), the bare file input hidden until the add-on moves it into its zone */
.bm-form__files .wpcf7-form-control-wrap { min-height: 136.1px; }
.bm-form__files .wpcf7-form-control-wrap > input[type="file"] { display: none; }
@media (max-width: 640px) {
	.bm-form__files .wpcf7-form-control-wrap { min-height: 96px; }
}
.bm-form__privacy { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--bm-muted-text); }
.bm-form__privacy a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
/* reCAPTCHA v3 (owner 2026-12-03): the badge is hidden — Google allows it while each form shows its notice (.bm-form__rc,
   the last line of every CF7 form: inc/forms-ui.php bm_form_recaptcha_note()). visibility, never display: none (the check
   keeps running). Undo: delete these four rules and the filter. */
.grecaptcha-badge { visibility: hidden !important; }
.bm-form__rc { margin: 6px 0 0; font-size: 11.5px; line-height: 1.45; color: var(--bm-muted-text); }
.bm-form__rc a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.bm-form--dark .bm-form__rc { color: var(--bm-muted-on-dark); }
.bm-form__note[hidden] { display: none; }
/* the design's message under a field (forms.js: aria-hidden there, announced through aria-describedby) = .bm-sheet__err */
.bm-form__err { display: block; margin-top: 6px; font-size: 13.5px; font-weight: 600; line-height: 1.4; letter-spacing: 0; text-transform: none; color: #C93030; }
.bm-sheet-form label > .bm-form__err { margin-top: -2px; }
/* CF7's own messages (the no-JS path, the server's phone rule) in the same red */
.bm-form__cf7 .wpcf7-not-valid-tip { display: block; margin-top: 6px; font-size: 13.5px; font-weight: 600; line-height: 1.4; letter-spacing: 0; text-transform: none; color: #C93030; }
.bm-form__cf7.sent .wpcf7-response-output { display: none; } /* the success view says it */
@media (max-width: 599px) {
	.bm-form__row { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- the summary card of a window (template-parts/forms/summary.php; the stock window's .bm-st-sum look) ---------- */
.bm-form-sum { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding: 10px; border: 1px solid var(--bm-border); border-radius: var(--bm-r); background: var(--bm-g50); }
.bm-form-sum[hidden] { display: none; }
.bm-form-sum__img { flex: none; width: 84px; height: 63px; border-radius: 3px; background: var(--bm-g100); object-fit: cover; }
.bm-form-sum__copy { min-width: 0; }
.bm-form-sum__title { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--bm-strong); }
.bm-form-sum__meta { margin: 2px 0 0; font-size: 13px; line-height: 1.4; color: var(--bm-g600); }
.bm-form-sum__meta:empty { display: none; }

/* ---------- the ONE success view (template-parts/forms/ok.php; the stock window's .bm-st-ok look) ---------- */
.bm-form-ok { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 16px 4px 4px; text-align: center; }
.bm-form-ok__mark { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--bm-ok-wash); color: var(--bm-ok); }
.bm-form-ok__mark .bm-ico { width: 30px; height: 30px; stroke-width: 2.4; }
.bm-form-ok__title { margin: 0; font: 800 24px/1.15 var(--bm-fd); text-transform: uppercase; color: var(--bm-strong); }
.bm-form-ok__title:focus { outline: none; }
.bm-form-ok__text { max-width: 420px; margin: 0; font-size: 15px; line-height: 1.6; color: var(--bm-text); }
.bm-form-ok__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	margin-top: 4px;
	padding: 12px 24px;
	border: 1.5px solid var(--bm-g400);
	border-radius: var(--bm-r);
	background: #fff;
	font: 700 .98rem/1.2 var(--bm-fb);
	letter-spacing: .01em;
	color: var(--bm-strong);
	cursor: pointer;
}
.bm-form-ok__btn:hover { background: var(--bm-g50); }
.bm-form-nw { white-space: nowrap; }

/* ---------- an inline form (template-parts/forms/inline.php): eyebrow / title / text / phones, the form, the success
   view; tones light | dark ---------- */
.bm-form__eyebrow { margin-bottom: 10px; }
.bm-form__title { margin: 0 0 10px; font: 800 1.25rem/1.25 var(--bm-fd); letter-spacing: -.01em; text-transform: uppercase; color: var(--bm-strong); text-wrap: balance; }
.bm-form__text { margin: 0 0 16px; font-size: 15px; line-height: 1.6; color: var(--bm-text); text-wrap: pretty; }
.bm-form__phones { display: flex; flex-wrap: wrap; gap: 0 22px; margin: -8px 0 8px; }
.bm-form__phones a { display: inline-flex; align-items: center; min-height: 44px; font: 600 1.1rem/1.3 var(--bm-fd); color: var(--bm-strong); }
.bm-form__phones a:hover { color: var(--bm-orange-text); }
.bm-form__main[hidden], .bm-form__ok[hidden] { display: none; }
.bm-form__ok .bm-form-ok { align-items: flex-start; padding: 4px 0 0; text-align: left; }
/* sent: the success view fills the form's room (forms.js pin(): the page below does not move) and sits in its middle */
.bm-form[data-bm-pin] > .bm-form__ok:not([hidden]) { display: flex; flex-direction: column; justify-content: center; }
.bm-form--dark .bm-form__title { color: #fff; }
.bm-form--dark .bm-form__text, .bm-form--dark .bm-form__privacy, .bm-form--dark .bm-form__files .form__file { color: var(--bm-muted-on-dark); }
.bm-form--dark .bm-sheet-form label, .bm-form--dark .bm-form__phones a, .bm-form--dark .bm-form-ok__title, .bm-form--dark .bm-form-ok__text { color: #fff; }
/* the field messages on navy (owner 2026-10-12, the works band B): a light red, 7.1:1 (#C93030 is 2.5:1 there); the invalid
   field keeps its red border — it sits on the white field */
.bm-form--dark .bm-form__err, .bm-form--dark .bm-form__cf7 .wpcf7-not-valid-tip { color: #FFA5A5; }

/* ---------- the compact navy band + its window button (template-parts/forms/band.php: home V3, owner 2026-10-04; the
   FAQ CTA band's look): white space around a navy box inset in the content width ---------- */
.bm-form-band { padding: 72px 0 80px; background: #fff; }
.bm-form-band__box { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 44px 48px; background: var(--bm-navy-700); color: #fff; }
.bm-form-band__copy { max-width: 620px; }
.bm-form-band__title { margin: 0 0 10px; font: 800 27px/1.15 var(--bm-fd); letter-spacing: -.015em; text-transform: uppercase; color: #fff; }
.bm-form-band__text { margin: 0; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .75); text-wrap: pretty; }
.bm-form-band__actions { flex: none; display: flex; align-items: center; gap: 24px; }
.bm-form-band__contact { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.bm-form-band__tel { font: 600 18px/1.65 var(--bm-fd); white-space: nowrap; color: #fff; text-decoration: none; }
.bm-form-band__tel:hover { color: var(--bm-orange); }
.bm-form-band__hours { font-size: 12.5px; line-height: 1.4; white-space: nowrap; color: var(--bm-muted-on-dark); }
.bm-form-band__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 15px 26px;
	background: var(--bm-orange-fill);
	font: 700 14.5px/1.65 var(--bm-fb);
	letter-spacing: .03em;
	text-transform: uppercase;
	color: #fff;
	text-align: center;
	text-decoration: none;
	transition: background-color 220ms var(--bm-ease-out);
}
.bm-form-band__btn:hover { background: var(--bm-orange-fill-hover); color: #fff; }
.bm-form-band__btn .bm-ico { width: 17px; height: 17px; stroke-width: 2.2; }
.bm-form-band__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* phones / touch screens: a 44 px touch target for the number, the band keeps its line box */
@media (max-width: 767px), (pointer: coarse) {
	.bm-form-band__tel { display: flex; align-items: center; min-height: 44px; margin-block: calc((1.65em - 44px) / 2); }
}
@media (max-width: 1100px) {
	.bm-form-band { padding: 56px 0 64px; }
	.bm-form-band__box { flex-wrap: wrap; }
	.bm-form-band__title { font-size: 23px; }
}
@media (max-width: 767px) {
	.bm-form-band { padding: 32px 0 40px; }
	.bm-form-band__box { gap: 26px; padding: 26px 20px; }
	.bm-form-band__title { font-size: 20px; }
	.bm-form-band__actions { flex: 1 1 100%; flex-direction: column; align-items: stretch; gap: 14px; width: 100%; }
	.bm-form-band__contact { align-items: flex-start; }
	.bm-form-band__btn { justify-content: center; }
}
/* narrow phones (360 px and below): «Получить консультацию» + the arrow stay on one line in the full-width button (the
   button keeps the band's width, so only the room inside it grows); at 320 px a wrapped label stays centred */
@media (max-width: 400px) {
	.bm-form-band__btn { gap: 8px; padding-inline: 18px; }
}
@media (prefers-reduced-motion: reduce) {
	.bm-form-band__btn { transition: none; }
}
