/* ============================================================
   APPOINTMENT PAGE
   (.page-hero is defined once, in style.css)
   ============================================================ */

.appointment-section {
  padding: var(--section-y) 0;
  background: var(--bg);
}

.appointment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.appointment-info {
  position: sticky;
  top: calc(var(--nav-clear) + 0.5rem);
}

.appointment-info h2 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  margin-bottom: 2rem;
}

/* ── Steps (a true sequence → numbered, joined by a ledger line) ── */
.appointment-steps {
  display: flex;
  flex-direction: column;
  margin-bottom: 2.25rem;
}

.appointment-step {
  position: relative;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding-bottom: 1.6rem;
}

.appointment-step:last-child { padding-bottom: 0; }

.appointment-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 44px;
  bottom: 4px;
  border-left: 2px dashed var(--gray-300);
}

.step-number {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-variant-numeric: lining-nums;
  font-size: 1.2rem;
  font-weight: 500;
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--gold);
}

.step-text h4 { margin-bottom: 0.2rem; font-size: 1.05rem; }
.step-text p  { font-size: 0.95rem; line-height: 1.6; }

/* ── Alternatives ───────────────────────────────────────────── */
.appointment-alt {
  padding: 1.4rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
}

.appointment-alt h4 { margin-bottom: 0.75rem; }
.appointment-alt p { color: var(--gray-700); line-height: 1.7; }

.appointment-alt a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(201, 164, 76, 0.8);
  text-underline-offset: 3px;
}

.appointment-alt a:hover { text-decoration-color: var(--gold-dark); }

/* ── Calendar ───────────────────────────────────────────────── */
.calendar-container {
  display: flex;
  flex-direction: column;
  min-height: 600px;
  padding: 0.9rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.calendar-container iframe { border-radius: var(--radius-lg); }

.calendar-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  padding: 2.5rem;
  text-align: center;
  background: var(--gray-50);
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-lg);
}

.calendar-placeholder h3 { margin-bottom: 0.5rem; }
.calendar-placeholder p  { margin-bottom: 0; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 992px) {
  .appointment-layout { grid-template-columns: minmax(0, 1fr); }
  .appointment-info { position: static; }
}

/* Google Calendar needs a tall frame on phones — behaviour kept as before */
@media (max-width: 768px) {
  .calendar-container {
    padding: 4px !important;
    min-height: 1350px !important;
  }

  .calendar-container iframe {
    width: 100% !important;
    height: 1350px !important;
    min-height: 1350px !important;
  }
}
