/* booking.css — styles for the public booking page (/booking/:slug) */
/* :root theme variables are injected inline per-shop by the server.   */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-body); background: var(--color-bg); color: var(--color-text); min-height: 100vh; }

/* ── Header ─────────────────────────────────────────────────────────────── */
header {
  background: var(--color-surface);
  border-bottom: 2px solid var(--color-primary);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.shop-logo { width: 48px; height: 48px; border-radius: var(--radius); object-fit: cover; }
header h1  { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; color: var(--color-text); }
header p   { font-size: .85rem; color: var(--color-text-muted); }
.shop-phone {
  margin-left: auto;
  font-size: .85rem; font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  white-space: nowrap;
}
.shop-phone:hover { text-decoration: underline; }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.container { max-width: 560px; margin: 2.5rem auto; padding: 0 1rem; }

/* ── Steps indicator ────────────────────────────────────────────────────── */
.steps { display: flex; margin-bottom: 2rem; }
.step  { flex: 1; text-align: center; position: relative; }
.step::after {
  content: ''; position: absolute; top: 14px; left: 50%; right: -50%;
  height: 2px; background: rgba(128,128,128,.3);
}
.step:last-child::after { display: none; }
.step-dot {
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; position: relative; z-index: 1;
  border: 2px solid rgba(128,128,128,.4);
  background: var(--color-surface); color: var(--color-text-muted);
}
.step.active .step-dot { border-color: var(--color-primary); color: var(--color-primary); background: var(--color-surface); }
.step.done   .step-dot { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.step-label { font-size: .7rem; color: var(--color-text-muted); margin-top: .3rem; }
.step.active .step-label { color: var(--color-primary); font-weight: 600; }

/* ── Card ───────────────────────────────────────────────────────────────── */
.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid rgba(128,128,128,.2);
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  margin-bottom: 1rem;
}
.card h2 { font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: 1.25rem; color: var(--color-text); }

/* ── Service list ───────────────────────────────────────────────────────── */
.svc-list { display: flex; flex-direction: column; gap: .6rem; }
.svc-btn  {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1rem;
  border: 2px solid rgba(128,128,128,.25);
  border-radius: var(--radius);
  background: rgba(128,128,128,.08); color: var(--color-text);
  cursor: pointer; text-align: left; width: 100%;
  transition: border-color .15s, background .15s;
}
.svc-btn:hover    { border-color: var(--color-primary); background: rgba(128,128,128,.14); }
.svc-btn.selected { border-color: var(--color-primary); background: rgba(128,128,128,.14); }
.svc-name  { font-weight: 600; font-size: .95rem; color: var(--color-text); }
.svc-meta  { font-size: .8rem; color: var(--color-text-muted); margin-top: .15rem; }
.svc-price { font-weight: 700; font-size: .9rem; color: var(--color-primary); white-space: nowrap; }

/* ── Date picker ────────────────────────────────────────────────────────── */
.cal-nav   { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.cal-title { font-weight: 700; font-size: 1rem; color: var(--color-text); }
.cal-arrow {
  background: rgba(128,128,128,.12);
  border: 1px solid rgba(128,128,128,.25);
  border-radius: var(--radius);
  color: var(--color-text);
  width: 32px; height: 32px;
  font-size: 1.2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.cal-arrow:hover:not(:disabled) { background: rgba(128,128,128,.22); }
.cal-arrow:disabled { opacity: .3; cursor: not-allowed; }
.date-grid  { display: grid; grid-template-columns: repeat(7, 1fr); gap: .4rem; margin-bottom: 1rem; }
.day-label  { text-align: center; font-size: .7rem; font-weight: 700; color: var(--color-text-muted); padding: .3rem 0; }
.day-btn {
  padding: .55rem .2rem;
  border: 1px solid rgba(128,128,128,.25);
  border-radius: var(--radius);
  background: rgba(128,128,128,.1); color: var(--color-text);
  font-size: .8rem; cursor: pointer; text-align: center;
  transition: background .1s, border-color .1s;
}
.day-btn:hover:not(.disabled) { border-color: var(--color-primary); background: rgba(128,128,128,.2); }
.day-btn.selected { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.day-btn.disabled { opacity: .3; cursor: not-allowed; pointer-events: none; }

/* ── Time slots ─────────────────────────────────────────────────────────── */
.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.slot-btn  {
  padding: .6rem;
  border: 2px solid rgba(128,128,128,.25);
  border-radius: var(--radius);
  background: rgba(128,128,128,.08); color: var(--color-text);
  font-size: .85rem; cursor: pointer; text-align: center;
  transition: border-color .1s, background .1s;
}
.slot-btn:hover    { border-color: var(--color-primary); background: rgba(128,128,128,.16); }
.slot-btn.selected { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.no-slots { text-align: center; color: var(--color-text-muted); font-size: .875rem; padding: 1.5rem 0; }

/* ── Form ───────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }
label { display: block; font-size: .83rem; font-weight: 600; margin-bottom: .3rem; color: var(--color-text); }
input[type=text], input[type=tel], input[type=email] {
  width: 100%; padding: .65rem .85rem;
  border: 1px solid rgba(128,128,128,.3);
  border-radius: var(--radius); font-size: .9rem;
  background: rgba(128,128,128,.08); color: var(--color-text);
  outline: none; transition: border-color .15s;
}
input::placeholder { color: var(--color-text-muted); }
input:focus { border-color: var(--color-primary); }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn-primary {
  display: block; width: 100%; padding: .8rem;
  background: var(--color-primary); color: #fff;
  border: none; border-radius: var(--radius);
  font-size: .95rem; font-weight: 700;
  cursor: pointer; margin-top: 1rem;
  transition: background .15s;
}
.btn-primary:hover    { background: var(--color-primary-dk); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.btn-back {
  background: none; border: none;
  color: var(--color-text-muted); font-size: .875rem;
  cursor: pointer; margin-top: .75rem; display: block;
}
.btn-back:hover { color: var(--color-text); text-decoration: underline; }

/* ── Summary bar ────────────────────────────────────────────────────────── */
.summary {
  background: rgba(128,128,128,.1);
  border-radius: var(--radius); padding: .85rem 1rem;
  font-size: .85rem; border: 1px solid rgba(128,128,128,.2);
  margin-bottom: 1.25rem; display: none;
}
.summary.visible { display: flex; gap: 1rem; flex-wrap: wrap; }
.summary span    { color: var(--color-text-muted); }
.summary strong  { color: var(--color-text); }

/* ── Alert ──────────────────────────────────────────────────────────────── */
.alert { padding: .7rem 1rem; border-radius: var(--radius); font-size: .875rem; margin-bottom: 1rem; display: none; }
.alert.visible  { display: block; }
.alert-error    { background: #fee2e2; color: #dc2626; }
.alert-success  { background: #dcfce7; color: #166534; text-align: center; }

/* ── Panel ──────────────────────────────────────────────────────────────── */
.panel { display: none; }
.panel.active { display: block; }

/* ── Spinner ────────────────────────────────────────────────────────────── */
.spinner { text-align: center; padding: 1.5rem; color: var(--color-text-muted); font-size: .9rem; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
footer {
  text-align: center; padding: 2rem 1rem;
  font-size: .8rem; color: var(--color-text-muted);
  background: var(--color-surface);
  border-top: 1px solid rgba(0,0,0,.07);
  margin-top: 3rem;
}
footer a { color: inherit; }
footer a:hover { color: var(--color-primary); }
.footer-schedule { font-size: .82rem; color: var(--color-text-muted); margin-bottom: .85rem; line-height: 1.8; }
.social-links { display: flex; gap: .6rem; justify-content: center; margin-bottom: .85rem; }
.social-link {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--color-text); color: var(--color-bg);
  transition: background .15s;
}
.social-link:hover { background: var(--color-primary); }
