/* Client booking page. */

.wrap { max-width: 1020px; margin: 0 auto; padding: 0 20px; }

/* Header ---------------------------------------------------------------- */

.site-header {
  background: var(--shell);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 12px;
}

.brand { display: flex; align-items: center; gap: 12px; }

.brand-mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--mocha), var(--rose));
  color: #fff;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.1rem; letter-spacing: .06em; }
.brand-text small { color: var(--ink-faint); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }

.header-actions { display: flex; align-items: center; gap: 4px; }
.lang-toggle { font-weight: 600; }

/* Hero ------------------------------------------------------------------ */

.hero { text-align: center; padding: 44px 0 28px; }
.hero h1 { font-family: var(--serif); font-size: clamp(2rem, 5vw, 2.9rem); font-weight: 600; }
.hero p { color: var(--ink-soft); max-width: 44ch; margin: 0 auto; }

/* Steps ----------------------------------------------------------------- */

.steps {
  display: flex;
  justify-content: center;
  gap: 6px;
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  flex-wrap: wrap;
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: .87rem;
  color: var(--ink-faint);
}

.step-num {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--sand);
  color: var(--ink-faint);
  font-size: .78rem;
  font-weight: 700;
}

.step.is-active { background: var(--shell); color: var(--ink); box-shadow: var(--shadow); }
.step.is-active .step-num { background: var(--mocha); color: #fff; }
.step.is-done .step-num { background: var(--ok); color: #fff; }
.step.is-done { color: var(--ink-soft); }

@media (max-width: 560px) {
  .step-label { display: none; }
  .step { padding: 7px 10px; }
}

/* Panels ---------------------------------------------------------------- */

.panel { margin-bottom: 40px; animation: fade-up .25s ease-out; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.panel h2 { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; margin: 0 0 14px; }
.panel-head h2 { margin: 0; }

/* Services -------------------------------------------------------------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.service-card {
  text-align: start;
  background: var(--shell);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .12s;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-card:hover { border-color: var(--mocha); box-shadow: var(--shadow); transform: translateY(-2px); }
.service-card.is-selected { border-color: var(--mocha); box-shadow: 0 0 0 2px rgba(176,130,104,.25), var(--shadow); }

.service-card h3 { font-size: 1.06rem; margin: 0; }
.service-card p { margin: 0; color: var(--ink-soft); font-size: .89rem; }

.service-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 10px;
  font-size: .86rem;
  color: var(--ink-soft);
}
.service-price { color: var(--mocha-dark); font-weight: 700; }

.skeleton-card {
  height: 132px;
  border-radius: var(--radius);
  background: linear-gradient(100deg, var(--sand) 30%, #F8F2ED 50%, var(--sand) 70%);
  background-size: 300% 100%;
  animation: shimmer 1.3s infinite;
}
@keyframes shimmer { to { background-position: -150% 0; } }

/* Chosen service banner -------------------------------------------------- */

.chosen-service {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--sand);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: .93rem;
}
.chosen-service strong { color: var(--ink); }

/* Calendar --------------------------------------------------------------- */

.when-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
@media (max-width: 800px) { .when-grid { grid-template-columns: 1fr; } }

.calendar { padding: 16px; }

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cal-head strong { font-size: 1.05rem; }

.cal-nav {
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  background: var(--shell);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--ink-soft);
}
.cal-nav:hover:not(:disabled) { background: var(--sand); color: var(--ink); }
.cal-nav:disabled { opacity: .35; cursor: not-allowed; }

.cal-weekdays, .cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-weekdays {
  margin-bottom: 6px;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink-faint);
  text-align: center;
}

.cal-day {
  aspect-ratio: 1 / 1;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: .92rem;
  color: var(--ink);
  position: relative;
  transition: background .12s, border-color .12s;
}

.cal-day.is-empty { visibility: hidden; cursor: default; }
.cal-day.is-available:hover { background: var(--sand); border-color: var(--mocha); }
.cal-day.is-selected { background: var(--mocha); color: #fff; border-color: var(--mocha); }
.cal-day.is-selected .dot { background: #fff; }
.cal-day.is-today { font-weight: 700; box-shadow: inset 0 0 0 1px var(--line); }
.cal-day:disabled { color: var(--ink-faint); opacity: .45; cursor: not-allowed; }

.dot { width: 5px; height: 5px; border-radius: 50%; display: inline-block; }
.dot-free   { background: var(--ok); }
.dot-full   { background: var(--danger); }
.dot-closed { background: var(--ink-faint); }

.cal-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: .78rem;
  color: var(--ink-soft);
}
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }

/* Slots ------------------------------------------------------------------ */

.slots { padding: 18px; min-height: 220px; }
.slots h3 { font-size: 1.02rem; margin-bottom: 14px; }

.slot-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
}

