/* ==========================================================================
   JYGA ARCHITECTS — booking.css
   Styles specific to the Appointment Booking page. Loaded alongside the
   main css/style.css (which still provides the shared design tokens,
   header/nav, footer, .form-field inputs, .btn, .page-header, etc).
   ========================================================================== */

.booking-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 900px) {
  .booking-grid { grid-template-columns: 1fr; }
}

/* ---------- Form layout ---------- */
.booking-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.5rem;
}
@media (max-width: 600px) {
  .booking-form-grid { grid-template-columns: 1fr; }
}
.booking-form-grid .form-field--full { grid-column: 1 / -1; }

/* ---------- Time slot picker ---------- */
.time-slot-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-bottom: 0.8rem;
}
.time-slot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 560px) {
  .time-slot-grid { grid-template-columns: repeat(3, 1fr); }
}
.time-slot {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 0.7rem 0.5rem;
  font-size: 0.85rem;
  text-align: center;
  color: var(--ink);
  cursor: pointer;
  transition: all .25s var(--ease);
}
.time-slot:hover { border-color: var(--navy); }
.time-slot.is-selected {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.time-slot.is-unavailable {
  color: var(--graphite-light);
  background: var(--stone);
  text-decoration: line-through;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------- Appointment type pills (radio-style) ---------- */
.type-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.type-pill {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 0.65rem 1.1rem;
  font-size: 0.85rem;
  color: var(--ink);
  cursor: pointer;
  transition: all .25s var(--ease);
}
.type-pill:hover { border-color: var(--navy); }
.type-pill.is-selected {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

/* ---------- Sidebar: how it works ---------- */
.booking-steps {
  counter-reset: step;
  border-top: 1px solid var(--line);
}
.booking-step {
  display: flex;
  gap: 1.2rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}
.booking-step-num {
  counter-increment: step;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--navy);
  flex-shrink: 0;
  width: 2rem;
}
.booking-step-num::before { content: counter(step, decimal-leading-zero); }
.booking-step-title { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.3rem; }
.booking-step-desc { font-size: 0.88rem; color: var(--graphite); line-height: 1.5; }

.booking-alt {
  margin-top: 2.5rem;
  padding: 1.8rem;
  background: var(--stone);
}
.booking-alt p { margin-bottom: 1rem; }
.booking-alt a { color: var(--navy); font-weight: 600; }

/* ---------- Success state ---------- */
.booking-success {
  display: none;
  text-align: center;
  padding: 3rem 1.5rem;
  border: 1px solid var(--line);
}
.booking-success.is-visible { display: block; }
.booking-success svg {
  width: 44px; height: 44px;
  color: var(--navy);
  margin: 0 auto 1.2rem;
}
.booking-success h3 { margin-bottom: 0.6rem; }
.booking-success p { max-width: 40ch; margin: 0 auto; }
.booking-form.is-hidden { display: none; }
