/* ===== Book page ===== */
.book-hero { padding: 3rem 1.25rem 1rem; }
.book-hero .eyebrow { font-weight: 600; color: var(--cyan); margin: 0 0 .5rem; }
.book-section { padding-top: 1.5rem; }

.demo-banner {
  background: rgba(255, 230, 0, .12);
  border: 2px dashed var(--yellow);
  color: var(--ink);
  border-radius: 12px;
  padding: .9rem 1.1rem;
  margin-bottom: 1.25rem;
  font-size: .95rem;
}

/* ===== Mock Square Appointments widget =====
   Square's booking flow uses its own neutral styling (light background, black
   buttons). It is mocked here the same way, so the demo shows what clients
   would really see. */
.sq-widget {
  --sq-ink: #1a1a1a;
  --sq-muted: #6b6b6b;
  --sq-line: #e3e3e3;
  --sq-soft: #f5f5f5;
  --sq-accent: #006aff;
  background: #fff;
  color: var(--sq-ink);
  border-radius: 14px;
  border: 4px solid #000;
  box-shadow: 0 0 0 3px var(--cyan), 0 0 40px rgba(25, 227, 255, .25);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow: hidden;
}
.sq-widget a { color: var(--sq-accent); }

.sq-steps {
  display: flex; gap: 0; border-bottom: 1px solid var(--sq-line); background: #fafafa;
  overflow-x: auto;
}
.sq-steps span {
  flex: 1; text-align: center; padding: .85rem .5rem; font-size: .85rem; font-weight: 600;
  color: var(--sq-muted); border-bottom: 3px solid transparent; white-space: nowrap;
}
.sq-steps span.active { color: var(--sq-ink); border-bottom-color: var(--sq-ink); }
.sq-steps span.done { color: var(--sq-ink); }

