.bi-booking-app {
  --bi-ink: #222;
  --bi-muted: #707070;
  --bi-green: #2f974b;
  --bi-green-dark: #267c3d;
  --bi-sage: #eaf4ec;
  --bi-cream: #f7f7f5;
  --bi-line: #ddd;
  --bi-error: #a43e34;
  max-width: 1180px;
  width: 100%;
  min-width: 0;
  margin: 40px auto 80px;
  color: var(--bi-ink);
  font-family: "Libre Franklin", "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.55;
  container: bi-booking / inline-size;
}
.bi-booking-app * { box-sizing: border-box; }
.bi-mode-notice { display: flex; gap: 10px; align-items: baseline; margin: 0 0 22px; padding: 13px 16px; color: #555; background: var(--bi-sage); font-size: 12px; }
.bi-mode-notice strong { color: var(--bi-green-dark); text-transform: uppercase; letter-spacing: .08em; }
.bi-empty { padding: 25px; border: 1px solid var(--bi-line); background: var(--bi-cream); }
.bi-booking-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-width: 0; box-shadow: 0 18px 48px rgba(0,0,0,.08); }
.bi-booking-shell > * { min-width: 0; }
.bi-journey-panel { display: flex; flex-direction: column; justify-content: space-between; min-height: 730px; padding: 36px 26px; background: var(--bi-cream); border: 1px solid var(--bi-line); border-right: 0; }
.bi-panel-kicker, .bi-eyebrow { margin: 0 0 18px; color: var(--bi-green-dark); font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.bi-progress-list { list-style: none; margin: 0; padding: 0; }
.bi-progress-list li { position: relative; display: flex; gap: 13px; min-height: 72px; opacity: .45; }
.bi-progress-list li::after { content: ""; position: absolute; top: 31px; bottom: 0; left: 15px; width: 1px; background: #cfcfcf; }
.bi-progress-list li:last-child::after { display: none; }
.bi-progress-list li > span { position: relative; z-index: 1; display: grid; place-items: center; flex: 0 0 31px; height: 31px; border: 1px solid #aaa; color: #555; background: var(--bi-cream); font-size: 11px; font-weight: 800; }
.bi-progress-list li strong, .bi-progress-list li small { display: block; }
.bi-progress-list li strong { margin-top: 1px; font-size: 13px; }
.bi-progress-list li small { color: var(--bi-muted); font-size: 10px; }
.bi-progress-list li.is-active, .bi-progress-list li.is-complete { opacity: 1; }
.bi-progress-list li.is-active > span { color: #fff; border-color: var(--bi-green); background: var(--bi-green); }
.bi-progress-list li.is-complete > span { color: #fff; border-color: #7bb88c; background: #7bb88c; }
.bi-mini-summary { padding-top: 22px; border-top: 1px solid #d2d2d2; }
.bi-mini-summary p:not(.bi-panel-kicker) { display: flex; justify-content: space-between; gap: 12px; margin: 7px 0; font-size: 11px; }
.bi-mini-summary p span { color: var(--bi-muted); }
.bi-mini-summary p strong { max-width: 140px; text-align: right; }
.bi-mini-summary .bi-estimate { margin-top: 15px; padding-top: 15px; border-top: 1px solid #d2d2d2; }
.bi-mini-summary .bi-estimate strong { color: var(--bi-green-dark); font-size: 16px; }
.bi-mini-summary > small { display: block; margin-top: 12px; color: var(--bi-muted); font-size: 9px; }
.bi-booking-form { min-width: 0; min-height: 730px; padding: 35px 42px 32px; background: #fff; border: 1px solid var(--bi-line); }
.bi-form-topline { display: flex; justify-content: space-between; margin-bottom: 34px; color: var(--bi-muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.bi-sample-button { padding: 0; border: 0; color: var(--bi-green-dark); background: transparent; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.bi-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.bi-step[hidden] { display: none; }
.bi-step-heading { margin-bottom: 28px; }
.bi-step-heading h2, .bi-success-dialog h2 { margin: 0 0 10px; font: 800 clamp(25px, 3vw, 34px)/1.15 inherit; letter-spacing: .08em; text-transform: uppercase; }
.bi-step-heading > p:last-child { max-width: 700px; margin: 0; color: var(--bi-muted); font-size: 14px; }
.bi-tour-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; min-width: 0; margin: 0; padding: 0; border: 0; }
.bi-tour-card { position: relative; display: grid; grid-template-columns: 82px minmax(0, 1fr) 20px; gap: 14px; align-items: center; min-width: 0; min-height: 145px; padding: 14px; overflow: hidden; border: 1px solid var(--bi-line); cursor: pointer; }
.bi-tour-card:hover { border-color: #999; }
.bi-tour-card:has(input:checked) { border-color: var(--bi-green); background: #f7fbf8; box-shadow: inset 4px 0 0 var(--bi-green); }
.bi-tour-card.is-closed { cursor: not-allowed; opacity: .55; }
.bi-tour-card > input { position: absolute; opacity: 0; }
.bi-tour-art { display: block; width: 82px; height: 112px; background: linear-gradient(145deg,#86b6cb,#93bc69 48%,#dfa23c 82%); background-position: center; background-size: cover; }
.bi-tour-content { min-width: 0; overflow-wrap: anywhere; }
.bi-tour-content span, .bi-tour-content strong, .bi-tour-content small, .bi-tour-content em { display: block; }
.bi-tour-date { margin-bottom: 5px; color: var(--bi-green-dark); font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.bi-tour-content strong { line-height: 1.25; font-size: 13px; }
.bi-tour-content small { margin-top: 7px; color: var(--bi-muted); font-size: 10px; }
.bi-tour-content em { margin-top: 7px; color: var(--bi-error); font-size: 10px; font-style: normal; font-weight: 700; }
.bi-radio-mark { width: 18px; height: 18px; border: 1px solid #999; border-radius: 50%; }
.bi-tour-card input:checked ~ .bi-radio-mark { border: 5px solid var(--bi-green); }
.bi-compact-row { display: grid; grid-template-columns: .8fr 1.2fr; gap: 18px; align-items: end; margin-top: 22px; }
.bi-rule-card { display: flex; gap: 14px; align-items: center; min-height: 74px; padding: 15px 18px; background: var(--bi-cream); }
.bi-rule-card > span { color: var(--bi-green); font-size: 24px; }
.bi-rule-card p { margin: 0; color: var(--bi-muted); font-size: 12px; }
.bi-rule-card strong { display: block; color: var(--bi-ink); font-size: 13px; }
.bi-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px; min-width: 0; }
.bi-field { display: flex; flex-direction: column; gap: 7px; margin: 0; color: var(--bi-ink); font-size: 13px; font-weight: 700; }
.bi-field b, .bi-consent b { color: var(--bi-error); }
.bi-field input, .bi-field select, .bi-field textarea { width: 100%; min-width: 0; max-width: none; margin: 0; padding: 12px 13px; color: var(--bi-ink); background: #fff; border: 1px solid #cfd6d0; border-radius: 0; box-shadow: none; font: 450 14px/1.4 inherit; outline: none; }
.bi-field input, .bi-field select { min-height: 47px; }
.bi-field textarea { resize: vertical; }
.bi-field input:focus, .bi-field select:focus, .bi-field textarea:focus { border-color: var(--bi-green); box-shadow: 0 0 0 2px rgba(47,151,75,.12); }
.bi-field .is-invalid, .bi-step .is-invalid { border-color: var(--bi-error) !important; background: #fff7f5 !important; }
.bi-span-2 { grid-column: 1/-1; }
.bi-fieldset { padding: 0; border: 0; }
.bi-fieldset legend { margin-bottom: 7px; }
.bi-radio-pills { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }
.bi-radio-pills label { position: relative; }
.bi-radio-pills input { position: absolute; opacity: 0; }
.bi-radio-pills span { display: grid; place-items: center; min-height: 47px; border: 1px solid #cfd6d0; cursor: pointer; font-weight: 500; }
.bi-radio-pills input:checked + span { border-color: var(--bi-green); background: var(--bi-sage); color: var(--bi-green-dark); font-weight: 700; }
.bi-help-text { margin: -8px 0 0; padding: 10px 13px; color: var(--bi-muted); background: var(--bi-cream); font-size: 11px; }
.bi-traveler-tabs { display: flex; gap: 7px; margin-bottom: 22px; padding-bottom: 6px; overflow-x: auto; }
.bi-traveler-tab { padding: 9px 13px; white-space: nowrap; color: var(--bi-muted); background: #fff; border: 1px solid var(--bi-line); cursor: pointer; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.bi-traveler-tab[aria-selected="true"] { color: #fff; background: var(--bi-green); border-color: var(--bi-green); }
.bi-traveler-profile[hidden] { display: none; }
.bi-profile-heading { display: flex; gap: 13px; align-items: center; margin-bottom: 23px; }
.bi-profile-heading > span { display: grid; place-items: center; width: 43px; height: 43px; color: #fff; background: var(--bi-green); font-size: 20px; font-weight: 700; }
.bi-profile-heading h3 { margin: 0; font: 700 23px/1.2 inherit; }
.bi-profile-heading p { margin: 0; color: var(--bi-muted); font-size: 11px; }
.bi-emergency-block, .bi-consent-block { margin: 27px 0 0; padding: 22px; border: 1px solid var(--bi-line); }
.bi-emergency-block legend, .bi-consent-block legend { padding: 0 8px; font-size: 18px; font-weight: 700; }
.bi-room-preferences { display: grid; gap: 15px; }
.bi-room-card { padding: 20px; border: 1px solid var(--bi-line); }
.bi-room-person { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.bi-room-person > span { display: grid; place-items: center; width: 36px; height: 36px; color: #fff; background: var(--bi-green); font-size: 11px; font-weight: 800; }
.bi-room-person strong, .bi-room-person small { display: block; }
.bi-room-person small { color: var(--bi-muted); font-size: 10px; }
.bi-room-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.bi-room-options label { position: relative; min-width: 0; }
.bi-room-options input { position: absolute; opacity: 0; }
.bi-room-options label > span { display: block; min-height: 72px; padding: 12px; border: 1px solid var(--bi-line); cursor: pointer; }
.bi-room-options b, .bi-room-options small { display: block; }
.bi-room-options b { font-size: 12px; overflow-wrap: anywhere; }
.bi-room-options small { color: var(--bi-muted); font-size: 10px; }
.bi-room-options input:checked + span { border-color: var(--bi-green); background: var(--bi-sage); box-shadow: inset 0 0 0 1px var(--bi-green); }
.bi-share-field { margin-top: 15px; }
.bi-share-field[hidden], .bi-room-note[hidden] { display: none; }
.bi-share-field small { color: var(--bi-muted); font-weight: 450; }
.bi-room-note { margin: 12px 0 0; padding: 10px 12px; color: #745640; background: #fcf3e2; font-size: 11px; }
.bi-check-line { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; color: var(--bi-ink); cursor: pointer; font-size: 13px; }
.bi-check-line > input { position: absolute; opacity: 0; }
.bi-check-line > span:first-of-type { flex: 0 0 auto; width: 19px; height: 19px; margin-top: 1px; border: 1px solid #9aa7a0; background: #fff; }
.bi-check-line > input:checked + span:first-of-type { border-color: var(--bi-green); background: var(--bi-green); }
.bi-check-line > input:checked + span:first-of-type::after { content: "✓"; display: block; color: #fff; font-size: 12px; line-height: 17px; text-align: center; }
.bi-consent { margin: 5px 0; padding: 13px; background: var(--bi-cream); }
.bi-source-field { max-width: 390px; margin-top: 18px; }
.bi-review-content { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; min-width: 0; }
.bi-review-card { min-width: 0; padding: 17px; border: 1px solid var(--bi-line); }
.bi-review-card.bi-wide { grid-column: 1/-1; }
.bi-review-card h3 { margin: 0 0 10px; font-size: 17px; }
.bi-review-card p { display: flex; justify-content: space-between; gap: 15px; margin: 5px 0; color: var(--bi-muted); font-size: 11px; }
.bi-review-card p strong { min-width: 0; color: var(--bi-ink); overflow-wrap: anywhere; text-align: right; font-size: 12px; }
.bi-traveler-review-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; min-width: 0; }
.bi-traveler-review { min-width: 0; padding: 10px 12px; overflow-wrap: anywhere; background: #f3f6f3; }
.bi-traveler-review strong, .bi-traveler-review small { display: block; }
.bi-traveler-review small { color: var(--bi-muted); }
.bi-form-error { min-height: 23px; margin-top: 10px; color: var(--bi-error); font-size: 12px; font-weight: 700; }
.bi-form-actions { display: flex; gap: 10px; align-items: center; margin-top: 6px; padding-top: 22px; border-top: 1px solid var(--bi-line); }
.bi-save-note { margin: 0 auto; color: var(--bi-muted); font-size: 10px; }
.bi-button { min-height: 48px; padding: 0 20px; border: 1px solid var(--bi-green); border-radius: 0; cursor: pointer; font: 750 11px/1 inherit; letter-spacing: .08em; text-transform: uppercase; }
.bi-button:disabled { cursor: wait; opacity: .65; }
.bi-primary { color: #fff; background: var(--bi-green); }
.bi-primary:hover { color: #fff; background: var(--bi-green-dark); }
.bi-secondary { color: var(--bi-green-dark); background: transparent; }
.bi-success-dialog { max-width: 470px; padding: 38px; color: var(--bi-ink); background: #fff; border: 0; box-shadow: 0 30px 90px rgba(17,32,26,.3); text-align: center; }
.bi-success-dialog::backdrop { background: rgba(17,32,26,.62); backdrop-filter: blur(3px); }
.bi-dialog-icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 18px; color: #fff; background: var(--bi-green); font-size: 25px; }
.bi-success-dialog > p:not(.bi-eyebrow) { color: var(--bi-muted); }
.bi-success-dialog .bi-button { margin-top: 12px; }
.bi-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .bi-booking-shell { grid-template-columns: 1fr; }
  .bi-journey-panel { min-height: auto; padding: 23px; border-right: 1px solid var(--bi-line); border-bottom: 0; }
  .bi-progress-list { display: flex; justify-content: space-between; }
  .bi-progress-list li { flex: 1; min-height: auto; flex-direction: column; gap: 5px; align-items: center; text-align: center; }
  .bi-progress-list li::after { top: 15px; right: calc(-50% + 18px); bottom: auto; left: calc(50% + 18px); width: auto; height: 1px; }
  .bi-progress-list li div small { display: none; }
  .bi-progress-list li div strong { font-size: 10px; }
  .bi-mini-summary { display: none; }
  .bi-booking-form { min-height: 0; }
}
@media (max-width: 680px) {
  .bi-booking-app { margin: 24px auto 50px; }
  .bi-mode-notice { display: block; }
  .bi-mode-notice strong { display: block; margin-bottom: 3px; }
  .bi-booking-form { padding: 25px 19px 28px; }
  .bi-progress-list li div strong { display: none; }
  .bi-tour-grid, .bi-field-grid, .bi-compact-row, .bi-review-content, .bi-traveler-review-list { grid-template-columns: 1fr; }
  .bi-span-2, .bi-review-card.bi-wide { grid-column: auto; }
  .bi-tour-card { grid-template-columns: 68px 1fr 18px; min-height: 126px; }
  .bi-tour-art { width: 68px; height: 96px; }
  .bi-room-options { grid-template-columns: 1fr; }
  .bi-form-actions { flex-wrap: wrap; }
  .bi-save-note { order: -1; flex: 0 0 100%; text-align: center; }
  .bi-button { flex: 1; }
}

/* WordPress themes and page builders can place the form in a narrow content
   column even on a wide screen. These container rules respond to the space
   the form actually receives, rather than only to the browser width. */
@container bi-booking (max-width: 900px) {
  .bi-booking-shell { grid-template-columns: minmax(0, 1fr); }
  .bi-journey-panel { min-height: auto; padding: 23px; border-right: 1px solid var(--bi-line); border-bottom: 0; }
  .bi-progress-list { display: flex; justify-content: space-between; }
  .bi-progress-list li { flex: 1; min-height: auto; flex-direction: column; gap: 5px; align-items: center; text-align: center; }
  .bi-progress-list li::after { top: 15px; right: calc(-50% + 18px); bottom: auto; left: calc(50% + 18px); width: auto; height: 1px; }
  .bi-progress-list li div small { display: none; }
  .bi-progress-list li div strong { font-size: 10px; }
  .bi-mini-summary { display: none; }
  .bi-booking-form { min-height: 0; }
}

@container bi-booking (max-width: 680px) {
  .bi-mode-notice { display: block; }
  .bi-mode-notice strong { display: block; margin-bottom: 3px; }
  .bi-booking-form { padding: 25px 19px 28px; }
  .bi-progress-list li div strong { display: none; }
  .bi-tour-grid, .bi-field-grid, .bi-compact-row, .bi-review-content, .bi-traveler-review-list { grid-template-columns: minmax(0, 1fr); }
  .bi-span-2, .bi-review-card.bi-wide { grid-column: auto; }
  .bi-tour-card { grid-template-columns: 68px minmax(0, 1fr) 18px; min-height: 126px; }
  .bi-tour-art { width: 68px; height: 96px; }
  .bi-room-options { grid-template-columns: minmax(0, 1fr); }
  .bi-review-card p { align-items: flex-start; }
  .bi-form-actions { flex-wrap: wrap; }
  .bi-save-note { order: -1; flex: 0 0 100%; text-align: center; }
  .bi-button { flex: 1; }
}

@container bi-booking (max-width: 420px) {
  .bi-journey-panel { padding: 18px 14px; }
  .bi-booking-form { padding: 22px 14px 25px; }
  .bi-tour-card { grid-template-columns: 58px minmax(0, 1fr) 18px; gap: 10px; padding: 11px; }
  .bi-tour-art { width: 58px; height: 82px; }
  .bi-room-card, .bi-emergency-block, .bi-consent-block { padding: 15px; }
  .bi-review-card p { display: grid; gap: 2px; }
  .bi-review-card p strong { text-align: left; }
}
