/* ─────────────────────────────────────────────────────────────
   Booking page — multi-step form, calendar, summary
   ───────────────────────────────────────────────────────────── */

.booking-body{ background: var(--bg-soft); min-height: 100vh; }

.book-wrap{
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px var(--pad) 80px;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 40px;
  align-items: start;
}

/* ─── Left rail ─── */
.book-rail{
  position: sticky; top: 88px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 28px;
}
.book-rail-head .kicker{ margin-bottom: 18px; }
.book-rail h1{
  font-size: 28px; line-height: 1.15; letter-spacing: -.025em;
  font-weight: 600;
  margin-bottom: 10px;
}
.book-rail-head p{ font-size: 14px; color: var(--muted); line-height: 1.55; }

.steps{
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.step-row{
  display: flex; align-items: center; gap: 12px;
  padding: 10px 10px;
  border-radius: 10px;
  cursor: default;
  position: relative;
  font-size: 13.5px;
  color: var(--muted);
  transition: background .25s ease, color .25s ease;
}
.step-row + .step-row::before{
  content: ""; position: absolute;
  left: 22px; top: -8px; height: 12px; width: 1px;
  background: var(--line);
}
.step-row.is-current{ color: var(--ink); background: var(--bg-soft); }
.step-row.is-done{ color: var(--ink); }
.step-bubble{
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 11px/1 var(--mono);
  color: var(--muted);
  background: #fff;
  flex-shrink: 0;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.step-row.is-current .step-bubble{ background: var(--ink); color: #fff; border-color: var(--ink); }
.step-row.is-done .step-bubble{ background: var(--ink); color: #fff; border-color: var(--ink); }
.step-row.is-done .step-bubble svg{ display: block; }
.step-row.is-done .step-bubble span{ display: none; }
.step-bubble svg{ display: none; }
.step-name{ font-weight: 500; letter-spacing: -.005em; }
.step-sub{ font-size: 11px; color: var(--muted); margin-left: auto; }

.rail-reassurance{
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex; flex-direction: column; gap: 12px;
}
.rail-reassurance li{
  list-style: none;
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--muted);
  line-height: 1.45;
}
.rail-reassurance svg{ color: var(--ink); flex-shrink: 0; margin-top: 2px; }

/* ─── Right side: panel ─── */
.book-panel{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 40px clamp(28px, 4vw, 48px) 28px;
  min-height: 620px;
  display: flex; flex-direction: column;
  position: relative;
}

.panel-progress{
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
  font: 11px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.panel-progress-bar{
  height: 3px;
  background: var(--bg-soft);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 28px;
}
.panel-progress-bar .fill{
  height: 100%;
  background: var(--ink);
  border-radius: 999px;
  transition: width .5s cubic-bezier(.2,.6,.2,1);
}

.panel-h{ margin-bottom: 8px; font-size: 30px; line-height: 1.12; letter-spacing: -.025em; }
.panel-sub{ color: var(--muted); font-size: 15px; margin-bottom: 32px; max-width: 56ch; }

.panel-body{
  flex: 1;
  display: flex; flex-direction: column; gap: 22px;
  animation: stepIn .45s cubic-bezier(.2,.6,.2,1) both;
}
@keyframes stepIn{
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ─── Form controls ─── */
.field{ display: flex; flex-direction: column; gap: 8px; }
.field-row{ display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.field-label{
  font-size: 13px; font-weight: 500;
  letter-spacing: -.005em;
  color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.field-label .opt{ font-size: 11.5px; color: var(--muted-2); font-weight: 400; letter-spacing: 0; }
.field-hint{ font-size: 12px; color: var(--muted); margin-top: 2px; }

.input, .textarea, .select{
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 12px 14px;
  width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  letter-spacing: -.005em;
}
.input::placeholder, .textarea::placeholder{ color: var(--muted-2); }
.input:hover, .textarea:hover, .select:hover{ border-color: rgba(17,17,17,.24); }
.input:focus, .textarea:focus, .select:focus{
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(17,17,17,.06);
}
.input.invalid{ border-color: #c84a3a; box-shadow: 0 0 0 4px rgba(200,74,58,.08); }
.textarea{ resize: vertical; min-height: 96px; line-height: 1.55; }
.select{ appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' stroke='%23111' stroke-width='1.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }

.input-with-prefix{
  display: flex; align-items: stretch;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.input-with-prefix:focus-within{ border-color: var(--ink); box-shadow: 0 0 0 4px rgba(17,17,17,.06); }
.input-with-prefix .prefix{
  display: inline-flex; align-items: center;
  padding: 0 12px;
  background: var(--bg-soft);
  border-right: 1px solid var(--line);
  font: 13px/1 var(--mono);
  color: var(--muted);
  letter-spacing: .02em;
}
.input-with-prefix .input{
  border: 0 !important;
  border-radius: 0;
  padding: 12px 14px;
  box-shadow: none !important;
}

.err{ font-size: 12px; color: #c84a3a; margin-top: 2px; }

/* ─── Choice cards (radio-as-card) ─── */
.choice-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.choice-grid-2{ grid-template-columns: repeat(2, 1fr); }
.choice-grid-4{ grid-template-columns: repeat(4, 1fr); }
.choice{
  position: relative;
  display: flex; flex-direction: column; gap: 6px;
  align-items: flex-start;
  text-align: left;
  padding: 14px 14px 12px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
  font-family: var(--font);
}
.choice:hover{ border-color: var(--ink); transform: translateY(-1px); }
.choice input{ position: absolute; opacity: 0; pointer-events: none; }
.choice-icon{
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--bg-soft); border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink);
  margin-bottom: 4px;
  transition: background .2s, color .2s;
}
.choice-title{ font-size: 14px; font-weight: 500; color: var(--ink); letter-spacing: -.005em; }
.choice-sub{ font-size: 12px; color: var(--muted); }
.choice-check{
  position: absolute; top: 12px; right: 12px;
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s;
}
.choice-check svg{ opacity: 0; color: #fff; transition: opacity .2s; }
.choice.selected{
  border-color: var(--ink);
  background: #fafafa;
  box-shadow: 0 0 0 1px var(--ink) inset;
}
.choice.selected .choice-check{ background: var(--ink); border-color: var(--ink); }
.choice.selected .choice-check svg{ opacity: 1; }
.choice.selected .choice-icon{ background: var(--ink); color: #fff; border-color: var(--ink); }

/* Radio row (budget/timeline pills) */
.pill-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.pill-choice{
  position: relative;
  padding: 12px 12px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-size: 13.5px; font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  letter-spacing: -.005em;
  transition: border-color .2s, background .2s, transform .2s;
}
.pill-choice input{ position: absolute; opacity: 0; pointer-events: none; }
.pill-choice:hover{ border-color: var(--ink); transform: translateY(-1px); }
.pill-choice.selected{ background: var(--ink); color: #fff; border-color: var(--ink); }
.pill-choice small{ display: block; font-size: 11px; font-weight: 400; color: var(--muted); margin-top: 3px; }
.pill-choice.selected small{ color: rgba(255,255,255,.6); }

/* ─── Calendar ─── */
.cal-wrap{
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: start;
}
.cal{
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}
.cal-head{
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.cal-title{ font-size: 14px; font-weight: 500; letter-spacing: -.005em; }
.cal-nav{ display: flex; gap: 4px; }
.cal-nav button{
  width: 28px; height: 28px; border-radius: 8px;
  background: #fff; border: 1px solid var(--line);
  cursor: pointer; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s;
}
.cal-nav button:hover{ background: var(--bg); border-color: var(--ink); }
.cal-nav button:disabled{ opacity: .35; cursor: not-allowed; }
.cal-dow{
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 6px;
}
.cal-dow span{
  text-align: center;
  font: 10px/1 var(--mono);
  color: var(--muted-2);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 0;
}
.cal-grid{
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-day{
  height: 38px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  font: 500 13.5px/1 var(--font);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  position: relative;
  transition: background .2s, color .2s, border-color .2s;
}
.cal-day:hover:not(:disabled){ background: #fff; border-color: var(--line-strong); }
.cal-day:disabled{ color: var(--muted-2); cursor: not-allowed; opacity: .5; }
.cal-day.is-today{ color: var(--ink); }
.cal-day.is-today::after{
  content: ""; position: absolute; bottom: 6px;
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--ink);
}
.cal-day.is-empty{ visibility: hidden; }
.cal-day.is-selected{ background: var(--ink); color: #fff; border-color: var(--ink); }
.cal-day.is-selected.is-today::after{ background: #fff; }
.cal-day.is-other-month{ color: var(--muted-2); opacity: .4; }

.slots{
  display: flex; flex-direction: column; gap: 12px;
}
.slots-head{
  display: flex; align-items: baseline; justify-content: space-between;
}
.slots-head strong{ font-size: 14px; font-weight: 500; letter-spacing: -.005em; }
.slots-head span{ font-size: 12px; color: var(--muted); }
.slots-list{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.slot{
  position: relative;
  padding: 11px 12px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font: 13.5px/1 var(--font);
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  text-align: center;
  letter-spacing: -.005em;
  transition: border-color .2s, background .2s, color .2s, transform .2s;
}
.slot input{ position: absolute; opacity: 0; pointer-events: none; }
.slot:hover{ border-color: var(--ink); transform: translateY(-1px); }
.slot.selected{ background: var(--ink); color: #fff; border-color: var(--ink); }
.slot.is-disabled{ opacity: .3; cursor: not-allowed; pointer-events: none; }
.slot-empty{
  font-size: 13px; color: var(--muted);
  padding: 24px 12px; text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  background: var(--bg-soft);
}
.tz-note{ font-size: 11.5px; color: var(--muted); margin-top: 4px; }

/* ─── Review step ─── */
.review-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 22px;
}
.review-item{
  background: #fff;
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 4px;
  position: relative;
}
.review-label{
  font: 10.5px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.review-value{
  font-size: 14px; color: var(--ink);
  letter-spacing: -.005em;
  line-height: 1.5;
  font-weight: 500;
}
.review-value.is-empty{ color: var(--muted-2); font-weight: 400; font-style: italic; }
.review-edit{
  position: absolute; top: 12px; right: 14px;
  font: 11px/1 var(--mono);
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.review-edit:hover{ background: var(--bg-soft); color: var(--ink); }

.consent{
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  font-size: 13px; color: var(--muted);
  line-height: 1.5;
}
.consent input{
  margin: 2px 0 0;
  width: 16px; height: 16px;
  accent-color: var(--ink);
  flex-shrink: 0;
}
.consent a{ color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); }

/* ─── Footer nav (sticky) ─── */
.panel-foot{
  margin-top: auto;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.panel-foot .step-meta{
  font: 11px/1 var(--mono);
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.panel-foot-actions{ display: flex; gap: 10px; }

/* ─── Success ─── */
.success{
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 32px 0 12px;
}
.success-icon{
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  margin-bottom: 28px;
  position: relative;
  animation: pop .6s cubic-bezier(.2,.7,.2,1.4) both;
}
.success-icon::after{
  content: ""; position: absolute; inset: -8px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  opacity: .12;
  animation: waPulse 2.4s ease-out infinite;
}
@keyframes pop{
  0%{ transform: scale(.5); opacity: 0; }
  60%{ transform: scale(1.08); opacity: 1; }
  100%{ transform: scale(1); }
}
.success h2{ font-size: 36px; letter-spacing: -.03em; margin-bottom: 10px; }
.success p.sub{ color: var(--muted); max-width: 50ch; font-size: 15.5px; margin-bottom: 32px; line-height: 1.55; }
.success-summary{
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 26px;
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 28px;
  width: 100%; max-width: 460px;
  text-align: left;
}
.success-summary .row{
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 14px;
  padding: 4px 0;
}
.success-summary .row + .row{ border-top: 1px solid var(--line); padding-top: 12px; margin-top: 8px; }
.success-summary .label{ font: 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.success-summary .value{ font-size: 14px; font-weight: 500; color: var(--ink); }
.success-next{
  display: flex; flex-direction: column; gap: 12px;
  text-align: left;
  margin-bottom: 28px;
  width: 100%; max-width: 460px;
}
.success-next h4{ font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.success-next li{
  list-style: none;
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px; color: var(--ink);
}
.success-next li:last-child{ border-bottom: 0; }
.success-next li span.num{
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg-soft); border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 11px/1 var(--mono); color: var(--ink);
  flex-shrink: 0;
}
.success-next li small{ display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.success-actions{ display: flex; gap: 10px; }

/* Hide floating WhatsApp if accidentally inherited */
.fab-wa { display: none !important; }

/* ─── Responsive ─── */
@media (max-width: 980px){
  .book-wrap{ grid-template-columns: 1fr; }
  .book-rail{ position: relative; top: 0; }
  .steps{ flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .step-row + .step-row::before{ display: none; }
  .step-row{ padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; }
  .step-name{ font-size: 12.5px; }
  .step-sub{ display: none; }
  .rail-reassurance{ display: none; }
  .cal-wrap{ grid-template-columns: 1fr; }
  .review-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 640px){
  .field-row{ grid-template-columns: 1fr; }
  .choice-grid, .choice-grid-4{ grid-template-columns: repeat(2, 1fr); }
  .pill-grid{ grid-template-columns: 1fr 1fr; }
  .panel-h{ font-size: 24px; }
  .book-panel{ padding: 28px 22px 24px; }
  .book-rail{ padding: 22px; }
  .panel-foot{ flex-direction: column-reverse; align-items: stretch; }
  .panel-foot-actions{ width: 100%; }
  .panel-foot-actions .btn{ flex: 1; justify-content: center; }
}
