/**
 * Public booking form (Anna-ready). Accent via --book-accent.
 */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

:root {
  --book-accent: #e91e8c;
  --book-fg: #222;
  --book-muted: #666;
  --book-bg: #fff;
  --book-line: #e6e6e6;
  --book-radius: 12px;
  --book-font: "Montserrat", system-ui, sans-serif;
}

html.night {
  --book-fg: #f2f2f2;
  --book-muted: #b0b0b0;
  --book-bg: #141414;
  --book-line: #333;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--book-font);
  font-size: 15px;
  color: var(--book-fg);
  background: transparent;
}

html.embed body { background: transparent; }

.book-wrap {
  max-width: 420px;
  margin: 0 auto;
  padding: 1rem 1rem 1.25rem;
  background: var(--book-bg);
  border: 1px solid var(--book-line);
  border-radius: var(--book-radius);
}

.book-head h1 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.book-sub {
  margin: 0 0 0.5rem;
  color: var(--book-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.book-direct {
  margin: 0 0 1rem;
  font-size: 0.9rem;
}

.book-direct-embed {
  margin: 0 0 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--book-line);
  color: var(--book-muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.book-direct a {
  color: var(--book-accent);
  font-weight: 600;
  text-decoration: underline;
}

.book-form label {
  display: block;
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.book-form .opt {
  font-weight: 400;
  color: var(--book-muted);
}

.book-form input[type="text"],
.book-form input[type="email"],
.book-form input[type="tel"],
.book-form input[type="date"],
.book-form select,
.book-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--book-line);
  border-radius: 8px;
  font: inherit;
  color: inherit;
  background: transparent;
}

.book-check {
  display: flex !important;
  align-items: center;
  gap: 0.45rem;
  font-weight: 500 !important;
}

.book-check input { width: auto; margin: 0; }

.book-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.book-arrow {
  display: inline-block;
  margin-left: 0.2rem;
}

/* Steps still to come, read as a continuation of the Next arrow (not buttons). */
.book-later {
  display: inline-flex;
  gap: 0.55rem;
  margin-left: 0.15rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--book-muted);
  opacity: 0.7;
  user-select: none;
}

.book-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  background: var(--book-accent);
  color: #fff;
}

.book-btn.ghost {
  background: transparent;
  color: var(--book-fg);
  border: 1px solid var(--book-line);
}

.book-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.book-err {
  color: #c00;
  font-size: 0.85rem;
  margin: 0.5rem 0;
}

.book-thanks h2 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.book-hp {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  opacity: 0;
  pointer-events: none;
}

/* Embedded on a performer's site: just the fields. Their page already has the heading and contact info. */
html.embed .book-wrap { border: 0; padding: 1.1rem 1.1rem 1.25rem; max-width: 460px; }
html.embed .book-thanks h2 { font-size: 1.05rem; }

/* Shared link (heyri.de/book/slug): the performer's own page, not a widget on a blank screen.
   Their accent tints the whole page; the card sits centered at any height. */
