@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300&family=DM+Sans:wght@300;400;500&display=swap');

/* ═══════════════════════════════════════════════════════
   HALO Booking Plugin  ·  v2.0.0  ·  Light Theme
═══════════════════════════════════════════════════════ */

.halo-booking-wrap {
  /* ── Light palette ── */
  --hb-bg:       #f4f1ec;
  --hb-surface:  #ffffff;
  --hb-card:     #faf8f5;
  --hb-card-hov: #f4f0ea;
  --hb-border:   #e6e0d6;
  --hb-gold:     #c9a84c;
  --hb-gold-lt:  #dfc06a;
  --hb-gold-bg:  rgba(201,168,76,.08);
  --hb-text:     #2a2117;
  --hb-muted:    #8c8278;
  --hb-error:    #d94f4f;
  --hb-r:        14px;

  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  font-family: 'DM Sans', sans-serif;
  color: var(--hb-text);
  background: var(--hb-bg);
  border-radius: 28px;
  padding: 4px;
}

/* ── Shell ──────────────────────────────────────── */
.hb-shell {
  background: var(--hb-surface);
  border: 1px solid var(--hb-border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 2px 4px rgba(42,33,23,.04),
    0 12px 32px rgba(42,33,23,.08),
    0 40px 80px rgba(42,33,23,.06);
}

/* ── Header ─────────────────────────────────────── */
.hb-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 40px 0;
  background: linear-gradient(135deg, #fdfbf7 0%, #f9f5ee 100%);
  border-bottom: 1px solid var(--hb-border);
  padding-bottom: 20px;
  margin-bottom: 0;
}
.hb-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 300;
  letter-spacing: .32em;
  color: var(--hb-gold);
  text-transform: uppercase;
}

/* ── Step bar ───────────────────────────────────── */
.hb-step-bar {
  display: flex;
  padding: 28px 40px 0;
  background: var(--hb-surface);
}
.hb-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.hb-step::before {
  content: '';
  position: absolute;
  top: 14px;
  left: calc(-50% + 14px);
  right: calc(50% + 14px);
  height: 1px;
  background: var(--hb-border);
  transition: background .4s;
}
.hb-step:first-child::before { display: none; }
.hb-step.hb-done::before,
.hb-step.hb-active::before   { background: var(--hb-gold); }

.hb-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--hb-border);
  background: var(--hb-surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 500;
  color: var(--hb-muted);
  transition: all .3s;
  z-index: 1;
}
.hb-step.hb-active .hb-dot {
  border-color: var(--hb-gold);
  color: var(--hb-gold);
  background: rgba(201,168,76,.1);
  box-shadow: 0 0 0 4px rgba(201,168,76,.12);
}
.hb-step.hb-done .hb-dot {
  border-color: var(--hb-gold);
  background: var(--hb-gold);
  color: #fff;
}
.hb-step-lbl {
  margin-top: 8px;
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--hb-muted);
  transition: color .3s;
  text-align: center;
}
.hb-step.hb-active .hb-step-lbl { color: var(--hb-gold); }
.hb-step.hb-done   .hb-step-lbl { color: var(--hb-gold-lt); }

/* ── Content area ───────────────────────────────── */
.hb-content {
  padding: 36px 40px 32px;
  min-height: 420px;
  background: var(--hb-surface);
}

/* ── Screens ────────────────────────────────────── */
.hb-screen          { display: none; }
.hb-screen.hb-show  { display: block; animation: hbFadeUp .35s ease; }

@keyframes hbFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hb-stitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px; font-weight: 400;
  color: var(--hb-text);
  margin-bottom: 4px;
}
.hb-ssub {
  font-size: 13px;
  color: var(--hb-muted);
  margin-bottom: 28px;
}

/* ─── Location cards ────────────────────────────── */
.hb-loc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(188px, 1fr));
  gap: 12px;
}
.hb-loc-card {
  border: 1.5px solid var(--hb-border);
  border-radius: var(--hb-r);
  padding: 20px 18px;
  cursor: pointer;
  transition: border-color .22s, background .22s, box-shadow .22s, transform .15s;
  background: var(--hb-card);
  position: relative;
  box-shadow: 0 1px 3px rgba(42,33,23,.04);
}
.hb-loc-card:hover {
  border-color: rgba(201,168,76,.55);
  background: var(--hb-card-hov);
  box-shadow: 0 4px 16px rgba(201,168,76,.12);
  transform: translateY(-1px);
}
.hb-loc-card.hb-sel {
  border-color: var(--hb-gold);
  background: var(--hb-gold-bg);
  box-shadow: 0 4px 16px rgba(201,168,76,.18);
}
.hb-loc-icon  { font-size: 28px; display: block; margin-bottom: 12px; }
.hb-loc-name  { font-weight: 500; font-size: 14px; margin-bottom: 4px; color: var(--hb-text); }
.hb-loc-addr  { font-size: 12px; color: var(--hb-muted); line-height: 1.5; }
.hb-chk {
  position: absolute; top: 12px; right: 12px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--hb-gold); color: #fff; font-size: 11px;
  display: none; align-items: center; justify-content: center;
}
.hb-loc-card.hb-sel .hb-chk { display: flex; }

