:root {
  --bg: #f5f3ef;
  --card: #ffffff;
  --ink: #2b2b2b;
  --muted: #6f6f6f;
  --line: #e4e0d8;
  --brand: #3d5a4c;
  --brand-ink: #ffffff;
  --brand-soft: #e6eee9;
  --brand-soft: color-mix(in srgb, var(--brand) 13%, white);
  --accent: #b9895b;
  --danger: #b33a3a;
  --warn-bg: #fff6e0;
  --radius: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); line-height: 1.45; }
a { color: var(--brand); }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.2; }
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
input[type=checkbox], input[type=radio] { width: auto; }
label { display: block; font-size: 14px; color: var(--muted); margin: 12px 0 4px; }
label.inline { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--brand); background: var(--brand); color: var(--brand-ink);
  padding: 10px 18px; border-radius: 8px; cursor: pointer; font-weight: 600; text-decoration: none;
}
.btn:disabled { opacity: .5; cursor: default; }
.btn.secondary { background: #fff; color: var(--brand); }
.btn.danger { background: #fff; color: var(--danger); border-color: var(--danger); }
.btn.small { padding: 5px 10px; font-size: 13px; font-weight: 500; }
.btn.link { background: none; border: none; color: var(--brand); padding: 4px; font-weight: 500; }
.card { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.muted { color: var(--muted); }
.error { color: var(--danger); margin: 10px 0; }
.notice { background: var(--warn-bg); border-radius: 8px; padding: 10px 14px; margin: 10px 0; }
.success { background: var(--brand-soft); border-radius: 8px; padding: 10px 14px; margin: 10px 0; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1 1 160px; }
.hidden { display: none !important; }

/* ---------- booking page ---------- */
.booking { max-width: 760px; margin: 0 auto; padding: 24px 16px 60px; }
/* Inside a website (iframe): the site provides the header and background. */
body.embedded { background: transparent; }
body.embedded .booking { padding: 4px 4px 16px; max-width: none; }
body.embedded .booking > header { display: none; }
body.embedded .card { box-shadow: 0 0 0 1px var(--line); }
.booking header { text-align: center; margin-bottom: 24px; }
.booking header h1 { color: var(--brand); font-size: 30px; }
.steps { display: flex; gap: 8px; justify-content: center; margin-bottom: 20px; font-size: 14px; flex-wrap: wrap; }
.steps span { padding: 4px 12px; border-radius: 99px; background: #fff; color: var(--muted); }
.steps span.active { background: var(--brand); color: #fff; }
.services { display: grid; gap: 12px; }
.service {
  display: flex; justify-content: space-between; gap: 16px; align-items: center; text-align: left; width: 100%;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 16px 18px; cursor: pointer;
}
.service:hover, .service.selected { border-color: var(--brand); background: var(--brand-soft); }
.service .price { font-weight: 700; color: var(--brand); white-space: nowrap; }
.picker { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
@media (max-width: 640px) { .picker { grid-template-columns: 1fr; } }
.month-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.month { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.month .dow { font-size: 12px; color: var(--muted); padding: 4px 0; }
.month button {
  aspect-ratio: 1; border: none; border-radius: 8px; background: transparent; color: #bbb; cursor: default; min-width: 0;
}
.month button.open { background: var(--brand-soft); color: var(--brand); font-weight: 600; cursor: pointer; }
.month button.open:hover { background: #d3e2d9; }
.month button.selected { background: var(--brand); color: #fff; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; max-height: 360px; overflow: auto; }
.slots button { border: 1px solid var(--brand); color: var(--brand); background: #fff; border-radius: 8px; padding: 9px 4px; cursor: pointer; }
.slots button:hover, .slots button.selected { background: var(--brand); color: #fff; }
.summary { background: var(--brand-soft); border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; }
.actions { display: flex; gap: 10px; justify-content: space-between; margin-top: 20px; flex-wrap: wrap; }
footer.site { text-align: center; color: var(--muted); font-size: 14px; margin-top: 30px; }

.biz-logo { display: block; max-height: 80px; max-width: min(280px, 80%); margin: 0 auto 10px; }
