/* ═══════════════════════════════════════════════════════
   KAELITH — book.css  (complements kaelith.css)
════════════════════════════════════════════════════════ */

/* ── PAGE HERO ── */
.page-hero {
  position: relative;
  background: var(--obsidian);
  padding: calc(var(--header-h) + 80px) 0 100px;
  overflow: hidden;
}
.page-hero__bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(196,162,101,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(196,162,101,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: .35;
}
.page-hero__glow { position: absolute; border-radius: 50%; pointer-events: none; }
.page-hero__glow--gold {
  width: 520px; height: 520px; top: -100px; right: -100px;
  background: radial-gradient(circle, rgba(196,162,101,.09) 0%, transparent 70%);
}
.page-hero__glow--teal {
  width: 400px; height: 400px; bottom: -80px; left: -80px;
  background: radial-gradient(circle, rgba(42,123,136,.1) 0%, transparent 70%);
}
.page-hero__inner { position: relative; z-index: 1; }
.page-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 300;
  color: var(--ivory);
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -.01em;
}
.page-hero__desc {
  font-size: 16px;
  font-weight: 300;
  color: var(--silver);
  line-height: 1.85;
  max-width: 520px;
}

/* ── BOOK SECTION ── */
.book-section { padding: 80px 0 120px; }

/* ── RESULT STATES ── */
.book-result {
  display: none;
  max-width: 560px;
  margin: 0 auto 60px;
  padding: 56px 40px;
  border-radius: 6px;
  text-align: center;
}
.book-result.show { display: block; }
.book-result--success {
  background: var(--white);
  border: 1px solid rgba(42,123,136,.2);
}
.book-result--error {
  background: var(--white);
  border: 1px solid rgba(196,92,101,.2);
}
.book-result__icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}
.book-result__icon--error { background: #C45C65; }
.book-result__title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--slate);
  margin-bottom: 12px;
}
.book-result__desc {
  font-size: 15px;
  font-weight: 300;
  color: var(--pewter);
  line-height: 1.8;
  margin-bottom: 24px;
}
.book-result__details {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold-dark);
  margin-bottom: 28px;
}

/* ── GRID LAYOUT ── */
.book-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

/* ── BOOK CARD ── */
.book-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius-card);
  padding: 40px;
  margin-bottom: 20px;
}
.book-card__step {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}
.book-step-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  color: rgba(196,162,101,.3);
  line-height: 1;
}
.book-step-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.book-card__desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--pewter);
  line-height: 1.7;
  margin-bottom: 28px;
}

/* ── TIER SELECTION ── */
.book-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.book-tier { cursor: pointer; position: relative; }
.book-tier input { position: absolute; opacity: 0; pointer-events: none; }
.book-tier__card {
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  border: 1.5px solid rgba(0,0,0,.08);
  border-radius: var(--radius-card);
  background: var(--pearl);
  transition: all .4s var(--ease-luxury);
  position: relative;
}
.book-tier__badge {
  position: absolute;
  top: -11px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--obsidian);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 100px;
  white-space: nowrap;
}
.book-tier__name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--slate);
  margin-bottom: 4px;
}
.book-tier__sub {
  font-size: 11.5px;
  font-weight: 300;
  color: var(--pewter);
}
.book-tier:hover .book-tier__card,
.book-tier.selected .book-tier__card {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 8px 32px rgba(196,162,101,.12);
}
.book-tier.selected .book-tier__name { color: var(--gold-dark); }

/* ── DISCIPLINE SELECTION ── */
.book-disciplines {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.book-discipline { cursor: pointer; position: relative; }
.book-discipline input { position: absolute; opacity: 0; pointer-events: none; }
.book-discipline__card {
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  border: 1.5px solid rgba(0,0,0,.07);
  border-radius: var(--radius-card);
  background: var(--pearl);
  transition: all .35s var(--ease-luxury);
  position: relative;
  overflow: hidden;
}
.book-discipline__card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease-luxury);
}
.book-discipline--teal       .book-discipline__card::before { background: var(--teal); }
.book-discipline--teal-light .book-discipline__card::before { background: var(--teal-light); }
.book-discipline--sage       .book-discipline__card::before { background: var(--sage); }
.book-discipline--blush      .book-discipline__card::before { background: var(--blush); }
.book-discipline--gold       .book-discipline__card::before { background: var(--gold); }
.book-discipline--amber      .book-discipline__card::before { background: var(--amber); }

