/* Book lịch — page-specific styles. Uses Edina Trâm design tokens. */

/* ── Hero (dark) ─────────────────────────────────── */
.book-hero {
  position: relative;
  overflow: hidden;
  color: var(--pearl-ivory);
  padding-top: clamp(130px, 16vw, 190px);
  padding-bottom: clamp(56px, 8vw, 104px);
}
.book-hero-in { position: relative; z-index: 2; max-width: 760px; }
.book-hero h1 {
  font-size: clamp(44px, 7vw, 82px);
  line-height: 1.04;
  margin-top: var(--space-5);
  color: var(--pearl-ivory);
}
.book-hero h1 em { color: var(--champagne-glow); }
.book-hero-lead {
  margin-top: var(--space-6);
  font-size: var(--text-lg);
  line-height: 1.65;
  color: rgba(251, 248, 240, 0.82);
  max-width: 58ch;
}
.book-hero-note {
  margin-top: var(--space-8);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  align-items: start;
  max-width: 56ch;
  padding: var(--space-5) var(--space-6);
  border: 1px solid rgba(200, 162, 68, 0.32);
  border-radius: var(--radius-lg);
  background: rgba(200, 162, 68, 0.07);
}
.book-hero-note .di {
  width: 8px; height: 8px; margin-top: 8px;
  background: var(--royal-gold); transform: rotate(45deg);
}
.book-hero-note p { color: rgba(251, 248, 240, 0.86); line-height: 1.6; }

/* ── Section + layout ────────────────────────────── */
.book-section { padding-block: clamp(56px, 8vw, 104px); background: var(--color-bg); }
.book-layout {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

/* ── Sidebar (service picker) ────────────────────── */
.book-sidebar { position: sticky; top: 100px; }
.book-sidebar h2 { font-size: clamp(28px, 3.4vw, 42px); margin-top: var(--space-3); line-height: 1.1; }
.book-sidebar-lead {
  margin-top: var(--space-4);
  color: var(--color-fg-muted);
  font-size: var(--text-base);
  line-height: 1.6;
  max-width: 42ch;
}
.book-services { margin-top: var(--space-8); display: flex; flex-direction: column; gap: var(--space-3); }
.book-service-option {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-5) var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.book-service-option:hover { border-color: var(--royal-gold); }
.book-service-option input { position: absolute; opacity: 0; pointer-events: none; }
.book-service-option.is-selected {
  border-color: var(--royal-gold);
  background: rgba(200, 162, 68, 0.06);
  box-shadow: var(--shadow-gold);
}
.bso-body { display: flex; flex-direction: column; gap: 4px; }
.bso-body strong { font-family: var(--font-heading); font-size: var(--text-xl); color: var(--color-primary); }
.bso-body span { font-size: var(--text-sm); color: var(--color-fg-muted); line-height: 1.5; }
.bso-dot {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--color-border);
  position: relative; flex-shrink: 0;
  transition: border-color 0.25s ease;
}
.book-service-option.is-selected .bso-dot { border-color: var(--royal-gold); }
.book-service-option.is-selected .bso-dot::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%;
  background: var(--royal-gold);
}

/* ── Form card ───────────────────────────────────── */
.book-form-card {
  padding: clamp(28px, 3.4vw, 48px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
}
.book-form-card h2 { font-size: clamp(26px, 3vw, 38px); margin-top: var(--space-3); line-height: 1.1; }
.book-form-intro { margin-top: var(--space-4); color: var(--color-fg-muted); line-height: 1.6; max-width: 52ch; }

.book-form { margin-top: var(--space-8); display: flex; flex-direction: column; gap: var(--space-6); }
.book-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.book-field { display: flex; flex-direction: column; gap: var(--space-2); }
.book-field label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-fg);
  line-height: 1.45;
}
.book-required { color: var(--royal-gold); }
.book-field input,
.book-field textarea,
.book-field select {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-fg);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.book-field textarea { resize: vertical; min-height: 84px; line-height: 1.55; }
.book-field input:focus,
.book-field textarea:focus,
.book-field select:focus {
  outline: none;
  border-color: var(--royal-gold);
  box-shadow: 0 0 0 3px rgba(200, 162, 68, 0.16);
}
.book-field input::placeholder { color: var(--color-fg-subtle, rgba(0,0,0,0.35)); }

/* ── Consent + submit ────────────────────────────── */
.book-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3);
  align-items: start;
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.book-consent.is-checked { border-color: var(--royal-gold); background: rgba(200, 162, 68, 0.05); }
.book-consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--royal-gold); }
.book-consent span { font-size: var(--text-sm); color: var(--color-fg-muted); line-height: 1.55; }

.book-submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.book-status { font-size: var(--text-sm); color: var(--color-fg-muted); }

/* ── Result callout ──────────────────────────────── */
.book-result {
  margin-top: var(--space-8);
  padding: var(--space-8) var(--space-6);
  border: 1px solid rgba(200, 162, 68, 0.35);
  border-radius: var(--radius-lg);
  background: rgba(200, 162, 68, 0.07);
  text-align: center;
}
.book-result .di {
  display: inline-block; width: 9px; height: 9px;
  background: var(--royal-gold); transform: rotate(45deg);
  margin-bottom: var(--space-4);
}
.book-result p {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.4vw, 28px);
  color: var(--color-primary);
  line-height: 1.3;
}
.book-result cite {
  display: block;
  margin-top: var(--space-3);
  font-style: normal;
  color: var(--color-fg-muted);
  font-size: var(--text-base);
  line-height: 1.6;
  max-width: 52ch;
  margin-inline: auto;
}
.book-result-actions {
  margin-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 1024px) {
  .book-layout { grid-template-columns: 1fr; }
  .book-sidebar { position: static; }
}
@media (max-width: 640px) {
  .book-form-row { grid-template-columns: 1fr; }
  .book-submit-row { flex-direction: column; align-items: stretch; }
  .book-status { text-align: center; }
}
