/* ============================================================
   Booking Widget — Step-by-step registration wizard
   Designed for clarity: large targets, plain English, no jargon
   ============================================================ */

/* ── Container ─────────────────────────────────────────────── */
.bw {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 32px rgba(31,31,46,.12);
  overflow: hidden;
  font-family: var(--font-sans, 'Instrument Sans', sans-serif);
  position: sticky;
  top: 100px;
}

/* ── Header ─────────────────────────────────────────────────── */
.bw-head {
  background: linear-gradient(135deg, var(--teal, #10b3b0) 0%, #0a8f8c 100%);
  color: #fff;
  padding: 24px 28px 20px;
  text-align: center;
}
.bw-head-title {
  font-family: var(--font-serif, 'Cormorant Garamond', serif);
  font-size: 28px;
  font-style: italic;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 6px;
}
.bw-head-date {
  font-size: 15px;
  opacity: .9;
  margin-bottom: 4px;
}
.bw-head-seats {
  font-size: 13px;
  background: rgba(255,255,255,.2);
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  margin-top: 4px;
}

/* ── Progress bar ───────────────────────────────────────────── */
.bw-progress-wrap {
  height: 4px;
  background: #eee;
}
.bw-progress-bar {
  height: 100%;
  background: var(--teal, #10b3b0);
  transition: width .4s ease;
}

/* ── Body ───────────────────────────────────────────────────── */
.bw-body {
  padding: 24px 24px 16px;
  min-height: 280px;
}

/* ── Steps ──────────────────────────────────────────────────── */
.bw-step {
  display: none;
}
.bw-step.active {
  display: block;
  animation: bwFadeIn .25s ease;
}
@keyframes bwFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0);   }
}

.bw-step-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal, #10b3b0);
  margin-bottom: 8px;
}

