.bsef-wrap,
.bsef-wrap * { box-sizing: border-box; }

.bsef-wrap {
  --bsef-primary: #c49a55;
  --bsef-primary-hover: #ad8240;
  --bsef-bg: #fff;
  --bsef-panel: #f5f6f7;
  --bsef-text: #18212a;
  --bsef-muted: #66717c;
  --bsef-border: #dce1e5;
  --bsef-success: #2f7d55;
  --bsef-radius: 14px;
  --bsef-max-width: 980px;
  position: relative;
  width: min(100%, var(--bsef-max-width));
  margin: 0 auto;
  padding: clamp(24px, 4vw, 52px);
  color: var(--bsef-text);
  background: var(--bsef-bg);
  border: 1px solid var(--bsef-border);
  border-radius: calc(var(--bsef-radius) + 6px);
  box-shadow: 0 22px 60px rgba(20, 30, 40, .09);
  font-family: inherit;
  line-height: 1.5;
}

.bsef-wrap button,
.bsef-wrap input,
.bsef-wrap select,
.bsef-wrap textarea { font: inherit; }

.bsef-header { max-width: 760px; margin-bottom: 30px; }
.bsef-header .bsef-eyebrow {
  margin: 0 0 8px;
  color: var(--bsef-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.bsef-header h2 {
  margin: 0;
  padding: 0;
  color: var(--bsef-text);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
}
.bsef-header .bsef-intro { margin: 14px 0 0; color: var(--bsef-muted); font-size: 17px; }

.bsef-progress {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 0 0 38px;
}
.bsef-progress::before {
  position: absolute;
  z-index: 0;
  top: 18px;
  right: 10%;
  left: 10%;
  height: 2px;
  background: var(--bsef-border);
  content: '';
}
.bsef-progress-item {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  padding: 0;
  align-items: center;
  flex-direction: column;
  gap: 7px;
  color: var(--bsef-muted);
  background: transparent;
  border: 0;
  cursor: pointer;
}
.bsef-progress-item:disabled { cursor: default; }
.bsef-progress-item span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--bsef-muted);
  background: var(--bsef-bg);
  border: 2px solid var(--bsef-border);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
  transition: .2s ease;
}
.bsef-progress-item em { overflow: hidden; max-width: 100%; font-size: 12px; font-style: normal; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.bsef-progress-item.is-active span,
.bsef-progress-item.is-complete span { color: #fff; background: var(--bsef-primary); border-color: var(--bsef-primary); }
.bsef-progress-item.is-active { color: var(--bsef-text); }
.bsef-progress-item.is-complete span::after { content: '✓'; }
.bsef-progress-item.is-complete span { font-size: 0; }
.bsef-progress-item.is-complete span::after { font-size: 15px; }
.bsef-progress-item:focus-visible span { outline: 3px solid color-mix(in srgb, var(--bsef-primary) 28%, transparent); outline-offset: 3px; }

.bsef-step { animation: bsef-fade .22s ease; }
@keyframes bsef-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.bsef-step-heading { margin-bottom: 26px; }
.bsef-step-heading > span { color: var(--bsef-primary); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.bsef-step-heading h3 { margin: 5px 0 5px; padding: 0; color: var(--bsef-text); font-size: clamp(23px, 3vw, 30px); line-height: 1.2; }
.bsef-step-heading p { margin: 0; color: var(--bsef-muted); }

.bsef-fields { display: grid; gap: 20px; }
.bsef-fields--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bsef-fields--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bsef-field { display: block; margin: 0 0 22px; color: var(--bsef-text); }
.bsef-fields .bsef-field { margin: 0; }
.bsef-field > span { display: block; margin: 0 0 8px; font-size: 14px; font-weight: 750; }
.bsef-field b,
.bsef-fieldset b,
.bsef-consent b { color: #a83d3d; }
.bsef-field small,
.bsef-fieldset small { display: block; margin-top: 6px; color: var(--bsef-muted); font-size: 12px; font-weight: 400; }

.bsef-wrap .bsef-field input,
.bsef-wrap .bsef-field select,
.bsef-wrap .bsef-field textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 12px 14px;
  color: var(--bsef-text);
  background: var(--bsef-bg);
  border: 1px solid var(--bsef-border);
  border-radius: max(6px, calc(var(--bsef-radius) - 5px));
  box-shadow: none;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
  appearance: auto;
}
.bsef-wrap .bsef-field textarea { min-height: 128px; resize: vertical; }
.bsef-wrap .bsef-field input:focus,
.bsef-wrap .bsef-field select:focus,
.bsef-wrap .bsef-field textarea:focus { border-color: var(--bsef-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bsef-primary) 18%, transparent); }
.bsef-wrap .bsef-field input::placeholder,
.bsef-wrap .bsef-field textarea::placeholder { color: color-mix(in srgb, var(--bsef-muted) 70%, transparent); }

.bsef-fieldset {
  min-width: 0;
  margin: 0 0 26px;
  padding: 0;
  border: 0;
}
.bsef-fieldset legend { width: 100%; margin: 0 0 11px; padding: 0; color: var(--bsef-text); font-size: 15px; font-weight: 750; }
.bsef-fieldset legend small { display: inline; }
.bsef-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bsef-choice-grid--checks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bsef-choice { position: relative; display: block; cursor: pointer; }
.bsef-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.bsef-choice span {
  position: relative;
  display: flex;
  min-height: 56px;
  padding: 13px 15px 13px 46px;
  align-items: center;
  color: var(--bsef-text);
  background: var(--bsef-panel);
  border: 1px solid var(--bsef-border);
  border-radius: var(--bsef-radius);
  font-size: 14px;
  font-weight: 650;
  transition: .18s ease;
}
.bsef-choice span::before {
  position: absolute;
  left: 16px;
  width: 18px;
  height: 18px;
  background: var(--bsef-bg);
  border: 2px solid var(--bsef-border);
  border-radius: 50%;
  content: '';
}
.bsef-choice-grid--checks .bsef-choice span::before { border-radius: 5px; }
.bsef-choice span::after {
  position: absolute;
  left: 22px;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  content: '';
  opacity: 0;
  transform: scale(.3);
  transition: .18s ease;
}
.bsef-choice-grid--checks .bsef-choice span::after { left: 21px; width: 9px; height: 5px; background: transparent; border-bottom: 2px solid #fff; border-left: 2px solid #fff; border-radius: 0; transform: rotate(-45deg) scale(.3); }
.bsef-choice input:checked + span { color: var(--bsef-text); background: color-mix(in srgb, var(--bsef-primary) 10%, var(--bsef-bg)); border-color: var(--bsef-primary); box-shadow: inset 0 0 0 1px var(--bsef-primary); }
.bsef-choice input:checked + span::before { background: var(--bsef-primary); border-color: var(--bsef-primary); }
.bsef-choice input:checked + span::after { opacity: 1; transform: scale(1); }
.bsef-choice-grid--checks .bsef-choice input:checked + span::after { transform: rotate(-45deg) scale(1); }
.bsef-choice input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--bsef-primary) 22%, transparent); outline-offset: 2px; }

