/* === Cary Studio booking widget ============================== */
.booking-widget {
  display: grid;
  gap: 24px;
  padding: 28px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.booking-noscript {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #7c2d12;
  padding: 12px 14px;
  border-radius: 8px;
}

.booking-label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--accent, #417572);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.booking-select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
}
.booking-select:focus {
  outline: 2px solid var(--accent, #417572);
  outline-offset: 1px;
}

.booking-calendar {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}
.booking-calendar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}
.booking-month-label { font-weight: 600; text-transform: capitalize; }
.booking-nav {
  background: transparent;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  width: 32px; height: 32px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.booking-nav:hover:not(:disabled) { background: #f3f4f6; }
.booking-nav:disabled { opacity: .4; cursor: not-allowed; }

.booking-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding: 10px;
}
.booking-day-name {
  text-align: center;
  font-size: 12px;
  color: #6b7280;
  text-transform: uppercase;
  padding: 6px 0;
}
.booking-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  position: relative;
}
.booking-day.is-empty { visibility: hidden; }
.booking-day.is-busy {
  color: #d1d5db;
  cursor: not-allowed;
  background: #f9fafb;
}
.booking-day.is-avail {
  color: #111827;
  background: #ecfdf5;
  border-color: #a7f3d0;
}
.booking-day.is-avail:hover { background: #a7f3d0; }
.booking-day.is-selected {
  background: var(--accent, #417572);
  color: #fff;
  border-color: var(--accent, #417572);
}

.booking-legend {
  display: flex;
  gap: 14px;
  padding: 8px 14px 12px;
  font-size: 12px;
  color: #6b7280;
}
.booking-legend .dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 4px;
}
.booking-legend .dot-avail { background: #6ee7b7; }
.booking-legend .dot-busy  { background: #d1d5db; }

.booking-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 8px;
}
.booking-slot {
  padding: 10px 8px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
}
.booking-slot:hover {
  border-color: var(--accent, #417572);
  color: var(--accent, #417572);
}
.booking-slot.is-selected {
  background: var(--accent, #417572);
  color: #fff;
  border-color: var(--accent, #417572);
}

.booking-form { display: grid; gap: 14px; }
.booking-row { display: grid; gap: 6px; }
.booking-row-2 { grid-template-columns: 1fr 1fr; gap: 12px; }
.booking-row label {
  display: grid;
  gap: 4px;
  font-size: 14px;
  color: #374151;
}
.booking-row input[type=text],
.booking-row input[type=email],
.booking-row input[type=tel],
.booking-row textarea {
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-family: inherit;
  font-size: 15px;
}
.booking-row input:focus,
.booking-row textarea:focus {
  outline: 2px solid var(--accent, #417572);
  outline-offset: 1px;
}
.booking-checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  font-size: 13px;
  color: #4b5563;
}
.booking-checkbox a { color: var(--accent, #417572); text-decoration: underline; }

.booking-summary {
  background: #f3f4f6;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  color: #374151;
}
.booking-summary strong { color: var(--accent, #417572); }

.booking-error {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #7f1d1d;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
}
.booking-submit {
  margin-top: 4px;
  width: 100%;
  justify-content: center;
}
.booking-submit:disabled { opacity: .6; cursor: progress; }

/* Honeypot: visually hidden but in tab order disabled. */
.booking-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.booking-success-card {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: 10px;
  padding: 24px;
  text-align: center;
}
.booking-success-card h3 { margin: 0 0 8px; color: #064e3b; }
.booking-success-card p  { margin: 0 0 14px; color: #065f46; }

@media (max-width: 540px) {
  .booking-widget { padding: 18px; }
  .booking-row-2 { grid-template-columns: 1fr; }
}

/* ================================================================
   WIZARD UI (Plan 10: date → time → service → details)
   ================================================================ */

/* Progress bar: 4 numbered pills, joined by a horizontal track */
.booking-progress {
  list-style: none;
  padding: 0; margin: 0 0 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.booking-progress::before {
  content: '';
  position: absolute; left: 18px; right: 18px; top: 16px;
  height: 2px; background: #e5e7eb;
  z-index: 0;
}
.booking-progress li {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px;
  position: relative; z-index: 1;
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
}
.booking-progress li .num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #e5e7eb;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 13px;
  transition: background .2s, border-color .2s, color .2s;
}
.booking-progress li .lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.booking-progress li.is-current .num {
  background: var(--accent, #417572);
  border-color: var(--accent, #417572);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(65,117,114,.12);
}
.booking-progress li.is-current { color: var(--ink, #1F1F1E); font-weight: 600; }
.booking-progress li.is-done .num {
  background: var(--accent-soft, #DDECEA);
  border-color: var(--accent, #417572);
  color: var(--accent, #417572);
}
.booking-progress li.is-done .num::before {
  content: '\f00c'; /* fa-check */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 12px;
}
.booking-progress li.is-done .num { font-size: 0; }
.booking-progress li.is-done { color: var(--accent, #417572); }

/* Summary chips */
.booking-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}
.booking-chip {
  display: inline-flex; align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 12px;
  border-radius: 999px;
  background: var(--accent-soft, #DDECEA);
  border: 1px solid var(--accent, #417572);
  color: var(--accent, #417572);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s, transform .15s;
}
.booking-chip:hover { background: #fff; transform: translateY(-1px); }
.booking-chip .chip-edit { font-size: 10px; opacity: .7; margin-left: 2px; }

/* Step containers */
.booking-step { display: block; }
.booking-step[hidden] { display: none !important; }
.booking-step-title {
  font-family: var(--font-heading, 'Ovo', Georgia, serif);
  font-weight: 400;
  font-size: 22px;
  margin: 6px 0 4px;
  color: var(--ink, #1F1F1E);
}
.booking-step-hint {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 16px;
}

/* Back button */
.booking-back {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent;
  border: none;
  color: var(--accent, #417572);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 0;
  margin-bottom: 8px;
  -webkit-tap-highlight-color: transparent;
}
.booking-back:hover { text-decoration: underline; }
.booking-back i { font-size: 11px; }

/* Service cards grid */
.booking-services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 6px;
}
.booking-service-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .15s, background .15s, transform .15s;
}
.booking-service-card:hover {
  border-color: var(--accent, #417572);
  background: var(--accent-soft, #DDECEA);
}
.booking-service-card.is-selected {
  border-color: var(--accent, #417572);
  background: var(--accent-soft, #DDECEA);
  box-shadow: 0 4px 12px rgba(65,117,114,.12);
}
.booking-service-card .ic {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent-soft, #DDECEA);
  color: var(--accent, #417572);
  display: grid; place-items: center;
  flex-shrink: 0;
  font-size: 16px;
}
.booking-service-card .meta { flex: 1; min-width: 0; }
.booking-service-card .ttl {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink, #1F1F1E);
  line-height: 1.3;
}
.booking-service-card .sub {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}
.booking-service-card .chev {
  color: #9ca3af;
  font-size: 12px;
  flex-shrink: 0;
}
.booking-service-card.is-selected .chev { color: var(--accent, #417572); }

/* Success state card */
.booking-success-card {
  text-align: center;
  padding: 28px 20px;
}
.booking-success-card .check-ic {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--accent-soft, #DDECEA);
  color: var(--accent, #417572);
  display: grid; place-items: center;
  font-size: 28px;
  margin: 0 auto 14px;
}
.booking-success-card h3 {
  font-family: var(--font-heading, 'Ovo', Georgia, serif);
  font-weight: 400;
  font-size: 24px;
  margin-bottom: 8px;
  color: var(--ink, #1F1F1E);
}
.booking-success-card p {
  color: #6b7280;
  margin-bottom: 18px;
  font-size: 14px;
}

@media (max-width: 540px) {
  .booking-progress li .lbl { font-size: 10px; }
  .booking-progress li .num { width: 28px; height: 28px; font-size: 12px; }
  .booking-progress::before { top: 14px; }
  .booking-step-title { font-size: 19px; }
  .booking-service-card { padding: 12px 14px; }
  .booking-service-card .ic { width: 36px; height: 36px; }
}