.slot {
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--shell);
  cursor: pointer;
  font-size: .92rem;
  font-variant-numeric: tabular-nums;
  transition: border-color .12s, background .12s, transform .1s;
}
.slot:hover { border-color: var(--mocha); background: var(--sand); }
.slot.is-selected { background: var(--mocha); color: #fff; border-color: var(--mocha); }
.slot.is-full,
.slot.is-full:hover {
  cursor: not-allowed;
  background: transparent;
  border-color: var(--line);
  border-style: dashed;
  color: var(--ink-faint);
  text-decoration: line-through;
}

.slot-loading { color: var(--ink-faint); font-size: .9rem; }

/* Summary + form --------------------------------------------------------- */

.summary { padding: 16px 18px; margin-bottom: 20px; display: grid; gap: 8px; }
.summary-row { display: flex; justify-content: space-between; gap: 16px; font-size: .94rem; }
.summary-row span:first-child { color: var(--ink-soft); }
.summary-row strong { text-align: end; }

#booking-form { max-width: 620px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.btn-lg { padding: 13px 30px; font-size: 1rem; width: 100%; margin-top: 6px; }

/* Confirmation ----------------------------------------------------------- */

.done { padding: 36px 28px; text-align: center; max-width: 540px; margin: 0 auto; }

.done-icon {
  width: 58px; height: 58px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--ok-bg);
  color: var(--ok);
  display: grid; place-items: center;
  font-size: 1.8rem;
}
.done.is-warn .done-icon { background: var(--warn-bg); color: var(--warn); }

.done h2 { font-family: var(--serif); font-size: 1.8rem; }
.done > p { color: var(--ink-soft); }

.done-details {
  margin: 22px 0;
  display: grid;
  gap: 8px;
  text-align: start;
}
.done-details div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px dashed var(--line); padding-bottom: 7px; }
.done-details dt { color: var(--ink-soft); font-size: .9rem; }
.done-details dd { margin: 0; font-weight: 600; text-align: end; }

.ref-box {
  background: var(--sand);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ref-box span { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.ref-box strong { font-size: 1.35rem; letter-spacing: .1em; font-family: var(--serif); }

/* Modal ------------------------------------------------------------------ */

.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(46, 39, 35, .45); animation: fade-in .18s; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.modal-card {
  position: relative;
  width: min(460px, 100%);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  animation: fade-up .2s ease-out;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-card h2 { font-family: var(--serif); font-size: 1.5rem; }

.modal-x {
  position: absolute;
  top: 10px; inset-inline-end: 12px;
  border: none; background: none;
  font-size: 1.6rem; line-height: 1;
  color: var(--ink-faint);
  cursor: pointer;
}
.modal-x:hover { color: var(--ink); }

.lookup-card {
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--sand);
  display: grid;
  gap: 8px;
}
.lookup-card .row { display: flex; justify-content: space-between; gap: 12px; font-size: .93rem; }
.lookup-card .row span:first-child { color: var(--ink-soft); }

/* Footer ----------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--ink-faint);
  font-size: .88rem;
}
.site-footer a { color: var(--ink-faint); text-decoration: none; }
.site-footer a:hover { color: var(--mocha-dark); text-decoration: underline; }
#footer-contact { display: flex; gap: 16px; flex-wrap: wrap; }

.empty { color: var(--ink-faint); font-size: .93rem; padding: 12px 0; }

/* RTL -------------------------------------------------------------------- */

html[dir="rtl"] .cal-nav { transform: scaleX(-1); }
html[dir="rtl"] .ref-box strong { letter-spacing: normal; }

/* Touch sizing — see the note in base.css. */
@media (pointer: coarse) {
  .cal-nav { width: 44px; height: 44px; font-size: 1.35rem; }
  .slot { min-height: 46px; }
  .cal-weekdays { font-size: .78rem; }
  .cal-legend { font-size: .82rem; }

  /* A bare footer link is a 22px-tall target; padding gives the thumb room. */
  .site-footer a { display: inline-block; padding: 12px 2px; }
  .step { padding: 9px 13px; }
}

/* Reclaim width on small screens so the seven day-cells land near 44px. */
@media (max-width: 430px) {
  .calendar { padding: 12px; }
  .cal-weekdays, .cal-grid { gap: 3px; }
  .wrap { padding: 0 14px; }
}

/* ---------------------------------------------------------------- policy */
/* The privacy page: long-form reading rather than a booking flow, so it gets
   a narrower measure and more room between blocks than the rest of the site. */

.policy {
  max-width: 40rem;
  margin: 0 auto;
  padding: 40px 20px 72px;
}

.policy h1 {
  font-size: 2rem;
  margin: 0 0 8px;
}

.policy .policy-lead {
  color: var(--ink-soft);
  margin: 0 0 32px;
}

.policy h2 {
  font-size: 1.1rem;
  margin: 32px 0 8px;
}

.policy p { margin: 0 0 12px; line-height: 1.7; }

.policy ul {
  margin: 0 0 12px;
  padding-inline-start: 20px;
  line-height: 1.7;
}

.policy li { margin-bottom: 6px; }

.policy-rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 56px 0;
}

.policy-back { margin: 0 0 24px; font-size: .92rem; }
.policy-back:last-child { margin: 40px 0 0; }

/* A quiet reassurance under the notes box, not a wall of legal text. */
.field-note {
  font-size: .84rem;
  color: var(--ink-soft);
  margin: 6px 0 0;
}