.bsef-summary { margin: 28px 0; padding: 22px; background: var(--bsef-panel); border: 1px solid var(--bsef-border); border-radius: var(--bsef-radius); }
.bsef-summary h4 { margin: 0 0 15px; padding: 0; color: var(--bsef-text); font-size: 18px; }
.bsef-summary dl { display: grid; grid-template-columns: minmax(110px, .35fr) 1fr; margin: 0; }
.bsef-summary dt,
.bsef-summary dd { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--bsef-border); font-size: 14px; }
.bsef-summary dt { color: var(--bsef-muted); font-weight: 700; }
.bsef-summary dd { color: var(--bsef-text); }
.bsef-summary dt:last-of-type,
.bsef-summary dd:last-child { border-bottom: 0; }

.bsef-consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; margin: 24px 0 10px; align-items: start; color: var(--bsef-muted); font-size: 13px; cursor: pointer; }
.bsef-consent input { width: 19px; height: 19px; margin: 1px 0 0; accent-color: var(--bsef-primary); }
.bsef-consent a { color: var(--bsef-primary); font-weight: 700; text-decoration: underline; }
.bsef-reservation-note { margin: 12px 0 0; padding: 12px 14px; color: var(--bsef-muted); background: var(--bsef-panel); border-left: 3px solid var(--bsef-primary); border-radius: 5px; font-size: 12px; }

