/* Caldesoil booking wizard — visual prototype only. No Zoho calls are made here. */
.booking-modal[hidden] { display: none; }
.booking-modal {
  --booking-blue: #264d9a;
  --booking-blue-dark: #001d61;
  --booking-blue-soft: #eef3fb;
  --booking-line: #dfe5ee;
  --booking-ink: #172033;
  --booking-muted: #657087;
  --booking-red: #d62128;
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(12, 24, 49, 0.62);
  backdrop-filter: blur(5px);
  overscroll-behavior: contain;
}

.booking-shell {
  width: min(760px, 100%);
  max-height: min(900px, calc(100vh - 2rem));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 22px;
  box-shadow: 0 28px 80px rgba(4, 18, 47, 0.3), 0 8px 20px rgba(4, 18, 47, 0.13);
  color: var(--booking-ink);
  animation: booking-shell-in 240ms cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes booking-shell-in {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.booking-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #edf0f5;
  background: #fff;
}

.booking-logo { width: 156px; height: auto; display: block; }
.booking-close {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #566177;
  cursor: pointer;
  transition: background 160ms ease-out, color 160ms ease-out, transform 140ms ease-out;
}
.booking-close:hover { background: var(--booking-blue-soft); color: var(--booking-blue); }
.booking-close:active { transform: scale(0.96); }
.booking-close svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

.booking-progress {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: start;
  gap: 0;
  padding: 1.15rem 1.35rem 1.05rem;
  background: #fff;
}
.booking-progress-step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.42rem;
  min-width: 0;
  color: #647086;
  font-size: 0.77rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
}
.booking-progress-step::before {
  content: '';
  position: absolute;
  top: 14px;
  right: 50%;
  width: 100%;
  height: 3px;
  background: #e7ebf1;
  z-index: 0;
}
.booking-progress-step:first-child::before { display: none; }
.booking-progress-step.is-done::before,
.booking-progress-step.is-current::before { background: #5c9bd6; }
.booking-progress-dot {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 4px solid #e7ebf1;
  border-radius: 50%;
  background: #fff;
  color: transparent;
  font-size: 0.72rem;
  transition: border-color 180ms ease-out, background 180ms ease-out, color 180ms ease-out;
}
.booking-progress-step.is-current { color: #4d91d0; }
.booking-progress-step.is-current .booking-progress-dot { border-color: #4d91d0; box-shadow: 0 0 0 3px rgba(77, 145, 208, 0.12); }
.booking-progress-step.is-current .booking-progress-dot::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #4d91d0; }
.booking-progress-step.is-done .booking-progress-dot { border-color: #4d91d0; background: #4d91d0; color: #fff; }
.booking-progress-step.is-done .booking-progress-dot::after { content: '✓'; font-weight: 800; }

.booking-body {
  min-height: 430px;
  overflow: auto;
  padding: 0 2rem 1.75rem;
  overscroll-behavior: contain;
}
.booking-step { display: none; animation: booking-step-in 220ms cubic-bezier(0.23, 1, 0.32, 1); }
.booking-step.is-active { display: block; }
@keyframes booking-step-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.booking-kicker {
  margin: 0.55rem 0 0.45rem;
  color: var(--booking-blue);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.booking-title { margin: 0; color: var(--booking-ink); font-size: clamp(1.55rem, 3vw, 2rem); line-height: 1.14; letter-spacing: -0.025em; }
.booking-intro { max-width: 58ch; margin: 0.55rem 0 1.45rem; color: var(--booking-muted); font-size: 0.95rem; line-height: 1.55; }

.booking-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; }
.booking-service-card,
.booking-choice-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  min-height: 102px;
  padding: 1rem;
  border: 1px solid var(--booking-line);
  border-radius: 15px;
  background: #fff;
  color: var(--booking-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease-out, background 160ms ease-out, transform 160ms ease-out, box-shadow 160ms ease-out;
}
.booking-service-card:hover,
.booking-choice-card:hover { border-color: #6ba4d9; background: #fbfdff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(38, 77, 154, 0.08); }
.booking-service-card:active,
.booking-choice-card:active { transform: scale(0.985); }
.booking-service-card.is-selected,
.booking-choice-card.is-selected { border-color: #4d91d0; background: #f1f7fd; box-shadow: inset 0 0 0 1px #4d91d0; }
.booking-service-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--booking-blue-soft);
  color: var(--booking-blue);
}
.booking-service-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.booking-card-copy { min-width: 0; }
.booking-card-title { display: block; font-size: 1rem; font-weight: 700; line-height: 1.25; }
.booking-card-description { display: block; margin-top: 0.3rem; color: var(--booking-muted); font-size: 0.78rem; line-height: 1.35; }
.booking-selected-mark { position: absolute; top: 0.65rem; right: 0.65rem; width: 20px; height: 20px; display: none; place-items: center; border-radius: 50%; background: var(--booking-blue); color: #fff; font-size: 0.72rem; font-weight: 800; }
.is-selected .booking-selected-mark { display: grid; }

.booking-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.booking-field { display: grid; gap: 0.42rem; }
.booking-field--wide { grid-column: 1 / -1; }
.booking-label { color: #303b50; font-size: 0.84rem; font-weight: 700; }
.booking-input,
.booking-textarea,
.booking-select {
  width: 100%;
  padding: 0.82rem 0.9rem;
  border: 1px solid #d8dfe9;
  border-radius: 11px;
  background: #fff;
  color: var(--booking-ink);
  font: inherit;
  font-size: 0.94rem;
  outline: none;
  transition: border-color 160ms ease-out, box-shadow 160ms ease-out;
}
.booking-textarea { min-height: 108px; resize: vertical; line-height: 1.45; }
.booking-input:focus,
.booking-textarea:focus,
.booking-select:focus { border-color: #4d91d0; box-shadow: 0 0 0 4px rgba(77, 145, 208, 0.13); }
.booking-input::placeholder,
.booking-textarea::placeholder { color: #9aa5b6; }
.booking-field-error { display: none; margin: 0; color: #bd2027; font-size: 0.77rem; font-weight: 600; }
.booking-field.has-error .booking-input,
.booking-field.has-error .booking-textarea,
.booking-field.has-error .booking-select { border-color: #cf3138; }
.booking-field.has-error .booking-field-error { display: block; }

.booking-choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; }
.booking-choice-card { display: block; min-height: 0; padding: 1rem; }
.booking-choice-card .booking-card-title { padding-right: 1rem; }
.booking-choice-card .booking-card-description { min-height: 2.55em; }
.booking-radio-row { display: flex; gap: 0.65rem; margin: 0.45rem 0 1.25rem; }
.booking-radio { position: relative; flex: 1; }
.booking-radio input { position: absolute; opacity: 0; pointer-events: none; }
.booking-radio label { display: flex; align-items: center; justify-content: center; gap: 0.45rem; min-height: 48px; padding: 0.7rem; border: 1px solid var(--booking-line); border-radius: 11px; color: #3f4a60; font-weight: 600; cursor: pointer; transition: border-color 160ms ease-out, background 160ms ease-out; }
.booking-radio label::before { content: ''; width: 15px; height: 15px; border: 2px solid #b8c2d1; border-radius: 50%; }
.booking-radio input:checked + label { border-color: #4d91d0; background: #f1f7fd; color: var(--booking-blue); }
.booking-radio input:checked + label::before { border: 4px solid #4d91d0; }

.booking-alert { display: flex; align-items: flex-start; gap: 0.65rem; margin-top: 1.15rem; padding: 0.9rem 1rem; border-radius: 13px; background: #f1f7fd; color: #53637a; font-size: 0.82rem; line-height: 1.45; }
.booking-alert svg { width: 19px; height: 19px; flex: 0 0 19px; margin-top: 0.05rem; stroke: #54799f; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.booking-alert strong { color: #334966; }

.booking-schedule-layout { display: grid; grid-template-columns: 1fr 0.9fr; gap: 1.25rem; align-items: start; }
.booking-calendar { padding: 0.85rem; border: 1px solid var(--booking-line); border-radius: 15px; }
.booking-calendar-heading { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.8rem; }
.booking-calendar-heading strong { font-size: 0.98rem; }
.booking-calendar-heading span { color: var(--booking-muted); font-size: 0.78rem; }
.booking-calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.2rem; }
.booking-weekday { padding: 0.2rem 0; color: #8a95a7; font-size: 0.68rem; font-weight: 800; text-align: center; text-transform: uppercase; }
.booking-date { min-height: 37px; border: 0; border-radius: 10px; background: transparent; color: #3e4a60; font: inherit; font-size: 0.82rem; cursor: pointer; }
.booking-date:hover { background: var(--booking-blue-soft); }
.booking-date.is-selected { background: #4d91d0; color: #fff; font-weight: 800; }
.booking-date.is-disabled { color: #c4cad4; cursor: not-allowed; }
.booking-date.is-empty { pointer-events: none; }
.booking-slots { display: grid; gap: 0.65rem; }
.booking-slots-title { margin: 0 0 0.2rem; font-size: 0.86rem; font-weight: 800; }
.booking-slot { min-height: 48px; padding: 0.7rem 0.8rem; border: 1px solid var(--booking-line); border-radius: 11px; background: #fff; color: #43516a; font: inherit; font-size: 0.85rem; font-weight: 700; text-align: left; cursor: pointer; transition: border-color 160ms ease-out, background 160ms ease-out, transform 160ms ease-out; }
.booking-slot:hover { border-color: #4d91d0; background: #f7fbff; }
.booking-slot:active { transform: scale(0.985); }
.booking-slot.is-selected { border-color: #4d91d0; background: #eaf4fd; color: var(--booking-blue); box-shadow: inset 0 0 0 1px #4d91d0; }
.booking-timezone { margin: 0.6rem 0 0; color: #8994a6; font-size: 0.72rem; line-height: 1.4; }
.booking-step-error { display: none; margin: 0.2rem 0 0; color: #bd2027; font-size: 0.78rem; font-weight: 700; line-height: 1.4; }
.booking-step-error.is-visible { display: block; }

.booking-consent { display: flex; align-items: flex-start; gap: 0.55rem; margin-top: 1rem; color: #657087; font-size: 0.78rem; line-height: 1.45; }
.booking-consent input { margin-top: 0.18rem; accent-color: var(--booking-blue); }
.booking-consent a { color: var(--booking-blue); text-decoration: underline; }

.booking-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 80px; padding: 1rem 2rem; border-top: 1px solid #edf0f5; background: #fff; }
.booking-footer[hidden] { display: none; }
.booking-footer-hint { color: #8791a2; font-size: 0.82rem; }
.booking-footer-actions { display: flex; align-items: center; gap: 0.9rem; margin-left: auto; }
.booking-back,
.booking-next {
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border-radius: 11px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease-out, color 160ms ease-out, border-color 160ms ease-out, transform 140ms ease-out;
}
.booking-back { border: 1px solid #dfe5ee; background: #fff; color: #3e4a60; }
.booking-back:hover { border-color: #afbdd0; background: #f8fafc; }
.booking-next { border: 1px solid var(--booking-blue); background: var(--booking-blue); color: #fff; box-shadow: 0 6px 14px rgba(38, 77, 154, 0.18); }
.booking-next:hover { background: #1d438b; border-color: #1d438b; }
.booking-back:active,
.booking-next:active { transform: scale(0.97); }
.booking-back[hidden] { display: none; }

.booking-confirmation { display: grid; justify-items: center; padding: 1.1rem 0 0.6rem; text-align: center; }
.booking-confirmation-icon { width: 64px; height: 64px; display: grid; place-items: center; margin: 0.3rem 0 1rem; border-radius: 50%; background: #eaf4fd; color: #4d91d0; }
.booking-confirmation-icon svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.booking-confirmation h2 { margin: 0; font-size: 1.8rem; letter-spacing: -0.025em; }
.booking-confirmation > p { max-width: 46ch; margin: 0.65rem auto 1.3rem; color: var(--booking-muted); line-height: 1.55; }
.booking-summary { width: min(100%, 520px); display: grid; gap: 0.6rem; padding: 1rem 1.1rem; border-radius: 15px; background: #f5f7fa; text-align: left; }
.booking-summary-row { display: grid; grid-template-columns: 115px 1fr; gap: 0.75rem; font-size: 0.85rem; }
.booking-summary-row dt { color: #6e7b8f; }
.booking-summary-row dd { margin: 0; color: #26344b; font-weight: 700; }
.booking-preview-note { margin-top: 1rem !important; color: #9b6e1c !important; font-size: 0.75rem; }
.booking-confirmation-actions { display: flex; gap: 0.7rem; margin-top: 1.1rem; }

body.booking-modal-open { overflow: hidden; }
body.booking-modal-open > *:not(.booking-modal) { pointer-events: none; }
[data-booking-open] { cursor: pointer; }

@media (max-width: 680px) {
  .booking-modal { padding: 0; align-items: end; }
  .booking-shell { width: 100%; max-height: 100dvh; border-radius: 20px 20px 0 0; }
  .booking-header { min-height: 78px; padding: 0.8rem 1rem; }
  .booking-logo { width: 136px; }
  .booking-progress { padding: 0.9rem 0.8rem 0.8rem; }
  .booking-progress-step { font-size: 0.64rem; }
  .booking-progress-dot { width: 26px; height: 26px; border-width: 3px; }
  .booking-progress-step::before { top: 12px; height: 2px; }
  .booking-body { min-height: 0; padding: 0 1rem 1.25rem; }
  .booking-title { font-size: 1.5rem; }
  .booking-intro { font-size: 0.9rem; margin-bottom: 1.1rem; }
  .booking-card-grid,
  .booking-choice-grid,
  .booking-form-grid,
  .booking-schedule-layout { grid-template-columns: 1fr; }
  .booking-service-card { min-height: 82px; }
  .booking-field--wide { grid-column: auto; }
  .booking-footer { min-height: 72px; padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom)); }
  .booking-footer-hint { display: none; }
  .booking-footer-actions { width: 100%; }
  .booking-back, .booking-next { flex: 1; }
  .booking-summary-row { grid-template-columns: 92px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .booking-shell, .booking-step { animation: none; }
  .booking-service-card, .booking-choice-card, .booking-slot, .booking-back, .booking-next { transition: none; }
}
