:root {
  --accent: #b5835a;
  --accent-soft: color-mix(in srgb, var(--accent) 12%, white);
  --accent-ink: color-mix(in srgb, var(--accent) 75%, black);
  --bg: #f7f4ef;
  --card: #ffffff;
  --ink: #1f1b17;
  --muted: #6f665d;
  --line: #e8e1d7;
  --danger: #b4412f;
  --ok: #2f7a4f;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(31, 27, 23, .04), 0 12px 32px -12px rgba(31, 27, 23, .14);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 15px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
body.embed { background: transparent; }
a { color: var(--accent-ink); }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; font-weight: 600; letter-spacing: -.01em; margin: 0; }

/* Hero */
.hero {
  background:
    radial-gradient(120% 80% at 80% 0%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 60%),
    #1c1916;
  color: #fff;
  padding: 48px 16px 96px;
  text-align: center;
}
.hero-inner { max-width: 720px; margin: 0 auto; }
.logo { max-height: 72px; max-width: 200px; object-fit: contain; margin-bottom: 14px; }
.monogram {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center;
  font: 600 28px Fraunces, serif;
  background: var(--accent); color: #fff;
}
.hero h1 { font-size: clamp(30px, 6vw, 44px); }
.tagline { margin: 6px 0 18px; color: rgba(255, 255, 255, .72); font-size: 16px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; font-size: 14px; }
.hero-meta a { color: rgba(255, 255, 255, .85); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.hero-meta a:hover { color: #fff; }
.hero-meta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* Card */
.wrap { max-width: 760px; margin: -64px auto 40px; padding: 0 16px; }
body.embed .wrap { margin: 0 auto; padding: 8px; }
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  min-height: 320px;
}
@media (max-width: 560px) { .card { padding: 20px 16px; } }
.footnote { text-align: center; font-size: 14px; margin-top: 18px; }

.loading { display: flex; gap: 10px; align-items: center; justify-content: center; color: var(--muted); padding: 60px 0; }
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Stepper */
.steps { display: flex; gap: 6px; margin-bottom: 22px; }
.steps span { flex: 1; height: 4px; border-radius: 4px; background: var(--line); transition: background .3s; }
.steps span.on { background: var(--accent); }
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.step-head h2 { font-size: 24px; }
.step-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.back {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  display: grid; place-items: center;
}
.back:hover { border-color: var(--accent); }
.back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }

/* Summary chips */
.summary { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 18px; }
.chip {
  font-size: 13px; padding: 5px 11px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink);
}

/* Services */
.cat { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 18px 0 8px; }
.cat:first-child { margin-top: 0; }
.list { display: grid; gap: 10px; }
.option {
  width: 100%; text-align: left;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.option:hover { border-color: var(--accent); box-shadow: 0 6px 18px -10px color-mix(in srgb, var(--accent) 60%, transparent); }
.option:active { transform: scale(.995); }
.option .grow { flex: 1; min-width: 0; }
.option strong { display: block; font-weight: 600; }
.option small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.option .price { text-align: right; white-space: nowrap; font-weight: 600; }
.option .price small { font-weight: 400; }
.avatar {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; overflow: hidden;
  color: #fff; font-weight: 600; background: var(--accent);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.any { background: var(--accent-soft); color: var(--accent-ink); }
.avatar.any svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* Service photos */
.option.svc { padding: 10px 16px 10px 10px; }
.thumb {
  flex: none; width: 84px; height: 84px; border-radius: 10px; overflow: hidden;
  background: var(--accent-soft);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; transition: transform .35s ease; }
.option:hover .thumb img { transform: scale(1.06); }
.thumb.ph { display: grid; place-items: center; color: var(--accent-ink); }
.thumb.ph svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; opacity: .7; }
.hero-thumb { display: block; width: 100%; height: 190px; object-fit: cover; object-position: center 30%; border-radius: 12px; margin-bottom: 14px; }
@media (max-width: 560px) {
  .thumb { width: 68px; height: 68px; }
  .option.svc { gap: 12px; }
  .option.svc small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}

/* Days */
.days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.day {
  flex: none; width: 64px; padding: 10px 0; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  text-align: center; scroll-snap-align: start;
}
.day small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.day b { display: block; font-size: 20px; font-weight: 600; margin: 2px 0; }
.day:disabled { opacity: .38; cursor: not-allowed; }
.day:not(:disabled):hover { border-color: var(--accent); }
.day.sel { background: var(--ink); border-color: var(--ink); color: #fff; }
.day.sel small { color: rgba(255, 255, 255, .7); }
.month { font-weight: 600; margin: 4px 0 10px; text-transform: capitalize; }

.slot-group { margin-top: 18px; }
.slot-group h4 { margin: 0 0 8px; font-size: 13px; color: var(--muted); font-weight: 500; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.slot {
  padding: 10px 0; border-radius: 10px; font-weight: 500;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
}
.slot:hover { border-color: var(--accent); background: var(--accent-soft); }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }

/* Form */
.form { display: grid; gap: 14px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
label { display: block; font-size: 14px; font-weight: 500; }
label > input, label > textarea { display: block; margin-top: 6px; }
label small { font-weight: 400; color: var(--muted); }
input, textarea {
  font: inherit; color: var(--ink);
  padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; width: 100%;
}
input:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 40%, transparent); border-color: var(--accent); }
textarea { resize: vertical; min-height: 72px; }
.hp { position: absolute; left: -9999px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 12px; border: 0;
  background: var(--accent); color: #fff; font-weight: 600; text-decoration: none;
  transition: filter .15s;
}
.btn:hover { filter: brightness(1.07); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn.block { width: 100%; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.danger { background: #fff; color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 35%, white); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }

.error {
  background: color-mix(in srgb, var(--danger) 9%, white);
  color: var(--danger); padding: 11px 14px; border-radius: 10px; font-size: 14px;
}

/* Recap / success */
.recap { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.recap div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; font-size: 14px; }
.recap div + div { border-top: 1px solid var(--line); }
.recap span { color: var(--muted); }
.recap b { font-weight: 600; text-align: right; }

.success { text-align: center; }
.check {
  width: 64px; height: 64px; border-radius: 50%; margin: 6px auto 14px;
  display: grid; place-items: center; background: color-mix(in srgb, var(--ok) 12%, white); color: var(--ok);
}
.check svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.check.cancel { background: color-mix(in srgb, var(--danger) 10%, white); color: var(--danger); }
.success h2 { font-size: 26px; }
.success > p { color: var(--muted); margin: 6px 0 20px; }
.code {
  display: inline-block; font: 600 20px ui-monospace, Menlo, monospace; letter-spacing: .18em;
  padding: 8px 16px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 18px;
}
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
@media (max-width: 560px) { .actions { grid-template-columns: 1fr; } }
.note { font-size: 13px; color: var(--muted); margin-top: 16px; }
.status { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.status.confirmed { background: color-mix(in srgb, var(--ok) 12%, white); color: var(--ok); }
.status.cancelled { background: color-mix(in srgb, var(--danger) 10%, white); color: var(--danger); }
.status.done, .status.no_show { background: #eee; color: #555; }

.fade { animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