.sq-layout { display: grid; grid-template-columns: 1fr 300px; min-height: 460px; }
.sq-main { padding: 1.75rem; }
.sq-summary { border-left: 1px solid var(--sq-line); background: #fafafa; padding: 1.75rem 1.5rem; }
.sq-widget.no-summary .sq-layout { grid-template-columns: 1fr; }
.sq-widget.no-summary .sq-summary { display: none; }

.sq-h { font-size: 1.35rem; font-weight: 700; margin: 0 0 .25rem; }
.sq-sub { color: var(--sq-muted); margin: 0 0 1.25rem; font-size: .95rem; }
.sq-back {
  background: none; border: 0; padding: 0; margin: 0 0 1rem; color: var(--sq-ink);
  font: inherit; font-weight: 600; cursor: pointer; display: inline-flex; gap: .35rem; align-items: center;
}
.sq-back:hover { text-decoration: underline; }

/* Services */
.sq-service {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
  border: 1px solid var(--sq-line); border-radius: 10px; padding: 1.1rem 1.2rem; margin-bottom: .85rem;
  cursor: pointer; transition: border-color .15s, box-shadow .15s; background: #fff; width: 100%;
  text-align: left; font: inherit; color: inherit;
}
.sq-service:hover, .sq-service:focus-visible { border-color: var(--sq-ink); box-shadow: 0 2px 10px rgba(0,0,0,.08); outline: none; }
.sq-service h4 { margin: 0 0 .25rem; font-size: 1.05rem; }
.sq-service .meta { color: var(--sq-muted); font-size: .9rem; margin: 0 0 .5rem; }
.sq-service p.desc { margin: 0; font-size: .9rem; color: #3d3d3d; line-height: 1.5; }
.sq-service .price { font-weight: 700; white-space: nowrap; }

/* Calendar */
.sq-dt { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 1.75rem; }
.sq-cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; }
.sq-cal-head strong { font-size: 1rem; }
.sq-icon-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--sq-line); background: #fff;
  cursor: pointer; font-size: 1rem; color: var(--sq-ink);
}
.sq-icon-btn:disabled { opacity: .35; cursor: default; }
.sq-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.sq-cal .dow { font-size: .75rem; color: var(--sq-muted); font-weight: 600; padding: .25rem 0; }
.sq-cal button {
  aspect-ratio: 1; border-radius: 50%; border: 0; background: none; font: inherit; font-size: .9rem;
  color: #b5b5b5; cursor: default;
}
.sq-cal button.avail { color: var(--sq-ink); font-weight: 700; cursor: pointer; background: var(--sq-soft); }
.sq-cal button.avail:hover { background: #e8e8e8; }
.sq-cal button.sel { background: var(--sq-ink) !important; color: #fff; }
.sq-cal button.today { box-shadow: inset 0 0 0 1px var(--sq-muted); }
.sq-tz { font-size: .8rem; color: var(--sq-muted); margin-top: .75rem; }

.sq-slots h5 { margin: 0 0 .5rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--sq-muted); }
.sq-slot-group { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.1rem; }
.sq-slot {
  border: 1px solid var(--sq-line); background: #fff; border-radius: 8px; padding: .6rem .9rem;
  font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; color: var(--sq-ink); min-width: 92px;
}
.sq-slot:hover { border-color: var(--sq-ink); }
.sq-slot.sel { background: var(--sq-ink); color: #fff; border-color: var(--sq-ink); }
.sq-empty { color: var(--sq-muted); font-size: .95rem; padding: 1rem 0; }

/* Forms */
.sq-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.sq-field { display: flex; flex-direction: column; gap: .35rem; }
.sq-field.full { grid-column: 1 / -1; }
.sq-field label { font-size: .85rem; font-weight: 600; }
.sq-field label .opt { color: var(--sq-muted); font-weight: 400; }
.sq-field input, .sq-field textarea {
  border: 1px solid #cfcfcf; border-radius: 8px; padding: .75rem .85rem; font: inherit; font-size: .95rem;
  color: var(--sq-ink); background: #fff;
}
.sq-field input:focus, .sq-field textarea:focus { outline: 2px solid var(--sq-accent); outline-offset: -1px; border-color: transparent; }
.sq-field textarea { min-height: 96px; resize: vertical; }
.sq-field .err { color: #c4291c; font-size: .8rem; display: none; }
.sq-field.invalid input { border-color: #c4291c; }
.sq-field.invalid .err { display: block; }
.sq-hint { font-size: .8rem; color: var(--sq-muted); }

/* Payment placeholder */
.sq-card {
  border: 1px solid #cfcfcf; border-radius: 8px; padding: .85rem; display: grid;
  grid-template-columns: 1fr 90px 70px 90px; gap: .5rem; background: #fbfbfb;
}
.sq-card input { border: 0; background: transparent; font: inherit; font-size: .95rem; color: var(--sq-muted); min-width: 0; }
.sq-pay-box { border: 1px solid var(--sq-line); border-radius: 10px; padding: 1.1rem; margin: 1.25rem 0; }
.sq-pay-box h4 { margin: 0 0 .25rem; }
.sq-test-tag {
  display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  background: #fff4c2; color: #6a5400; border-radius: 4px; padding: .1rem .4rem; margin-left: .35rem; vertical-align: middle;
}
.sq-policy { display: flex; gap: .65rem; align-items: flex-start; font-size: .9rem; margin: 1rem 0 0; }
.sq-policy input { margin-top: .25rem; width: 18px; height: 18px; accent-color: var(--sq-ink); }
.sq-policy-text {
  max-height: 0; overflow: hidden; transition: max-height .25s; font-size: .85rem; color: #3d3d3d;
  background: var(--sq-soft); border-radius: 8px;
}
.sq-policy-text.open { max-height: 420px; overflow-y: auto; padding: .9rem 1rem; margin-top: .75rem; }
.sq-policy-text ul { padding-left: 1.1rem; margin: .4rem 0; }

/* Buttons */
.sq-actions { display: flex; justify-content: flex-end; gap: .75rem; margin-top: 1.5rem; }
.sq-btn {
  background: var(--sq-ink); color: #fff; border: 0; border-radius: 8px; padding: .85rem 1.5rem;
  font: inherit; font-weight: 600; cursor: pointer; min-width: 140px;
}
.sq-btn:hover { background: #333; }
.sq-btn:disabled { background: #bdbdbd; cursor: not-allowed; }
.sq-btn.ghost { background: #fff; color: var(--sq-ink); border: 1px solid var(--sq-line); }

/* Summary */
.sq-summary h4 { margin: 0 0 1rem; font-size: 1rem; }
.sq-sum-row { display: flex; justify-content: space-between; gap: .75rem; font-size: .9rem; margin-bottom: .55rem; }
.sq-sum-row span:first-child { color: var(--sq-muted); }
.sq-sum-row span:last-child { text-align: right; font-weight: 600; }
.sq-sum-sep { border: 0; border-top: 1px solid var(--sq-line); margin: 1rem 0; }
.sq-sum-empty { color: var(--sq-muted); font-size: .9rem; }
.sq-sum-biz { display: flex; gap: .75rem; align-items: center; margin-bottom: 1.25rem; }
.sq-sum-biz img { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; background: #111; padding: 3px; }
.sq-sum-biz div { font-size: .85rem; color: var(--sq-muted); line-height: 1.35; }
.sq-sum-biz strong { color: var(--sq-ink); display: block; font-size: .95rem; }

/* Confirmation */
.sq-done { text-align: center; max-width: 520px; margin: 1rem auto; }
.sq-check {
  width: 64px; height: 64px; border-radius: 50%; background: #0a8a3a; color: #fff; display: grid;
  place-items: center; font-size: 2rem; margin: 0 auto 1rem;
}
.sq-done .sq-card-sum { text-align: left; border: 1px solid var(--sq-line); border-radius: 10px; padding: 1.1rem 1.2rem; margin: 1.25rem 0; }
.sq-done .sq-actions { justify-content: center; flex-wrap: wrap; }

@media (max-width: 900px) {
  .sq-layout { grid-template-columns: 1fr; }
  .sq-summary { border-left: 0; border-top: 1px solid var(--sq-line); order: -1; padding: 1rem 1.25rem; }
  .sq-summary .sq-sum-biz { display: none; }
  .sq-dt { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .sq-main { padding: 1.25rem; }
  .sq-form { grid-template-columns: 1fr; }
  .sq-card { grid-template-columns: 1fr 1fr; }
  .sq-card input:first-child { grid-column: 1 / -1; }
  .sq-actions { flex-direction: column-reverse; }
  .sq-btn { width: 100%; }
}
.sq-widget { scroll-margin-top: 90px; }
