/* Lead band above the footer (17/10/2026). Markup: template-parts/leadband.php, behaviour: assets/js/polish-lb.js.
   Variant A is the default (owner 17/10). Full width with the panel gutter, 15px from the panel above and from the
   footer (the designer's gap between panels), never over the footer.
   Redesign 17/10 (owner: "גס וריק מידי, פחות גבוה"): one composed unit about 330px tall on desktop. A heading row
   (title + one line on the reading side, one quiet WhatsApp text link on the far side; owner: minimal, airy, no icons),
   then the form as a wide grid: name / phone / date / guests in one row, notes + consent + submit in the second. */
.hb-lb { --hb-lb-ink: var(--hb-ink-warm); --hb-lb-glyph: #8c7068; --hb-lb-line: rgba(53, 43, 36, .16);
	position: relative; z-index: 2; margin: 15px var(--hb-gutter) 0; color: var(--hb-lb-ink); }
.hb-lb__card { box-sizing: border-box; padding: clamp(28px, 2.9vw, 44px) clamp(20px, 4.4vw, 84px); border-radius: var(--hb-radius-lg); background: var(--hb-filter-bg); }
.hb-lb--b .hb-lb__card { background: var(--hb-rose); }

/* Heading row */
.hb-lb__intro { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.hb-lb__head { min-width: 0; }
.hb-lb__title { margin: 0; font-weight: 700; font-size: clamp(26px, 2.3vw, 36px); line-height: 1.12; color: var(--hb-lb-ink); }
.hb-lb__text { margin: 8px 0 0; max-width: 40em; font-size: 16.5px; line-height: 1.5; color: #5f524c; }

/* One quiet alternative: WhatsApp as a plain text link (owner 17/10: minimal, no icons, no button row). */
.hb-lb__alt { margin: 0; font-size: 15.5px; line-height: 1.5; color: #5f524c; }
.hb-lb__alt a { color: var(--hb-lb-ink); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(53, 43, 36, .3); text-underline-offset: 4px; }
@media (hover: hover) and (pointer: fine) { .hb-lb__alt a:hover { text-decoration-color: currentColor; } }

/* Form */
.hb-lb__form { min-width: 0; margin: clamp(22px, 2.2vw, 32px) 0 0; }
.hb-lb__fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.hb-lb__f { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; }
.hb-lb__f > label { font-weight: 700; font-size: 15px; line-height: 1.2; color: var(--hb-lb-ink); }
.hb-lb__f > label small { font-weight: 500; font-size: 13.5px; color: #6b5f58; }
.hb-lb__req { color: #a0522d; }
.hb-lb__f input[type="text"], .hb-lb__f input[type="tel"], .hb-lb__f input[type="date"], .hb-lb__f input[type="number"] {
	box-sizing: border-box; width: 100%; min-width: 0; height: 50px; padding: 0 16px; border: 1px solid var(--hb-lb-line); border-radius: 16px; background: #fff; color: #352b24; font: 500 16px/1.2 var(--hb-font); }
.hb-lb__f input[type="date"] { text-align: start; }
.hb-lb__f input:focus-visible { outline: 2px solid #352b24; outline-offset: 2px; border-color: #352b24; }
.hb-lb__f input[aria-invalid="true"] { border-color: #b3261e; box-shadow: 0 0 0 1px #b3261e; }
.hb-lb__err { font-size: 13.5px; line-height: 1.3; color: #b3261e; font-weight: 600; }
.hb-lb__consent { margin-top: 14px; }
.hb-lb__consent label { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; font-size: 14px; line-height: 1.45; color: #5f524c; cursor: pointer; }
.hb-lb__consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: #657b63; }
.hb-lb__consent a { color: inherit; text-decoration: underline; }
.hb-lb__actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.hb-lb__submit.hb-btn { width: 100%; min-width: 0; min-height: 50px; justify-content: center; font-size: 17px; }
.hb-lb__submit[aria-busy="true"] { opacity: .7; pointer-events: none; }
.hb-lb__status { margin: 0; font-size: 14.5px; color: #5f524c; }
.hb-lb__status:empty { display: none; }
.hb-lb__done { text-align: center; padding: 18px 0; }
.hb-lb__done:focus { outline: none; }
.hb-lb__done h3 { margin: 0; font-size: 28px; }
.hb-lb__done p { margin: 8px 0 0; font-size: 17px; color: #5f524c; }
.hb-lb.is-done .hb-lb__intro, .hb-lb.is-done .hb-lb__form { display: none; }

/* The old "לא בטוחים מה מתאים?" panel on /packages/ is what the band replaces (only while the band is shown). */
body:has(.hb-lb) .hb-pkp > .hb-faqp__cta { display: none; }

/* Phones: one clean stacked panel. */
@media (max-width: 599px) {
	.hb-lb__card { border-radius: 30px; }
	.hb-lb__intro { flex-direction: column; align-items: stretch; }
}

/* Tablet and up: the form is one grid; the field wrapper dissolves so the consent and the submit share its rows. */
@media (min-width: 600px) {
	.hb-lb__form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; align-items: end; }
	.hb-lb__fields { display: contents; }
	.hb-lb__f--wide { grid-column: 1 / -1; }
	.hb-lb__consent, .hb-lb__actions { margin: 0; }
	.hb-lb__consent { align-self: center; }
}
/* Desktop: name / phone / date / guests in one row; notes (two columns), consent, submit in the second. */
@media (min-width: 1180px) {
	.hb-lb__form { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; }
	.hb-lb__f--wide { grid-column: span 2; }
	/* The consent and the submit sit on the input line of the notes field (label 18px + 6px gap above it). */
	.hb-lb__consent, .hb-lb__actions { margin-top: 24px; }
	.hb-lb__consent label { min-height: 50px; align-items: center; }
}

/* Owner 17/10: on computers the band's content sits on the designer's text width (the footer's 1280px), centred, and
   the parts lock together with no gaps: the words on one side, a 2-column form on the other — name|phone,
   date|guests, notes full width, consent|submit. */
@media (min-width: 1180px) {
	.hb-lb__card { box-sizing: border-box; max-width: 1280px; margin-inline: auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 clamp(40px, 4vw, 72px); align-items: center; }
	.hb-lb__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; } /* owner 08/11: "מעדיפים לדבר?" on the right, under the words */
	.hb-lb__head, .hb-lb__alt { margin: 0 !important; }
	.hb-lb__alt { justify-self: start; }
	.hb-lb__form { margin: 0 !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; align-items: end !important; }
	.hb-lb__f--wide { grid-column: 1 / -1 !important; }
	.hb-lb__consent, .hb-lb__actions { margin-top: 0 !important; }
	.hb-lb__consent label { min-height: 50px; align-items: center; }
}
/* The panel stays full width; only its content keeps to the 1280px text width. */
@media (min-width: 1180px) {
	.hb-lb__card { max-width: none !important; margin-inline: 0 !important; padding-inline: max(clamp(40px, 4vw, 72px), calc((100% - 1280px) / 2)) !important; }
}