.book-discipline:hover .book-discipline__card,
.book-discipline.selected .book-discipline__card {
  border-color: rgba(0,0,0,.05);
  background: var(--white);
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
}
.book-discipline:hover .book-discipline__card::before,
.book-discipline.selected .book-discipline__card::before { transform: scaleX(1); }

.book-discipline__index {
  font-size: 10px;
  color: rgba(107,123,141,.4);
  margin-bottom: 6px;
  letter-spacing: .1em;
}
.book-discipline__name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--slate);
  margin-bottom: 3px;
}
.book-discipline__short {
  font-size: 11px;
  font-weight: 300;
  color: var(--pewter);
}

/* ── FORM ELEMENTS ── */
.book-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.book-form-group { margin-bottom: 20px; }
.book-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 8px;
}
.book-required { color: var(--gold); }
.book-input, .book-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(0,0,0,.1);
  border-radius: var(--radius-card);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 300;
  color: var(--slate);
  background: var(--pearl);
  transition: border-color .3s, box-shadow .3s;
  outline: none;
}
.book-input:focus, .book-textarea:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(196,162,101,.1);
}
.book-input::placeholder, .book-textarea::placeholder { color: rgba(107,123,141,.5); }
.book-textarea { min-height: 100px; resize: vertical; }
.book-hint {
  font-size: 11.5px;
  color: var(--pewter);
  margin-top: 6px;
}

/* ── SLOTS ── */
.book-slots-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--pewter);
  padding: 16px 0;
}
.book-spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid rgba(196,162,101,.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: book-spin .8s linear infinite;
  flex-shrink: 0;
}
@keyframes book-spin { to { transform: rotate(360deg); } }

.book-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.book-slot {
  padding: 10px 8px;
  border: 1.5px solid rgba(0,0,0,.08);
  border-radius: var(--radius-card);
  background: var(--pearl);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--slate);
  cursor: pointer;
  text-align: center;
  transition: all .25s var(--ease-luxury);
}
.book-slot:hover { border-color: var(--gold); color: var(--gold-dark); background: var(--white); }
.book-slot.selected {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--obsidian);
  box-shadow: 0 4px 16px rgba(196,162,101,.25);
}
.book-slots-empty {
  font-size: 13.5px;
  font-weight: 300;
  color: var(--pewter);
  padding: 16px 0;
}

/* ── SUBMIT ── */
.book-submit {
  width: 100%;
  justify-content: center;
  gap: 10px;
}

/* ── SIDEBAR ── */
.book-sidebar__card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius-card);
  padding: 32px;
  margin-bottom: 16px;
}
.book-sidebar__card--dark {
  background: var(--navy);
  border-color: rgba(196,162,101,.1);
}
.book-sidebar__card--dark .eyebrow { color: rgba(196,162,101,.6); }
.book-sidebar__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--slate);
  margin-bottom: 12px;
  line-height: 1.2;
}
.book-sidebar__body {
  font-size: 14px;
  font-weight: 300;
  color: var(--pewter);
  line-height: 1.75;
  margin-bottom: 20px;
}
.book-sidebar__contact {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 400;
  color: var(--slate);
  margin-bottom: 12px;
  transition: color .3s;
}
.book-sidebar__contact svg { color: var(--gold); flex-shrink: 0; }
.book-sidebar__contact:hover { color: var(--gold); }
.book-sidebar__hours {
  font-size: 13.5px;
  font-weight: 300;
  color: var(--pewter);
  line-height: 1.9;
  margin: 0;
}
.book-sidebar__hours strong { color: var(--slate); font-weight: 500; }

/* ── EXPECT LIST ── */
.book-expect {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 8px;
}
.book-expect li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.book-expect__num {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 300;
  color: rgba(196,162,101,.4);
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.book-expect li strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ivory);
  margin-bottom: 4px;
}
.book-expect li p {
  font-size: 13px;
  font-weight: 300;
  color: var(--silver);
  line-height: 1.6;
  margin: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .book-grid { grid-template-columns: 1fr; }
  .book-sidebar { order: -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .book-sidebar__card { margin-bottom: 0; }
}
@media (max-width: 768px) {
  .book-sidebar { grid-template-columns: 1fr; }
  .book-tiers { grid-template-columns: 1fr; }
  .book-disciplines { grid-template-columns: 1fr; }
  .book-form-row { grid-template-columns: 1fr; }
  .book-card { padding: 28px 20px; }
}