:root {
  color-scheme: light;
  --paper: #f7f4ef;
  --card: #ffffff;
  --ink: #22201c;
  --ink-2: #5d5850;
  --ink-3: #8c867c;
  --line: #e4dfd6;
  --line-2: #efebe4;
  --accent: #b4533a;
  --accent-soft: #f6e7e1;
  --ok: #3f7a4a;
  --bad: #a83a2c;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button, input, textarea { font: inherit; color: inherit; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.hero { background: var(--ink); color: var(--paper); padding: 26px 0 22px; }
.brand { font: 600 15px/1 Georgia, "Times New Roman", serif; letter-spacing: .2em; color: #cfc8bb; }
.brand span { color: #e0a58f; }
.brand small { letter-spacing: .05em; font-size: 12px; margin-left: 4px; font-style: italic; }
.hero h1 { font: 500 30px/1.15 Georgia, "Times New Roman", serif; margin: 10px 0 0; }
.promo { display: inline-block; margin: 12px 0 0; padding: 4px 12px; border-radius: 999px; background: #e0a58f; color: var(--ink); font-size: 14px; font-weight: 600; }
.embedded .hero { display: none; }
main.wrap { padding-top: 18px; padding-bottom: 40px; }
.embedded main.wrap { padding-top: 4px; }
.loading, .empty { padding: 40px 0; text-align: center; color: var(--ink-3); }

.step { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 14px; overflow: hidden; }
.step > header { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.step > header .n { width: 28px; height: 28px; border-radius: 50%; background: var(--line-2); color: var(--ink-2); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.step.done > header .n { background: var(--ok); color: #fff; }
.step.open > header .n { background: var(--accent); color: #fff; }
.step > header h2 { font-size: 17px; margin: 0; flex: 1; }
.step > header .sum { color: var(--ink-2); font-size: 14px; text-align: right; }
.step > header .edit { border: 0; background: none; color: var(--accent); font-weight: 600; cursor: pointer; padding: 4px 6px; }
.step.locked { opacity: .55; }
.step .body { padding: 0 16px 16px; }

.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.opt { text-align: left; border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 10px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; min-height: 58px; }
.opt:hover { border-color: var(--ink-3); }
.opt.on { border-color: var(--accent); background: var(--accent-soft); }
.opt b { font-weight: 600; }
.opt span { font-size: 13px; color: var(--ink-2); }
.opt .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.hint { font-size: 13px; color: var(--ink-3); margin: 10px 0 0; }
.next { margin-top: 14px; display: flex; justify-content: flex-end; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 8px 22px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-weight: 600; text-decoration: none; }
a.btn { color: var(--ink); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:disabled { opacity: .45; cursor: default; }
.btn.wide { width: 100%; }

.month { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.month b { font-size: 16px; }
.month button { border: 1px solid var(--line); background: #fff; border-radius: 8px; width: 40px; height: 36px; cursor: pointer; font-size: 18px; }
.month button:disabled { opacity: .35; cursor: default; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal .dow { text-align: center; font-size: 12px; color: var(--ink-3); padding: 4px 0; }
.cal button { height: 46px; border: 0; border-radius: 10px; background: none; cursor: default; color: #c9c3b8; font-size: 15px; }
.cal button.avail { background: var(--accent-soft); color: var(--ink); cursor: pointer; font-weight: 600; }
.cal button.avail:hover { outline: 1.5px solid var(--accent); }
.cal button.sel { background: var(--accent); color: #fff; }
.cal button.today { text-decoration: underline; }
.times h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin: 16px 0 8px; }
.tgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.tgrid button { border: 1.5px solid var(--line); background: #fff; border-radius: 9px; min-height: 42px; cursor: pointer; font-variant-numeric: tabular-nums; }
.tgrid button:hover { border-color: var(--ink-3); }
.tgrid button.on { border-color: var(--accent); background: var(--accent); color: #fff; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fields .full { grid-column: 1 / -1; }
label.f { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
label.f input, label.f textarea { width: 100%; min-height: 46px; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-weight: 400; font-size: 16px; }
label.f textarea { min-height: 76px; resize: vertical; }
input:focus, textarea:focus, button:focus-visible { outline: 2px solid #e0a58f; outline-offset: 1px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.review { background: var(--paper); border-radius: 10px; padding: 12px 14px; margin: 14px 0; font-size: 15px; }
.review div { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
.review dt, .review span:first-child { color: var(--ink-3); }
.error { color: var(--bad); font-size: 14px; margin-top: 10px; }
.small { font-size: 13px; color: var(--ink-3); }

.success { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 28px 20px; text-align: center; }
.success .check { width: 56px; height: 56px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; margin: 0 auto 12px; font-size: 28px; }
.success h2 { font: 500 26px/1.2 Georgia, serif; margin: 0 0 6px; }
.success .review { text-align: left; max-width: 420px; margin: 16px auto; }
.success .row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.foot { color: var(--ink-3); font-size: 14px; padding-bottom: 30px; text-align: center; }
.foot a { color: inherit; }

@media (max-width: 520px) {
  .hero h1 { font-size: 25px; }
  .opts { grid-template-columns: 1fr; }
  .tgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fields { grid-template-columns: 1fr; }
  .step > header .sum { display: none; }
}

.notes { background: #fff8e6; border: 1px solid #f0dca8; border-radius: 12px; padding: 12px 14px; margin-top: 16px; font-size: 15px; }
.notes div { display: flex; gap: 10px; padding: 3px 0; }
.embedded .notes { margin-top: 4px; }
.notes + main.wrap, .wrap:has(.notes) + main.wrap { padding-top: 12px; }
.cats { display: flex; flex-direction: column; gap: 8px; }
.cat { border: 1.5px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.cat.open { border-color: var(--ink-3); }
.cat-btn { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 0; background: none; cursor: pointer; text-align: left; font-size: 17px; font-weight: 600; }
.cat-btn .ico { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); display: grid; place-items: center; font-size: 17px; flex: none; }
.cat-btn .sel { font-size: 12px; background: var(--accent); color: #fff; border-radius: 999px; padding: 2px 9px; font-weight: 700; }
.cat-btn .chev { margin-left: auto; color: var(--ink-3); font-size: 13px; }
.cat .items { padding: 0 12px 12px; }
.calbtns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; width: 100%; }
.calbtns .btn { min-height: 42px; padding: 6px 14px; font-size: 15px; }

/* v14: optional offers consent (never pre-ticked) */
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--accent); cursor: pointer; }
.consent b { color: var(--ink); font-weight: 600; }
.consent small { display: block; margin-top: 3px; font-size: 12px; color: var(--ink-3); }
