/* ============================================================
   Oxford Social — book.html page styles (loaded AFTER css/styles.css).
   Only page-specific layout lives here; globals stay global.
   Design v4: strict monochrome, dark by default. Uses the
   contextual -c tokens so everything reads correctly in both
   the dark default and any .theme-light moment.
   ============================================================ */

/* ----- Two-column layout: form left + info panel right ----- */
.book-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

/* Result banners sit above the form */
#bookResult .notice { margin-bottom: 1.6rem; }
#bookResult .notice:focus { outline: none; }

/* ----- Form column ----- */
.book-main .form { max-width: 640px; }

.field__optional {
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 400;
  opacity: 0.75;
}

/* Native date picker chrome matches the dark mono page */
.book-main input[type="date"] { color-scheme: dark; }

.form-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
  margin-top: 0.4rem;
}
.form-actions button.btn { font-family: "Inter", sans-serif; }
.form-actions button.btn:disabled {
  opacity: 0.6;
  cursor: wait;
}
.form-actions__note { font-size: 0.85rem; }

/* ----- Info panel — alternate dark band with hairline rows ----- */
.book-panel {
  background: var(--bg-alt-c);
  border: 1px solid var(--line-c);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 3vw, 2.4rem) clamp(1.5rem, 2.5vw, 2rem);
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}
.book-panel h2 { font-size: clamp(1.7rem, 3vw, 2.1rem); margin-bottom: 0.3rem; }
.book-panel h3 {
  font-size: 1.25rem;
  color: var(--ink-c);
  margin: 1.7rem 0 0.45rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-c);
}
.book-panel .info { margin: 1.3rem 0 0.2rem; }
.book-panel .info li span { min-width: 92px; }
.book-panel .info li:last-child { border-bottom: 0; }
.book-panel p { font-size: 0.95rem; }
.book-panel a { color: var(--accent-c); }
.book-panel a:hover { color: var(--ink-c); }

/* ----- Success panel (replaces the form) ----- */
#bookResult .book-success {
  background: var(--bg-alt-c);
  border: 1px solid var(--line-c);
  border-radius: var(--radius);
  padding: clamp(2rem, 4vw, 2.6rem) clamp(1.6rem, 3vw, 2.2rem);
}
.book-success .eyebrow { margin-bottom: 0.2rem; }
.book-success__ref {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.2rem, 7vw, 3.2rem);
  letter-spacing: 0.08em;
  line-height: 1.1;
  color: var(--ink-c); /* mono: the ref reads in warm white */
  margin: 0.2rem 0 1rem;
}
.book-success p { margin-bottom: 0.7rem; }
.book-success p:last-of-type { margin-bottom: 0; }
.book-success__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

/* ----- Responsive ----- */
@media (max-width: 880px) {
  .book-grid { grid-template-columns: 1fr; }
  .book-panel { position: static; top: auto; }
}

@media (max-width: 480px) {
  .form-actions button.btn { width: 100%; }
  .book-success__actions .btn {
    width: 100%;
    text-align: center;
  }
}