/* ─── Treatment cards ───────────────────────────── */
.hb-treat-card {
  border: 1.5px solid var(--hb-border);
  border-radius: var(--hb-r);
  padding: 18px 52px 18px 20px;
  cursor: pointer;
  transition: border-color .22s, background .22s, box-shadow .22s, transform .15s;
  background: var(--hb-card);
  display: flex; align-items: center; gap: 18px;
  margin-bottom: 10px; position: relative;
  box-shadow: 0 1px 3px rgba(42,33,23,.04);
}
.hb-treat-card:hover {
  border-color: rgba(201,168,76,.55);
  background: var(--hb-card-hov);
  box-shadow: 0 4px 14px rgba(201,168,76,.1);
  transform: translateY(-1px);
}
.hb-treat-card.hb-sel {
  border-color: var(--hb-gold);
  background: var(--hb-gold-bg);
  box-shadow: 0 4px 14px rgba(201,168,76,.16);
}
.hb-t-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(201,168,76,.1);
  border: 1px solid rgba(201,168,76,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.hb-t-info  { flex: 1; min-width: 0; }
.hb-t-name  { font-weight: 500; font-size: 14.5px; margin-bottom: 3px; color: var(--hb-text); }
.hb-t-desc  { font-size: 12px; color: var(--hb-muted); }
.hb-t-meta  { text-align: right; flex-shrink: 0; }
.hb-t-price { font-size: 15px; color: var(--hb-gold); font-weight: 600; }
.hb-t-dur   { font-size: 11px; color: var(--hb-muted); margin-top: 2px; }
.hb-radio {
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px;
  border: 1.5px solid var(--hb-border); border-radius: 50%;
  transition: all .2s; pointer-events: none;
}
.hb-treat-card.hb-sel .hb-radio {
  border-color: var(--hb-gold);
  background: var(--hb-gold);
  box-shadow: inset 0 0 0 3px var(--hb-surface);
}

/* ─── Calendar ──────────────────────────────────── */
.hb-cal-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

.hb-cal-hdr {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 20px;
}
.hb-cal-nav {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--hb-card);
  border: 1px solid var(--hb-border);
  color: var(--hb-muted); font-size: 18px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.hb-cal-nav:hover {
  border-color: var(--hb-gold);
  color: var(--hb-gold);
  background: rgba(201,168,76,.06);
}
.hb-cal-month {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px; letter-spacing: .05em;
  color: var(--hb-text);
}
.hb-cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 3px; }
.hb-dow {
  text-align: center; font-size: 10px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--hb-muted); padding-bottom: 8px;
}
.hb-day {
  aspect-ratio: 1; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; cursor: pointer;
  color: var(--hb-text);
  transition: background .15s, color .15s;
}
.hb-day.hb-other { opacity: .2; pointer-events: none; }
.hb-day.hb-past  { opacity: .3; pointer-events: none; color: var(--hb-muted); }
.hb-day.hb-today { border: 1.5px solid rgba(201,168,76,.6); color: var(--hb-gold); font-weight: 600; }
.hb-day:not(.hb-past):not(.hb-other):hover { background: rgba(201,168,76,.14); color: #7a5c20; }
.hb-day.hb-sel {
  background: var(--hb-gold) !important;
  color: #fff !important;
  font-weight: 600;
}

/* ─── Time slots ────────────────────────────────── */
.hb-slot-hd {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px; margin-bottom: 16px;
  color: var(--hb-text);
}
.hb-slot-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.hb-slot {
  border: 1.5px solid var(--hb-border); border-radius: 10px;
  padding: 10px 4px; text-align: center; font-size: 13px;
  cursor: pointer; background: var(--hb-card);
  color: var(--hb-text);
  transition: all .2s;
}
.hb-slot:hover { border-color: rgba(201,168,76,.55); background: rgba(201,168,76,.06); }
.hb-slot.hb-sel {
  border-color: var(--hb-gold);
  background: rgba(201,168,76,.1);
  color: #7a5c20;
  font-weight: 500;
}
.hb-slot.hb-full {
  opacity: .35; pointer-events: none; text-decoration: line-through;
  background: #f5f2ee; color: var(--hb-muted);
}

/* ─── Details form ──────────────────────────────── */
.hb-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hb-fg   { display: flex; flex-direction: column; gap: 6px; }
.hb-fg.hb-full { grid-column: 1 / -1; }
.hb-lbl  {
  font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--hb-muted);
  font-weight: 500;
}
.hb-input, .hb-sel-input, .hb-ta {
  background: var(--hb-card);
  border: 1.5px solid var(--hb-border);
  border-radius: 10px;
  color: var(--hb-text);
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  padding: 12px 16px; outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
  width: 100%;
  box-sizing: border-box;
}
.hb-input::placeholder, .hb-ta::placeholder { color: var(--hb-muted); opacity: .7; }
.hb-input:focus, .hb-sel-input:focus, .hb-ta:focus {
  border-color: var(--hb-gold);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(201,168,76,.1);
}
.hb-sel-input { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238c8278' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.hb-ta { resize: vertical; min-height: 90px; }

/* Validation error states */
.hb-input.hb-error,
.hb-sel-input.hb-error,
.hb-ta.hb-error {
  border-color: var(--hb-error) !important;
  background: #fff8f8;
  box-shadow: 0 0 0 3px rgba(217,79,79,.08);
}
.hb-field-error {
  font-size: 11.5px;
  color: var(--hb-error);
  margin-top: 2px;
  display: none;
}
.hb-field-error.hb-visible { display: block; animation: hbFadeUp .2s ease; }

/* ─── Summary rows ──────────────────────────────── */
.hb-sum-section { margin-top: 8px; }
.hb-sum-label {
  font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--hb-muted);
  margin-bottom: 12px; font-weight: 500;
}
.hb-srow {
  display: flex; justify-content: space-between;
  font-size: 13px; padding: 9px 0;
  border-bottom: 1px solid var(--hb-border);
}
.hb-srow:last-child { border-bottom: none; }
.hb-srow.hb-total {
  border-top: 1.5px solid rgba(201,168,76,.4);
  margin-top: 4px; padding-top: 14px; border-bottom: none;
}
.hb-sk { color: var(--hb-muted); }
.hb-sv { font-weight: 500; color: var(--hb-text); }
.hb-sv.hb-gold { color: var(--hb-gold); font-weight: 600; }

