/* ============================================================
   Book Pre-Order Page — Specific Styles
   ============================================================ */

/* Hero */
.book-hero {
  padding-top: calc(var(--nav-height) + var(--space-16));
  padding-bottom: var(--space-16);
  background: var(--color-bg);
}
.book-hero__inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--space-12);
  align-items: center;
}
.book-hero__cover {
  display: flex;
  justify-content: center;
}
.book-hero__cover img {
  width: 100%;
  max-width: 320px;
  height: auto;
  /* drop-shadow() only accepts a single shadow layer, unlike --shadow-xl
     (which is a comma-separated multi-layer value for box-shadow use) */
  filter: drop-shadow(0 20px 32px rgba(32,48,82,0.25));
}
.book-hero__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-teal-text);
  margin-bottom: var(--space-3);
}
.book-hero__content h1 {
  margin-bottom: var(--space-4);
}
.book-hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  max-width: 52ch;
  margin-bottom: var(--space-3);
}
.book-hero__author {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}
.book-hero__price-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}
.book-hero__price {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: var(--weight-bold);
  color: var(--color-navy);
}
.book-hero__price-note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.book-hero__guarantee-line {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-teal-text);
}

@media (max-width: 768px) {
  .book-hero { padding-top: calc(var(--nav-height) + var(--space-10)); padding-bottom: var(--space-10); }
  .book-hero__inner { grid-template-columns: 1fr; text-align: center; gap: var(--space-8); }
  .book-hero__cover img { max-width: 220px; }
  .book-hero__subtitle { margin-inline: auto; }
  .book-hero__price-row { justify-content: center; }
}

/* Blurb */
.book-blurb {
  max-width: 68ch;
}
.book-blurb__kicker {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-teal-text);
  margin-bottom: var(--space-3);
}
.book-blurb__hook {
  font-size: var(--text-2xl);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-6);
}
.book-blurb p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-charcoal);
  margin-bottom: var(--space-5);
}
.book-blurb__closer {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  margin-top: var(--space-8);
}

/* Guarantee callout */
.book-guarantee {
  max-width: 68ch;
  margin-inline: auto;
  text-align: center;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-teal);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
}
.book-guarantee h2 { margin-bottom: var(--space-5); }
.book-guarantee p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-charcoal);
  margin-bottom: var(--space-4);
}
.book-guarantee p:last-child { margin-bottom: 0; }

/* Order form */
.book-order__container {
  max-width: 640px;
}
.book-order__price-line {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-top: var(--space-2);
  margin-bottom: var(--space-8);
}
.book-order__price-line:has(+ .book-order__price-line) {
  margin-bottom: var(--space-1);
}
.book-order__subheading {
  font-size: var(--text-lg);
  margin-top: var(--space-6);
  margin-bottom: var(--space-4);
}
.book-order__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.book-order__row--address { grid-template-columns: 1.5fr 0.7fr 0.9fr; }
.book-order__narrow { max-width: 160px; }

@media (max-width: 640px) {
  .book-order__row,
  .book-order__row--address { grid-template-columns: 1fr; }
  .book-order__narrow { max-width: none; }
}

.book-order__discount-row {
  display: flex;
  gap: var(--space-3);
  align-items: stretch;
}
.book-order__discount-row .form-input { flex: 1; }
.book-order__discount-row .btn { flex-shrink: 0; white-space: nowrap; }

.book-order__discount-feedback {
  font-size: var(--text-sm);
  margin-top: var(--space-2);
  min-height: 1.2em;
}
.book-order__discount-feedback.is-success { color: var(--color-teal-text); font-weight: var(--weight-bold); }
.book-order__discount-feedback.is-error { color: #c0392b; }
.book-order__discount-feedback.is-pending { color: var(--color-text-muted); }

.book-order__donation-note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-top: var(--space-2);
  margin-bottom: var(--space-6);
}

.book-order__summary {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
  margin-top: var(--space-2);
  margin-bottom: var(--space-6);
}
.book-order__summary-row {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-block: var(--space-1);
}
.book-order__summary-total {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--color-navy);
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-2);
  padding-top: var(--space-3);
}
.book-order__summary-note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
}

.book-order__guarantee-recap {
  background: var(--color-bg);
  border-left: 3px solid var(--color-teal);
  border-radius: var(--radius-sm);
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-charcoal);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

.book-order__consent-box {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-charcoal);
  line-height: var(--leading-relaxed);
  margin-top: var(--space-6);
  margin-bottom: var(--space-4);
}
.book-order__consent-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-charcoal);
  margin-bottom: var(--space-6);
}
.book-order__consent-check input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--color-teal);
  cursor: pointer;
}
.book-order__consent-check label { cursor: pointer; }

#payment-element {
  margin-bottom: var(--space-6);
}

.book-order__back-link {
  display: block;
  margin: var(--space-4) auto 0;
  background: none;
  border: none;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  cursor: pointer;
  text-decoration: underline;
}
.book-order__back-link:hover { color: var(--color-navy); }

#continue-btn, #submit-btn { width: 100%; justify-content: center; margin-top: var(--space-2); }
