:root {
  --cream: #F6F0E8;
  --taupe: #AD9380;
  --rose: #C98F84;
  --espresso: #30231F;
  --paper: #FFFFFF;
  --line: #E6DCD0;
  --muted: #6B5A52;
  --rose-wash: #F4E6E1;
  --danger: #A2463A;
  --serif: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --sans: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--espresso);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  padding: env(safe-area-inset-top, 0) 0 env(safe-area-inset-bottom, 0);
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }

.wrap { max-width: 560px; margin: 0 auto; padding: 0 18px 140px; }

/* Masthead: the business name set like the top of her price list */
.masthead { text-align: center; padding: 36px 0 22px; }
.masthead .name { font-family: var(--serif); font-size: 38px; letter-spacing: .06em; text-decoration: none; color: inherit; display: inline-block; }
.masthead a.name:hover { opacity: .8; }
.masthead .sub { color: var(--muted); font-size: 14px; margin-top: 2px; }

.progress { height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; margin: 4px 0 26px; }
.progress > div { height: 100%; background: var(--rose); transition: width .3s ease; }

.step-title { font-size: 28px; margin-bottom: 6px; }
.step-help { color: var(--muted); margin: 0 0 20px; font-size: 14px; }

/* White "sheet", like her printed menus */
.sheet { background: var(--paper); border-radius: 6px; padding: 22px 20px; margin-bottom: 16px; }
.sheet > h2 { font-size: 22px; padding-bottom: 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }

/* Price-list rows with dotted leaders */
.item {
  display: block; width: 100%; text-align: left; background: none; border: 0; padding: 12px 10px;
  margin: 0 -10px; width: calc(100% + 20px); border-radius: 4px; cursor: pointer;
}
.item + .item { border-top: 1px solid #F1EAE1; }
.item:hover { background: #FBF7F2; }
.item .row { display: flex; align-items: baseline; gap: 6px; }
.item .nm { font-weight: 500; }
.item .dots { flex: 1; border-bottom: 1.5px dotted var(--taupe); transform: translateY(-4px); min-width: 12px; }
.item .pr { font-weight: 500; white-space: nowrap; }
.item .meta { color: var(--muted); font-size: 13px; margin-top: 2px; display: flex; justify-content: space-between; gap: 12px; }
.item[aria-pressed="true"] { background: var(--rose-wash); box-shadow: inset 3px 0 0 var(--rose); }
.item[aria-pressed="true"] .nm::after { content: " ✓"; color: var(--rose); }
.item:disabled { opacity: .4; cursor: not-allowed; }

/* Selectable service rows */
.svc-row + .svc-row { border-top: 1px solid #F1EAE1; }
.svc-row .item + .item { border-top: 0; }
.svc-row.on { background: var(--rose-wash); margin: 0 -10px; padding: 0 10px 12px; border-radius: 4px; box-shadow: inset 3px 0 0 var(--rose); }
.svc-row.on .item { margin: 0; width: 100%; padding-left: 0; padding-right: 0; }
.svc-row.on .item, .svc-row.on .item:hover, .svc-row.on .item[aria-pressed="true"] { background: none; box-shadow: none; }
.item .was { text-decoration: line-through; color: var(--muted); font-weight: 400; margin-right: 6px; font-size: 13px; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.choice button { border: 1px solid var(--line); background: #fff; border-radius: 4px; padding: 8px 10px; text-align: left; cursor: pointer; font-size: 13px; line-height: 1.35; }
.choice button strong { display: block; font-size: 14px; }
.choice button[aria-pressed="true"] { border-color: var(--espresso); box-shadow: inset 0 0 0 1px var(--espresso); }
.choice-hint { font-size: 12px; color: var(--muted); margin: 6px 0 0; }

/* Form controls */
label.field { display: block; margin-bottom: 16px; }
label.field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=time], input[type=password], select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px; background: #fff; font-size: 16px;
}
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px var(--rose-wash); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 4px; padding: 14px 22px; cursor: pointer; font-weight: 500; font-size: 15px;
  background: var(--espresso); color: var(--cream);
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--espresso); border: 1px solid var(--taupe); }
.btn.small { padding: 8px 14px; font-size: 13px; }
.btn.danger { background: transparent; color: var(--danger); border: 1px solid #DDB5AE; }
.btn.block { width: 100%; }
a.btn { text-decoration: none; }
.linkish { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 14px; }

/* Sticky action bar */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; background: var(--paper); border-top: 1px solid var(--line);
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0));
}
.bar .inner { max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.bar .sum { flex: 1; font-size: 13px; color: var(--muted); line-height: 1.35; min-width: 0; }
.bar .sum strong { color: var(--espresso); font-size: 15px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Calendar */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head h2 { font-size: 22px; }
.cal-nav { display: flex; gap: 6px; }
.cal-nav button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.cal-nav button:disabled { opacity: .35; cursor: default; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal .dh { font-size: 12px; color: var(--muted); padding: 4px 0; }
.cal button {
  aspect-ratio: 1; border: 0; border-radius: 50%; background: none; cursor: pointer; font-size: 15px; max-width: 46px; margin: 0 auto; width: 100%;
}
.cal button.open { background: #FBF7F2; font-weight: 500; }
.cal button.open:hover { background: var(--rose-wash); }
.cal button:disabled { color: #C9BDB2; cursor: default; background: none; }
.cal button.sel { background: var(--espresso); color: var(--cream); }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 8px; }
.slots button { padding: 11px 4px; border: 1px solid var(--line); background: #fff; border-radius: 4px; cursor: pointer; font-size: 14px; }
.slots button:hover { border-color: var(--rose); }
.slots button.sel { background: var(--espresso); color: var(--cream); border-color: var(--espresso); }

.notice { background: var(--rose-wash); border-radius: 4px; padding: 12px 14px; font-size: 14px; margin: 0 0 16px; }
.error { color: var(--danger); font-size: 14px; margin: 10px 0 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* Consent forms */
.q { padding: 14px 0; border-top: 1px solid #F1EAE1; }
.q:first-of-type { border-top: 0; }
.q .ql { margin-bottom: 8px; font-size: 14px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.seg button { border: 0; background: #fff; padding: 8px 18px; cursor: pointer; font-size: 14px; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--espresso); color: var(--cream); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--rose-wash); border-color: var(--rose); }
.legal { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 14px 0; }
.sigpad { position: relative; border: 1px dashed var(--taupe); border-radius: 4px; background: #FDFBF8; height: 150px; touch-action: none; }
.sigpad canvas { width: 100%; height: 100%; display: block; }
.sigpad .hint { position: absolute; left: 14px; bottom: 10px; font-size: 12px; color: var(--taupe); pointer-events: none; }
.sigpad .clear { position: absolute; right: 8px; top: 8px; }
.detail { margin-top: 8px; }

.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-weight: 600; }
.center { text-align: center; }
.done-mark { font-family: var(--serif); font-size: 64px; color: var(--rose); line-height: 1; margin: 10px 0 6px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