.bsef-actions { display: flex; margin-top: 34px; justify-content: space-between; gap: 12px; }
.bsef-button {
  display: inline-flex;
  min-height: 50px;
  margin: 0;
  padding: 12px 24px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  background: var(--bsef-primary);
  border: 0;
  border-radius: max(7px, calc(var(--bsef-radius) - 4px));
  box-shadow: none;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: .18s ease;
}
.bsef-button:hover { color: #fff; background: var(--bsef-primary-hover); transform: translateY(-1px); }
.bsef-button:focus-visible { outline: 3px solid color-mix(in srgb, var(--bsef-primary) 28%, transparent); outline-offset: 3px; }
.bsef-button:disabled { cursor: wait; opacity: .7; transform: none; }
.bsef-button--back { color: var(--bsef-text); background: var(--bsef-panel); border: 1px solid var(--bsef-border); }
.bsef-button--back:hover { color: var(--bsef-text); background: color-mix(in srgb, var(--bsef-panel) 75%, var(--bsef-border)); }
.bsef-button--next,
.bsef-button--submit { margin-left: auto; }
.bsef-button--submit i { display: none; width: 17px; height: 17px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: bsef-spin .7s linear infinite; }
.bsef-button--submit.is-loading i { display: block; }
@keyframes bsef-spin { to { transform: rotate(360deg); } }

.bsef-error-summary { margin: 0 0 20px; padding: 13px 15px; color: #8c2828; background: #fff3f3; border: 1px solid #eecaca; border-radius: 9px; font-size: 14px; font-weight: 700; }
.bsef-field-error { display: block !important; margin: 7px 0 0 !important; color: #a12626 !important; font-size: 12px !important; font-weight: 700 !important; }
.bsef-field.has-error input,
.bsef-field.has-error select,
.bsef-field.has-error textarea,
.bsef-fieldset.has-error .bsef-choice span,
.bsef-consent.has-error { border-color: #c84a4a !important; }
.bsef-draft-notice { display: flex; margin: -10px 0 22px; padding: 11px 13px; align-items: center; justify-content: space-between; gap: 12px; color: var(--bsef-text); background: color-mix(in srgb, var(--bsef-primary) 10%, var(--bsef-bg)); border: 1px solid color-mix(in srgb, var(--bsef-primary) 35%, var(--bsef-border)); border-radius: 9px; font-size: 13px; }
.bsef-clear-draft { padding: 0; color: var(--bsef-primary); background: transparent; border: 0; font-weight: 800; cursor: pointer; text-decoration: underline; }
.bsef-honeypot { position: absolute !important; left: -99999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.bsef-success-panel { padding: clamp(30px, 6vw, 70px) 20px; text-align: center; }
.bsef-success-icon { display: grid; width: 64px; height: 64px; margin: 0 auto 20px; place-items: center; color: #fff; background: var(--bsef-success); border-radius: 50%; font-size: 30px; font-weight: 800; }
.bsef-success-panel h3,
.bsef-modal-card h3 { margin: 0 0 10px; padding: 0; color: var(--bsef-text); font-size: 27px; }
.bsef-success-panel p,
.bsef-modal-card p { max-width: 600px; margin: 0 auto 24px; color: var(--bsef-muted); }

.bsef-modal[hidden],
.bsef-success-panel[hidden],
.bsef-step[hidden],
.bsef-button[hidden],
.bsef-progress[hidden],
.bsef-draft-notice[hidden],
.bsef-conditional[hidden],
.bsef-fields[hidden] { display: none !important; }
.bsef-modal { position: fixed; z-index: 999999; inset: 0; display: grid; padding: 20px; place-items: center; }
.bsef-modal-backdrop { position: absolute; inset: 0; background: rgba(10, 16, 22, .72); backdrop-filter: blur(4px); }
.bsef-modal-card { position: relative; z-index: 1; width: min(100%, 520px); padding: clamp(28px, 5vw, 46px); color: var(--bsef-text); background: var(--bsef-bg); border-radius: calc(var(--bsef-radius) + 5px); box-shadow: 0 28px 90px rgba(0, 0, 0, .28); text-align: center; animation: bsef-modal-in .22s ease; }
@keyframes bsef-modal-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.bsef-modal-close { position: absolute; top: 10px; right: 12px; width: 38px; height: 38px; padding: 0; color: var(--bsef-muted); background: transparent; border: 0; font-size: 29px; line-height: 1; cursor: pointer; }
body.bsef-modal-open { overflow: hidden; }

@media (max-width: 780px) {
  .bsef-wrap { padding: 24px 18px; border-radius: var(--bsef-radius); }
  .bsef-header { margin-bottom: 22px; }
  .bsef-progress { margin-bottom: 30px; }
  .bsef-progress-item em { display: none; }
  .bsef-fields--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsef-choice-grid--checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .bsef-fields--2,
  .bsef-fields--3,
  .bsef-choice-grid,
  .bsef-choice-grid--checks { grid-template-columns: 1fr; }
  .bsef-progress::before { right: 8%; left: 8%; }
  .bsef-progress-item span { width: 34px; height: 34px; }
  .bsef-choice span { min-height: 52px; }
  .bsef-summary dl { grid-template-columns: 1fr; }
  .bsef-summary dt { padding-bottom: 2px; border: 0; }
  .bsef-summary dd { padding-top: 0; }
  .bsef-button { min-height: 48px; padding: 11px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .bsef-step,
  .bsef-modal-card,
  .bsef-button,
  .bsef-choice span { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
