/* ═════════════════════════════════════════════════════════════════════════════
   km-booking.css — стилі СПІЛЬНОГО модуля бронювання (assets/js/km-booking.js):
   віджет на головній (iframe widget-test.html), bronyuvannya.html, lystopad.html.
   Усі селектори під .kmb, щоб не чіпати решту сторінки. Основа - widget/widget.css
   (календар 1-2 місяці зі стрілками, картки, розбивка ціни); форма броні - з модалки
   lystopad.html (.bmod -> .kmb-modal / .bform).
   Сторінка НЕ має власних стилів бронювання - лише підключає цей файл.
   ═════════════════════════════════════════════════════════════════════════════ */

@keyframes kmb-spin { to { transform: rotate(360deg); } }

/* ══ База модуля ══ */
.kmb {
  position: relative;            /* календар-попап absolute всередині модуля */
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  color: #1F2B25;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-align: left;
}
.kmb, .kmb *, .kmb *::before, .kmb *::after { box-sizing: border-box; }
.kmb img { display: block; max-width: 100%; height: auto; }
.kmb button { font: inherit; cursor: pointer; }
.kmb a { color: inherit; text-decoration: none; }
.kmb h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.1;
}
.kmb p { margin: 0; }
.kmb .kmb-spinner {
  display: inline-block; width: 24px; height: 24px;
  border: 3px solid rgba(0,153,102,.2); border-top-color: #009966; border-radius: 50%;
  animation: kmb-spin 1s linear infinite; vertical-align: middle; margin-right: 10px;
}
.kmb .kmb-phone { margin-top: 24px; }
.kmb .kmb-phone a { color: #00684A; font-weight: 700; text-decoration: underline; }

/* ══ Buttons ══ */
.kmb .btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  border: 1.5px solid transparent;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
  white-space: nowrap;
}
.kmb .btn--primary {
  background: #009966;
  color: #F6EFE2;
  box-shadow: 0 12px 28px -6px rgba(0,104,74,.4);
}
.kmb .btn--primary:hover { background: #00684A; transform: translateY(-2px); }
.kmb .btn--outline-dark {
  background: transparent;
  color: #00684A;
  border-color: rgba(0,104,74,.4);
}
.kmb .btn--outline-dark:hover { background: rgba(0,104,74,.08); border-color: #00684A; }
.kmb .btn--block { width: 100%; }
.kmb .btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
/* ══ Booking module ══ */
.kmb .search-box {
  background: #fff;
  border: 1px solid rgba(0,153,102,.18);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 30px -12px rgba(31,43,37,.15);
}
.kmb .search-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
@media (min-width: 640px) {
.kmb .search-grid { grid-template-columns: repeat(3, 1fr); }
.kmb .search-grid .dr-wrap { grid-column: span 3; }
}
@media (min-width: 720px) {
.kmb .search-grid { grid-template-columns: 3fr 1fr 1fr 1fr; }
.kmb .search-grid .dr-wrap { grid-column: span 1; }
}
.kmb .field-wrap { display: flex; flex-direction: column; gap: 6px; }
.kmb .field-lbl {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3D4B44;
}
.kmb .field {
  width: 100%;
  background: #fff;
  border: 1.5px solid rgba(31,43,37,.14);
  border-radius: 10px;
  padding: 12px 14px;
  color: #1F2B25;
  font-size: 15px;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
  min-height: 44px;
}
.kmb .field:focus {
  outline: none;
  border-color: #009966;
  box-shadow: 0 0 0 3px rgba(0,153,102,.12);
}
.kmb .search-hint {
  margin-top: 12px;
  font-size: 12px;
  color: #6f8278;
  text-align: center;
}
/* ══ Date-range trigger (Booking.com-style) ══ */
.kmb .dr-wrap { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.kmb .dr {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #fff;
  border: 1.5px solid rgba(31,43,37,.14);
  border-radius: 10px;
  overflow: hidden;
  min-height: 60px;
  transition: border-color .15s, box-shadow .15s;
}
.kmb .dr:hover { border-color: rgba(0,153,102,.4); }
.kmb .dr:focus-within { border-color: #009966; box-shadow: 0 0 0 3px rgba(0,153,102,.12); }
.kmb .dr__cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  background: none;
  border: 0;
  padding: 8px 14px;
  cursor: pointer;
  text-align: left;
  color: #1F2B25;
  font-family: inherit;
  transition: background .12s;
  min-width: 0;
  min-height: 44px;
}
.kmb .dr__cell + .dr__cell { border-left: 1.5px solid rgba(31,43,37,.10); }
.kmb .dr__cell:hover { background: rgba(0,153,102,.06); }
.kmb .dr__cell.is-active { background: rgba(0,153,102,.10); box-shadow: inset 0 0 0 2px #009966; }
.kmb .dr__cell .field-lbl { pointer-events: none; margin: 0; }
.kmb .dr__val {
  font-size: 15px;
  font-weight: 700;
  color: #1F2B25;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.kmb .dr__val--placeholder { color: #8a9d94; font-weight: 500; }
/* ≥640px: підписи «Заїзд»/«Виїзд» над полем, як «Дорослі»/«Діти» — усі 5 полів
   в один ряд з однаковим верхом/низом. Лише картка пошуку (.search-grid).
   Підпис абсолютний відносно .dr-wrap (не .dr), тому overflow:hidden на .dr
   його не ріже. На < 640px — як було: підписи всередині поля дат. */
@media (min-width: 640px) {
.kmb .search-grid .field-lbl { line-height: 1.5; }
/* 11px × 1.5 = 16.5px */
.kmb .search-grid .dr-wrap { position: relative; padding-top: calc(11px * 1.5 + 6px); }
.kmb .search-grid .dr { flex: 1 1 auto; min-height: 0; }
/* висота = як у .field */
.kmb .search-grid .field-wrap .field { flex: 1 1 auto; }
.kmb .search-grid .dr__cell { padding: 12px 14px; gap: 0; }
.kmb .search-grid .dr__cell .field-lbl { position: absolute; top: 0; left: 0; }
.kmb .search-grid .dr__cell[data-role="checkout"] .field-lbl { left: 50%; }
}
/* ══ Calendar popover (absolute всередині .kmb, не fixed) ══
   Без затемнення/overlay: в iframe fixed-підкладка накривала лише область
   iframe і виглядала як сіра пляма. Закриття — хрестик, «Готово», Esc, клік
   поза попапом (обробник на document у widget.js). Без max-height і без
   overflow:hidden — висота по контенту, iframe росте під низ попапа. */
.kmb .km-cal {
  position: absolute;
  top: 0; left: 0;
  background: #fff;
  border: 1px solid rgba(0,153,102,.18);
  border-radius: 16px;
  box-shadow: 0 20px 60px -10px rgba(31,43,37,.35);
  z-index: 9999;
  padding: 0;
  max-width: 100%;
  transform: translateY(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s, transform .18s;
  display: none;
  flex-direction: column;
}
.kmb .km-cal.is-open { display: flex; opacity: 1; transform: translateY(0); pointer-events: auto; }
.kmb .km-cal__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px 8px; gap: 12px; flex: 0 0 auto;
}
.kmb .km-cal__head-title {
  font-weight: 700; color: #1F2B25; font-size: 15px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.kmb .km-cal__close {
  background: none; border: 0; cursor: pointer;
  font-size: 26px; line-height: 1;
  color: #6f8278; padding: 2px 10px;
  border-radius: 8px;
}
.kmb .km-cal__close:hover { background: rgba(31,43,37,.06); color: #1F2B25; }
/* Навігація по місяцях ‹ › */
.kmb .km-cal__nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px; flex: 0 0 auto;
}
.kmb .km-cal__nav-btn {
  background: none;
  border: 1.5px solid rgba(31,43,37,.14);
  border-radius: 8px;
  width: 36px; height: 36px;
  font-size: 22px; line-height: 1;
  color: #1F2B25;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-family: inherit;
  transition: background .12s, border-color .12s;
}
.kmb .km-cal__nav-btn:hover:not(:disabled) { background: rgba(0,153,102,.08); border-color: rgba(0,153,102,.4); }
.kmb .km-cal__nav-btn:disabled { opacity: .3; cursor: not-allowed; }
.kmb .km-cal__nav-lbl {
  font-size: 12px; font-weight: 700; color: #6f8278;
  text-transform: uppercase; letter-spacing: 0.06em; text-align: center;
}
.kmb .km-cal__body {
  flex: 1 1 auto;
  padding: 8px 18px 14px;
  min-height: 0;
}
.kmb .km-cal__months {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 720px) {
.kmb .km-cal__months { grid-template-columns: 1fr 1fr; gap: 28px; }
}
.kmb .km-cal__month-title {
  text-align: center;
  font-weight: 700;
  color: #1F2B25;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 13px;
}
.kmb .km-cal__dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
}
.kmb .km-cal__dow > span {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #8a9d94;
  text-transform: uppercase;
  padding: 4px 0;
}
.kmb .km-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.kmb .km-cal__day {
  background: none;
  border: 0;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #1F2B25;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .12s, color .12s;
  -webkit-tap-highlight-color: transparent;
}
.kmb .km-cal__day:hover:not(:disabled) { background: rgba(0,153,102,.16); }
.kmb .km-cal__day:disabled { cursor: not-allowed; color: #c9d3ce; }
.kmb .km-cal__day--out { pointer-events: none; opacity: 0; }
.kmb .km-cal__day--today { box-shadow: inset 0 0 0 1.5px #DE6F3D; }
.kmb .km-cal__day--in-range {
  background: rgba(0,153,102,.16);
  border-radius: 0;
  color: #00684A;
  font-weight: 700;
}
.kmb .km-cal__day--start,
.kmb .km-cal__day--end {
  background: #009966 !important;
  color: #fff !important;
  font-weight: 700;
}
.kmb .km-cal__day--start { border-radius: 8px 0 0 8px; }
.kmb .km-cal__day--end { border-radius: 0 8px 8px 0; }
.kmb .km-cal__day--start.km-cal__day--end { border-radius: 8px; }
.kmb .km-cal__footer {
  padding: 12px 18px 14px;
  background: #fff;
  border-radius: 0 0 15px 15px;   /* замість overflow:hidden на .km-cal */
  border-top: 1px solid rgba(31,43,37,.08);
  box-shadow: 0 -8px 12px -10px rgba(31,43,37,.18);
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kmb .km-cal__summary {
  font-size: 14px;
  color: #1F2B25;
  font-weight: 600;
  text-align: center;
  min-height: 20px;
  line-height: 20px;
}
.kmb .km-cal__summary--empty { color: #8a9d94; font-weight: 500; }
.kmb .km-cal__summary b { color: #00684A; }
.kmb .km-cal__done {
  background: #009966;
  color: #fff;
  border: 0;
  padding: 13px 22px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
  width: 100%;
}
.kmb .km-cal__done:hover:not(:disabled) { background: #00684A; }
.kmb .km-cal__done:disabled { background: rgba(0,153,102,.35); cursor: not-allowed; }
/* ══ Room cards grid ══ */
.kmb .rooms-status {
  text-align: center;
  padding: 24px 0;
  color: #3D4B44;
  font-size: 15px;
}
.kmb .rooms-status--err { color: #C90441; font-weight: 600; }
.kmb .rooms-status--ok { color: #00684A; font-weight: 600; font-size: 17px; }
.kmb .rooms-status .sub { display: block; margin-top: 6px; font-weight: 500; color: #DE6F3D; font-size: 14px; }
.kmb .rooms-status .tel-link { color: #C90441; text-decoration: underline; font-weight: 700; }
.kmb .rooms {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}
@media (min-width: 640px) {
.kmb .rooms { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
.kmb .rooms { grid-template-columns: repeat(3, 1fr); }
}
.kmb .room {
  background: #FCF7F7;
  border: 1px solid rgba(31,43,37,.08);
  border-radius: 16px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.kmb .room:hover {
  transform: translateY(-3px);
  border-color: rgba(0,153,102,.35);
  box-shadow: 0 18px 36px -14px rgba(31,43,37,.18);
}
.kmb .room__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #eaeaea;
}
.kmb .room__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.kmb .room__badge {
  position: absolute;
  top: 12px; left: 12px;
  background: #009966;
  color: #F6EFE2;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 5px 10px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0,104,74,.35);
}
.kmb .room__scarcity {
  position: absolute;
  top: 12px; right: 12px;
  background: #F0014B;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(240,1,75,.35);
}
.kmb .room__body {
  padding: 18px;
  display: flex; flex-direction: column;
  gap: 8px;
  flex: 1;
}
.kmb .room__name { font-size: 20px; }
.kmb .room__meta {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6f8278;
  font-weight: 600;
}
.kmb .room__note-infant {
  margin-top: 6px;
  padding: 8px 10px;
  background: #FFF4E5;
  border-left: 3px solid #E68A00;
  border-radius: 6px;
  font-size: 12.5px;
  line-height: 1.35;
  color: #5A3A00;
}
/* ══ Price card (розбивка + фінальна ціна) ══ */
.kmb .pc { margin-top: 4px; }
.kmb .pc__toggle {
  display: none;
  width: 100%;
  background: transparent;
  border: 0;
  padding: 8px 0;
  color: #4a5a53;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.kmb .pc__toggle::after { content: ' ▾'; font-size: 10px; opacity: .7; }
.kmb .pc__toggle.on::after { content: ' ▴'; }
.kmb .pc__breakdown { display: block; margin-bottom: 12px; }
.kmb .pc__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  color: #7c8983;
  font-size: 11px;
  line-height: 1.45;
  padding: 1px 0;
}
.kmb .pc__row span:first-child { flex: 1; }
.kmb .pc__row span:last-child { font-weight: 500; color: #4a5a53; font-variant-numeric: tabular-nums; }
.kmb .pc__hr {
  height: 1px;
  background: rgba(31,43,37,.10);
  margin: 6px 0 6px;
}
.kmb .pc__row--extra { color: #1F2B25; font-size: 12.5px; font-weight: 600; margin-top: 6px; }
.kmb .pc__row--extra span:last-child { color: #1F2B25; font-weight: 700; }
.kmb .pc__extra-hint {
  color: #7c8983; font-size: 10.5px; font-style: italic;
  margin-top: 2px; line-height: 1.35;
}
.kmb .pc__subtotal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  color: #3D4B44;
  font-size: 12.5px;
  font-weight: 600;
  padding: 2px 0 0;
}
.kmb .pc__subtotal b {
  color: #1F2B25;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.kmb .pc__final-box {
  margin-top: 4px;
  padding: 14px 16px;
  background: rgba(0,153,102,.07);
  border: 1.5px solid rgba(0,153,102,.35);
  border-radius: 12px;
}
/* Базовий режим (без акції): нейтральна рамка, без зеленої підсвітки */
.kmb .pc__final-box--base {
  background: rgba(31,43,37,.03);
  border-color: rgba(31,43,37,.14);
}
.kmb .pc__main {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}
.kmb .pc__disc {
  background: #E6A93A;
  color: #1F2B25;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 3px 7px;
  border-radius: 6px;
  align-self: center;
}
.kmb .pc__old {
  color: #8a9490;
  text-decoration: line-through;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.kmb .pc__final {
  color: #00684A;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.kmb .pc__final-box--base .pc__final { color: #1F2B25; }
.kmb .pc__unit { color: #4a5a53; font-size: 12px; font-weight: 500; }
.kmb .pc__meta {
  color: #00684A;
  font-size: 12.5px;
  font-weight: 600;
  margin-top: 8px;
  line-height: 1.5;
}
.kmb .pc__final-box--base .pc__meta { color: #3D4B44; }
.kmb .pc__meta b { color: #1F2B25; font-variant-numeric: tabular-nums; }
.kmb .pc__savings {
  color: #009966;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.kmb .pc__ask {
  font-size: 15px;
  font-weight: 700;
  color: #1F2B25;
  line-height: 1.4;
}
.kmb .pc__ask a { color: #00684A; text-decoration: underline; }
@media (max-width: 639px) {
.kmb .pc__toggle { display: block; }
.kmb .pc__breakdown { display: none; }
.kmb .pc__breakdown.on { display: block; }
.kmb .pc__final { font-size: 26px; }
}
.kmb .rooms__disc-note {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 4px;
  padding: 14px 16px;
  background: rgba(0,153,102,.06);
  border: 1px dashed rgba(0,153,102,.35);
  border-radius: 12px;
  color: #00684A;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}
.kmb .rooms__disc-note b { color: #1F2B25; }
.kmb .room__cta {
  margin-top: 12px;
}
.kmb .room__cta .btn { width: 100%; }
/* ══ Room photo gallery (arrows + dots) ══ */
.kmb .room__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 34px; height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .15s, background .15s;
  padding: 0;
  user-select: none;
}
.kmb .room__nav:hover { background: rgba(0,0,0,.8); }
.kmb .room__nav--prev { left: 8px; }
.kmb .room__nav--next { right: 8px; }
.kmb .room:hover .room__nav,
.kmb .room:focus-within .room__nav { opacity: 1; }
@media (hover: none) {
.kmb .room__nav { opacity: 1; }
}
.kmb .room__dots {
  position: absolute;
  bottom: 10px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,.35);
  pointer-events: none;
}
.kmb .room__dots span {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  transition: background .2s, width .2s;
}
.kmb .room__dots span.on {
  background: #fff;
  width: 18px;
}


/* ══ Плашка новорічного пакета в картці ══ */
.kmb .pc__pkg {
  display: inline-block;
  background: #1F2B25;
  color: #F6EFE2;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: 8px;
  margin-bottom: 8px;
}
/* НР-пакет: хвойна рамка, золотий акцент (однаково на всіх сторінках модуля) */
.kmb .pc__final-box--ny {
  background: rgba(18,55,42,.05);
  border-color: rgba(18,55,42,.28);
}
.kmb .pc__final-box--ny .pc__pkg { background: #12372A; color: #F7F8F5; }
.kmb .pc__final-box--ny .pc__final { color: #12372A; }
.kmb .pc__final-box--ny .pc__meta { color: #3D4B44; }
.kmb .pc__final-box--ny .pc__disc { background: #C9A45C; }
.kmb .pc__deposit {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(201,164,92,.14);
  color: #1F2B25;
  font-weight: 500;
}
.kmb .pc__row--disc { color: #8a5a00; font-weight: 600; }
.kmb .pc__row--disc span:last-child { color: #8a5a00; font-weight: 700; }
.kmb .pc__total-row { color: #1F2B25; font-size: 12.5px; font-weight: 700; }

/* ══ Форма броні (.bform): у модалці на сторінці або в картці у віджеті ══ */
.kmb .bform { position: relative; }
.kmb .bform__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: #1F2B25;
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.2;
}
.kmb .bform__sub {
  color: #4a5a53;
  font-size: 13px;
  margin: 0 0 6px;
  line-height: 1.5;
}
.kmb .bform__sub b { color: #00684A; }
.kmb .bform__promo {
  background: #C90441; color: #fff; font-size: 11px; font-weight: 700;
  padding: 2px 6px; border-radius: 6px; margin-left: 4px; white-space: nowrap;
}
.kmb .bform__change {
  background: none; border: 0; padding: 0; margin: 0 0 16px;
  color: #00684A; font-size: 13px; font-weight: 700; text-decoration: underline;
}
.kmb .bform__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.kmb .bform__grid .field-wrap { min-width: 0; }
.kmb .bform__hint {
  background: rgba(0,153,102,.08);
  border-radius: 10px;
  padding: 10px 12px;
  color: #4a5a53;
  font-size: 12.5px;
  margin: 12px 0 14px;
  line-height: 1.5;
}
.kmb .bform__err {
  background: rgba(240,1,75,.10);
  border: 1px solid rgba(240,1,75,.35);
  color: #C90441;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 12px;
  font-weight: 600;
}
.kmb .bform__err[hidden], .kmb [data-bstate][hidden] { display: none; }
.kmb .bform__ok-ic { font-size: 48px; text-align: center; margin-bottom: 10px; }
.kmb .bform__ok-detail {
  color: #1F2B25;
  font-size: 14.5px;
  line-height: 1.6;
  margin: 8px 0 14px;
  text-align: center;
}
.kmb .bform__ok-detail b { color: #00684A; }
.kmb .bform__center { text-align: center; }
.kmb .bform__btn2 { margin-top: 8px; }
.kmb .bform__close {
  position: absolute;
  top: -6px; right: -4px;
  background: transparent; border: 0;
  font-size: 26px;
  line-height: 1;
  color: #6f8278;
  padding: 6px 10px;
  border-radius: 8px;
}
.kmb .bform__close:hover { background: rgba(31,43,37,.08); color: #1F2B25; }
.kmb .bform .field { font-size: 16px; }   /* 16px - без автозуму iOS на фокусі */

/* Віджет (iframe): форма розгортається в картці під ціною - висота iframe росте (postMessage) */
.kmb .room .bform {
  margin-top: 12px;
  background: #F6EFE2;
  border: 1px solid rgba(0,153,102,.25);
  border-radius: 12px;
  padding: 18px 16px 16px;
}
.kmb .room .bform__title { font-size: 22px; padding-right: 28px; }
.kmb .room .bform__close { top: 6px; right: 6px; }
@media (max-width: 380px) {
  .kmb .room .bform__grid { grid-template-columns: 1fr; }
}

/* ══ Модалка форми броні на сторінках (поза .kmb-коренем, тому сама має клас kmb) ══ */
.kmb.kmb-modal {
  position: fixed; inset: 0;
  z-index: 100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 12px;
  overflow-y: auto;
}
.kmb.kmb-modal.on { display: flex; }
.kmb .kmb-modal__backdrop {
  position: fixed; inset: 0;
  background: rgba(15,22,18,.65);
  backdrop-filter: blur(4px);
}
.kmb .kmb-modal__box {
  position: relative;
  background: #F6EFE2;
  border-radius: 18px;
  padding: 28px 24px 24px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 24px 60px -10px rgba(0,0,0,.4);
  margin: auto;
}
.kmb .kmb-modal__box .bform__close { top: -18px; right: -14px; }