/* ─── Footer ────────────────────────────────────── */
.hb-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 40px 32px;
  background: var(--hb-surface);
  border-top: 1px solid var(--hb-border);
}
.hb-btn {
  padding: 13px 32px; border-radius: 50px; border: none;
  font-family: 'DM Sans', sans-serif; font-size: 13.5px; font-weight: 500;
  letter-spacing: .03em; cursor: pointer; transition: all .25s;
}
.hb-btn-ghost {
  background: transparent;
  border: 1.5px solid var(--hb-border);
  color: var(--hb-muted);
}
.hb-btn-ghost:hover {
  border-color: var(--hb-gold);
  color: var(--hb-gold);
  background: rgba(201,168,76,.04);
}
.hb-btn-primary {
  background: var(--hb-gold);
  color: #fff;
  box-shadow: 0 4px 12px rgba(201,168,76,.3);
}
.hb-btn-primary:hover {
  background: var(--hb-gold-lt);
  box-shadow: 0 8px 24px rgba(201,168,76,.35);
  transform: translateY(-1px);
}
.hb-btn-primary:disabled {
  opacity: .45; pointer-events: none; box-shadow: none; transform: none;
}
.hb-progress { font-size: 12px; color: var(--hb-muted); letter-spacing: .05em; }

/* ─── Confirmation screen ───────────────────────── */
.hb-confirm { text-align: center; padding: 24px 0 8px; }
.hb-ok-icon {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 24px;
  background: rgba(201,168,76,.1);
  border: 1.5px solid var(--hb-gold);
  display: flex; align-items: center; justify-content: center; font-size: 30px;
  animation: hbPop .5s cubic-bezier(.34,1.56,.64,1);
}
@keyframes hbPop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.hb-ok-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px; font-weight: 400;
  color: var(--hb-text);
  margin-bottom: 8px;
}
.hb-ok-sub { font-size: 14px; color: var(--hb-muted); margin-bottom: 32px; }
.hb-ok-box {
  background: var(--hb-card);
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-r);
  padding: 22px 28px;
  text-align: left; max-width: 480px; margin: 0 auto;
  box-shadow: 0 2px 8px rgba(42,33,23,.06);
}
.hb-ref {
  text-align: center; margin-top: 24px; font-size: 12px; color: var(--hb-muted);
}
.hb-ref span { font-family: monospace; letter-spacing: .1em; color: var(--hb-gold); font-weight: 600; }

/* ─── Loading spinner on submit ─────────────────── */
.hb-spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: hbSpin .7s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}
@keyframes hbSpin { to { transform: rotate(360deg); } }

/* ─── Responsive ────────────────────────────────── */
@media (max-width: 640px) {
  .hb-hdr, .hb-content, .hb-footer { padding-left: 20px !important; padding-right: 20px !important; }
  .hb-step-bar  { padding-left: 20px; padding-right: 20px; }
  .hb-cal-wrap  { grid-template-columns: 1fr; }
  .hb-form      { grid-template-columns: 1fr; }
  .hb-loc-grid  { grid-template-columns: 1fr 1fr; }
  .hb-slot-grid { grid-template-columns: repeat(2,1fr); }
  .hb-stitle    { font-size: 26px; }
  .hb-t-meta    { display: none; }
  .hb-ok-title  { font-size: 28px; }
}
