/* Mock booking popup, shared by the original Daydream and its variants. Uses the page's own palette and face:
   --ink, --sky, --cloud, and --accent/--deep/--display where the page has them. */
.book-row { display: flex; justify-content: center; margin-top: 2.5rem; }
.btn--book { font-size: 1.3rem; padding: 1rem 2.4rem; background: var(--ink); color: var(--cloud); border: 3px solid var(--ink);
  border-radius: 999px; box-shadow: 0 6px 0 color-mix(in srgb, var(--ink) 55%, black); text-decoration: none; font-weight: 800; }
.btn--book:hover { transform: translateY(3px); box-shadow: 0 3px 0 color-mix(in srgb, var(--ink) 55%, black); }

.book { width: 80vw; height: 80vh; max-width: 80vw; max-height: 80vh; padding: 0; border: 3px solid var(--ink); border-radius: 36px;
  background: var(--cloud); color: var(--deep, var(--ink)); box-shadow: 12px 14px 0 color-mix(in srgb, var(--ink) 25%, transparent); overflow: hidden; }
.book[open] { display: flex; flex-direction: column; animation: book-in .35s cubic-bezier(.2, .9, .3, 1.1); }
.book::backdrop { background: color-mix(in srgb, var(--ink) 45%, transparent); backdrop-filter: blur(3px); animation: fade-in .35s ease-out; }
@keyframes book-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }
@keyframes fade-in { from { opacity: 0; } }

.book-head { display: flex; align-items: center; gap: 1.25rem; padding: 1.25rem 2rem; background: var(--sky); border-bottom: 3px solid var(--ink); }
.book-head img { width: 96px; flex: none; }
.book-head h2 { font-family: var(--display, "Sniglet"), "Nunito", sans-serif; font-weight: 800; color: var(--ink); font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin: 0; }
.book-head p { margin-top: .25rem; max-width: 52ch; }
.book-x { margin-left: auto; align-self: flex-start; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 3px solid var(--ink); background: var(--cloud);
  color: var(--ink); font-size: 1.4rem; font-weight: 800; line-height: 1; cursor: pointer; flex: none; }

.book-body { flex: 1; overflow: auto; padding: 1.75rem 2rem 2rem; }
.book form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.5rem; max-width: 60rem; margin: 0 auto; }
.book label { display: grid; gap: .4rem; font-weight: 800; color: var(--ink); }
.book .wide { grid-column: 1 / -1; }
.book input, .book select, .book textarea { font: inherit; font-weight: 600; color: var(--deep, var(--ink)); background: color-mix(in srgb, var(--sky) 14%, white);
  border: 3px solid var(--ink); border-radius: 18px; padding: .75rem 1rem; min-height: 3.1rem; width: 100%; }
.book textarea { min-height: 5.5rem; resize: vertical; }
.book input:focus-visible, .book select:focus-visible, .book textarea:focus-visible { outline: 4px solid var(--sky); outline-offset: 2px; }
.book-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; margin-top: .75rem; }
.book-actions button, .book-done button { font-family: var(--display, "Sniglet"), "Nunito", sans-serif; font-weight: 800; font-size: 1.2rem; padding: .9rem 2rem;
  border-radius: 999px; border: 3px solid var(--ink); cursor: pointer; box-shadow: 0 5px 0 var(--ink); }
.book-actions button[type="submit"], .book-done button { background: var(--ink); color: var(--cloud); }
.book-actions button[data-close] { background: var(--cloud); color: var(--ink); }

.book-done { text-align: center; display: grid; justify-items: center; gap: 1rem; padding: 1rem 0 2rem; }
.book-done[hidden] { display: none; }
.book-done img { width: min(220px, 55%); animation: book-in .5s cubic-bezier(.3, 1.6, .5, 1); }
.book-done h3 { font-family: var(--display, "Sniglet"), "Nunito", sans-serif; font-weight: 800; color: var(--ink); font-size: clamp(1.8rem, 4vw, 2.8rem); }
.book-summary { display: grid; gap: .35rem; font-weight: 700; padding: 1rem 1.5rem; border: 3px dashed color-mix(in srgb, var(--ink) 45%, transparent); border-radius: 24px; }
.book-done p { max-width: 44ch; }

@media (max-width: 640px) {
  .book { width: 94vw; height: 90vh; max-width: 94vw; max-height: 90vh; border-radius: 28px; }
  .book form { grid-template-columns: 1fr; }
  /* Narrow screens: the header is just the title and the close button, one short row. */
  .book-head { padding: .6rem .75rem .6rem 1.1rem; align-items: center; gap: .75rem; }
  .book-head img, .book-head p { display: none; }
  .book-head h2 { font-size: 1.45rem; white-space: nowrap; }
  .book-x { align-self: center; width: 2.4rem; height: 2.4rem; font-size: 1.2rem; }
  .book-body { padding: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) { .book[open], .book::backdrop, .book-done img { animation: none; } }
.book form[hidden] { display: none; }
