/* ==========================================================================
   THE UNITY CHURCH — COUNSELLING PAGE
   Page-specific section styles only. Loads after foundation.css.
   The booking wizard's class names/IDs (.option, .minister, .time-slot,
   .step-card, .overlay, .tour-tip, etc.) are unchanged from the original —
   the inline script at the bottom of counsellingpage.html depends on them.
   Only the visual language is replaced.
   ========================================================================== */

.wrap { max-width: 920px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2rem); }

/* -------------------------------------------------------------------------
   Booking wizard
   ------------------------------------------------------------------------- */
.booking { padding: var(--sp-section) 0; }
.booking-intro { text-align: center; max-width: 60ch; margin: 0 auto var(--sp-12); }
.booking-intro h2 { font-size: var(--text-2xl); font-weight: 600; letter-spacing: -0.015em; margin-bottom: var(--sp-3); }
.booking-intro p { color: var(--ink-soft); margin-bottom: var(--sp-4); }

.step-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  margin-bottom: var(--sp-6);
}
.step-card.hidden { display: none; }
.step-title {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: var(--text-lg);
  font-weight: 600;
  margin: 0 0 var(--sp-6);
}

.options { display: flex; gap: var(--sp-6); flex-wrap: wrap; justify-content: center; }
.option {
  flex: 1 1 200px;
  min-width: 160px;
  max-width: 270px;
  padding: var(--sp-6);
  border-radius: var(--r-md);
  border: 1.5px solid var(--line);
  background: #fff;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.option img { max-width: 80%; max-height: 80%; }
.option.selected { border-color: var(--wine); background: var(--cream); }
@media (hover: hover) and (pointer: fine) {
  .option:hover { transform: translateY(-4px); }
}

.minister-grid { display: flex; gap: var(--sp-4); flex-wrap: wrap; justify-content: center; }
.minister {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex: 1 1 220px;
  min-width: 200px;
  max-width: 280px;
  padding: var(--sp-4);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.minister.selected { border-color: var(--wine); background: var(--cream); }
.minister img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--line); }
.minister .info { flex: 1; text-align: left; }
.minister .info h3 { margin: 0; font-size: var(--text-sm); color: var(--ink); font-weight: 700; font-family: var(--font-body); }
.minister .info p { margin: 3px 0 0; font-size: var(--text-xs); color: var(--ink-soft); }

@media (max-width: 480px) {
  .minister { flex: 1 1 100%; }
}

.form-row { display: flex; gap: var(--sp-4); flex-wrap: wrap; justify-content: center; }
.form-row .field { width: 100%; max-width: 420px; }

.time-slots { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; margin-top: var(--sp-3); }
.time-slot {
  padding: 0.6rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  cursor: pointer;
  font-size: var(--text-sm);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.time-slot.selected { background: var(--wine); color: var(--cream); border-color: var(--wine); }

.controls { display: flex; gap: var(--sp-3); justify-content: center; margin-top: var(--sp-6); }
.error { color: var(--wine); font-size: var(--text-xs); margin-top: var(--sp-2); text-align: center; }

/* -------------------------------------------------------------------------
   Confirmation overlay
   ------------------------------------------------------------------------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 10, 9, 0.6);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  padding: var(--sp-6);
}
.overlay.show { display: flex; }
.confirm-card {
  background: var(--cream);
  padding: var(--sp-8);
  border-radius: var(--r-lg);
  max-width: 420px;
  width: 100%;
  text-align: left;
}
.confirm-card h3 { font-size: var(--text-lg); margin-bottom: var(--sp-4); }
.confirm-card p { margin-bottom: var(--sp-2); font-size: var(--text-sm); color: var(--ink-soft); }
.confirm-card p strong { color: var(--ink); }

/* -------------------------------------------------------------------------
   Flyer
   ------------------------------------------------------------------------- */
.flyer-section { padding: 0 clamp(1.25rem, 4vw, 2rem) var(--sp-section); display: flex; justify-content: center; }
.flyer-card { max-width: 560px; width: 100%; }
.flyer-card img { width: 100%; height: auto; border-radius: var(--r-lg); display: block; }

/* -------------------------------------------------------------------------
   Live counselling (quick-contact)
   ------------------------------------------------------------------------- */
.live-counseling { background: var(--ink); padding: var(--sp-section) 0; }
.live-counseling .wrap { text-align: center; }
.live-counseling h2 { color: var(--cream); font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 600; margin-bottom: var(--sp-3); }
.live-subtext { color: rgba(250, 246, 238, 0.75); margin-bottom: var(--sp-8); max-width: 56ch; margin-left: auto; margin-right: auto; }

.live-form {
  max-width: 500px;
  margin: 0 auto;
  background: var(--cream);
  padding: var(--sp-8);
  border-radius: var(--r-lg);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.live-form button { width: 100%; margin-top: var(--sp-2); }
.success { color: #3f6b46; font-size: var(--text-sm); margin-top: var(--sp-4); text-align: center; }

/* -------------------------------------------------------------------------
   Guided tour tooltip
   ------------------------------------------------------------------------- */
.tour-tip {
  position: fixed;
  right: var(--sp-6);
  bottom: var(--sp-6);
  z-index: var(--z-toast);
  background: var(--cream);
  border: 1.5px solid var(--wine);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  box-shadow: 0 20px 45px rgba(11, 10, 9, 0.25);
  max-width: 280px;
  display: none;
}
.tour-tip.show { display: block; }
.tour-tip p { margin: 0 0 var(--sp-3); font-size: var(--text-sm); color: var(--ink); }