.bw-step-q {
  font-family: var(--font-serif, 'Cormorant Garamond', serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink, #1f1f2e);
  line-height: 1.25;
  margin-bottom: 8px;
}

.bw-step-hint {
  font-size: 14px;
  color: var(--muted, #7e7a8b);
  margin: 0 0 20px;
  line-height: 1.5;
}

/* ── Choice buttons (big, tapable) ──────────────────────────── */
.bw-choices {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.bw-choice {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  background: #fafafa;
  border: 2px solid #e8e4f0;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: border-color .15s, background .15s, box-shadow .15s;
  font-family: inherit;
}
.bw-choice:hover {
  border-color: var(--teal, #10b3b0);
  background: #f0fafa;
  box-shadow: 0 2px 12px rgba(16,179,176,.12);
}
.bw-choice--selected {
  border-color: var(--teal, #10b3b0);
  background: #e8f7f7;
}

.bw-choice-icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
}
.bw-choice-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.bw-choice-text strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink, #1f1f2e);
  line-height: 1.2;
}
.bw-choice-text small {
  font-size: 13px;
  color: var(--muted, #7e7a8b);
  font-weight: 400;
}
.bw-choice-arrow {
  font-size: 22px;
  color: #ccc;
  flex-shrink: 0;
  font-weight: 300;
  transition: color .15s, transform .15s;
}
.bw-choice:hover .bw-choice-arrow {
  color: var(--teal, #10b3b0);
  transform: translateX(3px);
}
.bw-choice-price {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink, #1f1f2e);
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── Extra nights counter ───────────────────────────────────── */
.bw-extras {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}
.bw-extra-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fafafa;
  border: 1px solid #e8e4f0;
  border-radius: 12px;
  padding: 14px 18px;
}
.bw-extra-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink, #1f1f2e);
}
.bw-extra-rate {
  font-size: 13px;
  color: var(--muted, #7e7a8b);
  margin-top: 2px;
}
.bw-counter {
  display: flex;
  align-items: center;
  gap: 0;
  background: #fff;
  border: 2px solid #e8e4f0;
  border-radius: 50px;
  overflow: hidden;
}
.bw-counter-btn {
  width: 42px;
  height: 42px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--ink, #1f1f2e);
  transition: background .15s;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bw-counter-btn:hover {
  background: #f0fafa;
  color: var(--teal, #10b3b0);
}
.bw-counter-val {
  min-width: 36px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink, #1f1f2e);
  pointer-events: none;
}

/* ── Input fields ───────────────────────────────────────────── */
.bw-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bw-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink, #1f1f2e);
}
.bw-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px; /* 16px prevents iOS zoom */
  border: 2px solid #e8e4f0;
  border-radius: 10px;
  outline: none;
  font-family: inherit;
  color: var(--ink, #1f1f2e);
  background: #fafafa;
  transition: border-color .15s;
  box-sizing: border-box;
}
.bw-input:focus {
  border-color: var(--teal, #10b3b0);
  background: #fff;
}

/* ── Dietary radio options ──────────────────────────────────── */
.bw-checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.bw-check {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 2px solid #e8e4f0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  color: var(--ink, #1f1f2e);
  font-weight: 500;
  transition: border-color .15s, background .15s;
  background: #fafafa;
}
.bw-check:hover {
  border-color: var(--teal, #10b3b0);
  background: #f0fafa;
}
.bw-check input[type="radio"] {
  display: none;
}
.bw-check-box {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #d0cce0;
  flex-shrink: 0;
  transition: all .15s;
  position: relative;
}
.bw-check input[type="radio"]:checked ~ .bw-check-box {
  border-color: var(--teal, #10b3b0);
  background: var(--teal, #10b3b0);
}
.bw-check input[type="radio"]:checked ~ .bw-check-box::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
}
.bw-check input[type="radio"]:checked ~ span:last-child {
  color: var(--teal, #10b3b0);
}

/* ── Order summary (step 6) ─────────────────────────────────── */
.bw-summary {
  background: #f8f6ff;
  border: 1px solid #e8e4f0;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 16px 0;
}
.bw-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--muted, #7e7a8b);
  padding: 4px 0;
}
.bw-summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink, #1f1f2e);
  border-top: 1px solid #e8e4f0;
  margin-top: 8px;
  padding-top: 10px;
}

/* ── Buttons ────────────────────────────────────────────────── */
.bw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 24px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .18s;
  text-decoration: none;
  box-sizing: border-box;
}
.bw-btn--primary {
  background: var(--teal, #10b3b0);
  color: #fff;
  border-color: var(--teal, #10b3b0);
}
.bw-btn--primary:hover {
  background: #0a8f8c;
  border-color: #0a8f8c;
}
.bw-btn--cta {
  background: linear-gradient(90deg, #f2896e 0%, #ea4a35 55%, #a8281d 100%);
  color: #fff;
  border: none;
  width: 100%;
  font-size: 17px;
  padding: 18px 24px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(217,58,44,.3);
}
.bw-btn--cta:hover {
  opacity: .92;
  box-shadow: 0 6px 20px rgba(217,58,44,.4);
  transform: translateY(-1px);
}
.bw-btn--outline {
  background: transparent;
  color: var(--teal, #10b3b0);
  border-color: var(--teal, #10b3b0);
}
.bw-btn--outline:hover {
  background: var(--teal, #10b3b0);
  color: #fff;
}
.bw-btn--ghost {
  background: transparent;
  color: var(--muted, #7e7a8b);
  border-color: #ddd;
  font-weight: 500;
}
.bw-btn--ghost:hover {
  border-color: #aaa;
  color: var(--ink, #1f1f2e);
}

/* ── Footer bar (price + back) ──────────────────────────────── */
.bw-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px 16px;
  border-top: 1px solid #f0eef8;
}
.bw-back {
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted, #7e7a8b);
  cursor: pointer;
  padding: 6px 0;
  font-family: inherit;
  transition: color .15s;
}
.bw-back:hover { color: var(--ink, #1f1f2e); }

.bw-total-display {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}
.bw-total-label {
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted, #7e7a8b);
}
.bw-total-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink, #1f1f2e);
}

/* ── Sold out state ─────────────────────────────────────────── */
.bw-sold {
  text-align: center;
  padding: 32px 24px;
}
.bw-sold-icon { font-size: 48px; margin-bottom: 12px; }
.bw-sold-title {
  font-family: var(--font-serif, 'Cormorant Garamond', serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink, #1f1f2e);
  margin-bottom: 8px;
}
.bw-sold-text {
  font-size: 14px;
  color: var(--muted, #7e7a8b);
  margin-bottom: 16px;
}

/* ── Phone number ───────────────────────────────────────────── */
.bw-phone {
  text-align: center;
  font-size: 13px;
  color: var(--muted, #7e7a8b);
  padding: 0 24px 18px;
}
.bw-phone a {
  color: var(--teal, #10b3b0);
  font-weight: 600;
  text-decoration: none;
}
.bw-phone a:hover { text-decoration: underline; }