html.hr-book:not(.embed):not(.allsteps) body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px 28px;
  background: #f4f1ee;
  background: radial-gradient(900px 520px at 50% -8%, color-mix(in srgb, var(--book-accent) 26%, transparent), transparent 62%),
    color-mix(in srgb, var(--book-accent) 9%, #fbfaf8);
}
html.hr-book.night:not(.embed):not(.allsteps) body {
  background: #0d0d0d;
  background: radial-gradient(900px 520px at 50% -8%, color-mix(in srgb, var(--book-accent) 30%, transparent), transparent 62%),
    color-mix(in srgb, var(--book-accent) 12%, #0b0b0b);
}
html.hr-book:not(.embed):not(.allsteps) .book-wrap {
  width: 100%;
  max-width: 520px;
  padding: 1.6rem 1.5rem 1.5rem;
  border-radius: 18px;
}
html.hr-book:not(.embed):not(.allsteps) .book-head h1 { font-size: 1.65rem; letter-spacing: -0.01em; line-height: 1.15; }
html.hr-book:not(.embed):not(.allsteps) .book-sub { font-size: 0.95rem; }
.book-eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--book-accent);
}
.book-by { margin: 14px 0 0; font-size: 0.78rem; color: var(--book-muted); }
.book-by a { color: inherit; text-decoration: none; }
.book-by a:hover { text-decoration: underline; }
html.hr-book.night:not(.embed) .book-by { color: #9a9a9a; }
@media (max-width: 480px) {
  html.hr-book:not(.embed):not(.allsteps) body { padding: 14px 10px 20px; justify-content: flex-start; }
  html.hr-book:not(.embed):not(.allsteps) .book-wrap { padding: 1.25rem 1.1rem 1.25rem; }
}

/* Builder question types */
.book-form div.book-field { margin: 0 0 0.75rem; }
.book-form div.book-field > label:not(.book-check) { margin: 0 0 0.35rem; }
.book-form div.book-field > .book-check { margin: 0.35rem 0 0; }
.book-lbl { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 0.35rem; }
.book-help { display: block; margin-top: 0.3rem; font-size: 0.75rem; font-weight: 400; color: var(--book-muted); }
.book-form input[type="url"],
.book-form input[type="time"] {
  display: block; width: 100%; margin-top: 0.3rem; padding: 0.55rem 0.65rem;
  border: 1px solid var(--book-line); border-radius: 8px; font: inherit; color: inherit; background: transparent;
}
.book-date3 { display: grid; grid-template-columns: 1.4fr 0.8fr 1fr; gap: 0.4rem; }
.book-form .book-date3 select { margin-top: 0; }
.book-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.book-form .book-chip { position: relative; display: inline-block; margin: 0; font-weight: 500; cursor: pointer; }
.book-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.book-chip span {
  display: inline-block; padding: 0.4rem 0.8rem; border: 1px solid var(--book-line); border-radius: 999px;
  font-size: 0.85rem; line-height: 1.2;
}
.book-chip input:checked + span { background: var(--book-accent); border-color: var(--book-accent); color: #fff; }
.book-chip input:focus-visible + span { outline: 2px solid var(--book-accent); outline-offset: 2px; }
.book-checks { display: grid; gap: 0.35rem; }
.book-form .book-checks .book-check { margin: 0; }
.book-toggle-row { display: flex !important; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.book-toggle-row .book-lbl { margin: 0; }
.book-toggle-row .book-help { flex-basis: 100%; margin-top: 0; }
.book-form .book-switch { position: relative; display: inline-block; width: 44px; height: 26px; margin: 0; flex: none; cursor: pointer; }
.book-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.book-switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--book-line); transition: background .15s; pointer-events: none; }
.book-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.book-switch input:checked + span { background: var(--book-accent); }
.book-switch input:checked + span::after { transform: translateX(18px); }
.book-block { margin: 0 0 0.75rem; }
.book-block-title { margin: 0 0 0.2rem; font-weight: 700; }
.book-block-text { margin: 0; font-size: 0.85rem; color: var(--book-muted); }
.book-form input:disabled, .book-form select:disabled { opacity: 0.45; }

/* Settings preview: every step stacked */
html.allsteps .book-panel { display: block; padding-bottom: 0.25rem; }
html.allsteps .book-thanks { display: block; }
.book-stage-head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  margin: 1.1rem 0 0.6rem; padding-top: 0.75rem; border-top: 1px dashed var(--book-line);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--book-muted);
}
.book-form > .book-stage-head:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.book-stage-tools { display: inline-flex; gap: 0.35rem; }
.book-stage-tools button {
  appearance: none; border: 1px solid var(--book-line); background: transparent; color: var(--book-fg);
  border-radius: 999px; padding: 0.2rem 0.6rem; font: inherit; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0; text-transform: none; cursor: pointer;
}
.book-stage-tools button[data-stage-delete] { color: #c00; }
.book-empty { margin: 0 0 0.75rem; padding: 0.9rem; border: 1px dashed var(--book-line); border-radius: 8px; font-size: 0.8rem; color: var(--book-muted); text-align: center; }

/* Settings editor: each step is a framed card with a splashed-out rainbow pencil */
html.allsteps .book-wrap { padding-top: 1.4rem; overflow: visible; }
.book-stage { position: relative; margin: 0 0 1.5rem; padding: 0.95rem 0.95rem 0.6rem; border: 1px dashed var(--book-line); border-radius: 14px; }
.book-stage .book-stage-head { margin: 0 0 0.7rem; padding: 0; border: 0; justify-content: flex-start; }
.hr-editing-note { margin-left: auto; margin-right: 1.6rem; letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--book-fg); }
.hr-rainbow, .hr-splash, .hr-point {
  background: linear-gradient(135deg, #ff6b6b 0%, #ffa726 16.67%, #ffeb3b 33.33%, #66bb6a 50%, #42a5f5 66.67%, #ab47bc 83.33%, #e91e63 100%);
  background-size: 200% 200%;
  animation: hrRainbow 3s ease-in-out infinite;
}
@keyframes hrRainbow { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hr-splash {
  position: absolute; top: 0; right: 0; transform: translate(45%, -45%); z-index: 3;
  width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--book-bg);
  color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
  transition: transform 0.15s ease;
}
.hr-splash:hover { transform: translate(45%, -45%) scale(1.08); }
.book-stage.editing {
  border: 2px solid transparent;
  background: linear-gradient(var(--book-bg), var(--book-bg)) padding-box,
    linear-gradient(135deg, #ff6b6b, #ffa726, #ffeb3b, #66bb6a, #42a5f5, #ab47bc, #e91e63) border-box;
}
.hr-fwrap { position: relative; }
.hr-point { display: none; }
.book-stage.editing .book-panel { padding-right: 46px; }
.book-stage.editing .hr-fwrap { cursor: pointer; border-radius: 10px; }
.book-stage.editing .hr-fwrap > :not(.hr-point) { pointer-events: none; }
.book-stage.editing .hr-fwrap:hover { outline: 2px dashed var(--book-accent); outline-offset: 4px; }
/* Pointy circle: a rounded drop whose tip points left at its question */
.book-stage.editing .hr-point {
  display: inline-flex; align-items: center; justify-content: center;
  position: absolute; right: -44px; top: 50%; margin-top: -15px;
  width: 30px; height: 30px; padding: 0; border: 0; cursor: pointer; color: #fff;
  border-radius: 0 50% 50% 50%; transform: rotate(-45deg);
  transition: transform 0.15s ease;
}
.book-stage.editing .hr-point > span { display: inline-flex; transform: rotate(45deg); }
.book-stage.editing .hr-fwrap:hover .hr-point { transform: rotate(-45deg) scale(1.1); }
.hr-editbar { display: none; }
.book-stage.editing .hr-editbar { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.2rem 0 0.85rem; }
.hr-editbar button {
  appearance: none; border: 1px solid var(--book-line); background: transparent; color: var(--book-fg);
  border-radius: 999px; padding: 0.4rem 0.8rem; font: inherit; font-size: 0.78rem; font-weight: 600; cursor: pointer;
}
.hr-editbar button.hr-add { border: 0; color: #fff; background: linear-gradient(135deg, #ff6b6b, #ffa726, #66bb6a, #42a5f5, #ab47bc, #e91e63); }
.hr-editbar button.danger { color: #c00; }
html.allsteps .book-thanks { padding: 0 0.95rem; }
/* Small round buttons: the whole rainbow as a wheel, so every color shows */
.hr-splash, .book-stage.editing .hr-point {
  background: conic-gradient(from 210deg, #ff6b6b, #ffa726, #ffeb3b, #66bb6a, #42a5f5, #ab47bc, #e91e63, #ff6b6b);
  animation: none;
  color: #141414;
}

/* Settings editor: every step is its own card on the page, pencils splash off the corners */
html.allsteps body { background: transparent; }
html.allsteps .book-wrap { background: transparent; border: 0; border-radius: 0; max-width: 480px; padding: 22px 24px 6px 6px; overflow: visible; }
.book-stage {
  margin: 0 0 22px; padding: 1.05rem 1.05rem 0.7rem;
  background: var(--book-bg); border: 1px solid var(--book-line); border-radius: 16px;
}
html.light .book-stage { border-color: #e2e1dd; }
.book-stage.editing {
  background: linear-gradient(var(--book-bg), var(--book-bg)) padding-box,
    linear-gradient(135deg, #ff6b6b, #ffa726, #ffeb3b, #66bb6a, #42a5f5, #ab47bc, #e91e63) border-box;
}
.hr-splash { width: 40px; height: 40px; transform: translate(50%, -50%); border-width: 3px; }
.hr-splash:hover { transform: translate(50%, -50%) scale(1.08); }
.hr-splash svg { width: 17px; height: 17px; }
.book-stage-after .book-thanks { padding: 0; }
.book-stage-after .book-thanks h2 { margin-top: 0; }
html.allsteps .hr-splash { border-color: #f6f6f4; }
html.allsteps .book-stage-after .book-thanks { padding: 0; }
