/* ============================================
   BOOK APPOINTMENT CSS
   ============================================ */

.appointment-section {
  padding: 60px 0 80px;
  background: var(--white);
}

.appointment-container {
  max-width: 760px;
  margin: 0 auto;
}

.appointment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.appt-header-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.appt-back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background: var(--navy);
  color: var(--white);
  border-radius: 30px;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.appt-back-btn:hover { background: var(--navy-light); }

.appt-header-title h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
}

.appt-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.appt-close-btn:hover { background: #c0392b; }

/* ─── Month / Date Pickers ───────────────────── */
.picker-section {
  margin-bottom: 28px;
}

.picker-label {
  text-align: center;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.picker-scroll-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.picker-track {
  display: flex;
  gap: 8px;
  overflow: hidden;
  flex: 1;
}

.picker-item {
  min-width: 68px;
  padding: 10px 0;
  text-align: center;
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  background: var(--white);
  user-select: none;
}

.picker-item:hover {
  border-color: var(--gold);
  color: var(--navy);
  background: rgba(255,215,0,.07);
}

.picker-item.selected {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.picker-item.today {
  border-color: var(--gold);
  color: var(--gold-dark);
}

.picker-item.disabled {
  opacity: .4;
  cursor: not-allowed;
}

.picker-item.date-item {
  min-width: 52px;
  padding: 10px 4px;
}

.picker-nav {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--light-gray);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  font-size: .9rem;
  color: var(--text-mid);
  transition: var(--transition);
}
.picker-nav:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ─── Time Slot Grid ─────────────────────────── */
.slot-section {
  margin-bottom: 28px;
}

.slot-label-btn {
  display: block;
  width: 100%;
  padding: 13px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy-dark);
  font-size: .95rem;
  font-weight: 700;
  text-align: center;
  border: none;
  cursor: pointer;
  margin-bottom: 16px;
  transition: var(--transition);
  letter-spacing: .02em;
}
.slot-label-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-gold); }

.slots-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.slot-btn {
  padding: 12px 8px;
  text-align: center;
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  transition: var(--transition);
  line-height: 1.3;
}

.slot-btn .slot-time {
  display: block;
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-dark);
}
.slot-btn .slot-period {
  display: block;
  font-size: .72rem;
  color: var(--text-light);
}

.slot-btn:hover {
  border-color: var(--gold);
  background: rgba(255,215,0,.08);
}

.slot-btn.selected {
  background: var(--navy);
  border-color: var(--navy);
}
.slot-btn.selected .slot-time,
.slot-btn.selected .slot-period {
  color: var(--white);
}

.slot-btn.booked {
  opacity: .4;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* ─── Form Fields ────────────────────────────── */
.appt-form-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.appt-form-fields .form-control {
  padding: 14px 18px;
  font-size: .95rem;
}

/* ─── Submit ─────────────────────────────────── */
.appt-submit-btn {
  display: block;
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy-dark);
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  letter-spacing: .02em;
}
.appt-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

/* ─── Summary Box ────────────────────────────── */
.appt-summary {
  background: var(--bg-cream);
  border: 1.5px solid rgba(255,215,0,.3);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 20px;
  display: none;
}
.appt-summary.visible { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.appt-summary-item { display: flex; flex-direction: column; gap: 2px; }
.appt-summary-item label { font-size: .72rem; font-weight: 600; color: var(--text-light); text-transform: uppercase; }
.appt-summary-item span { font-size: .9rem; font-weight: 700; color: var(--navy); }

/* ─── Steps Indicator ────────────────────────── */
.appt-steps {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 36px;
}
.appt-step {
  display: flex;
  align-items: center;
  gap: 0;
}
.appt-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--light-gray);
  color: var(--text-mid);
  font-size: .8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.appt-step.active .appt-step-dot { background: var(--navy); color: var(--white); }
.appt-step.done .appt-step-dot { background: #28a745; color: var(--white); }
.appt-step-label {
  font-size: .72rem;
  color: var(--text-light);
  margin-top: 4px;
  display: block;
  text-align: center;
  white-space: nowrap;
}
.appt-step.active .appt-step-label { color: var(--navy); font-weight: 600; }
.appt-step-inner { display: flex; flex-direction: column; align-items: center; }
.appt-step-line {
  width: 60px;
  height: 2px;
  background: var(--light-gray);
  margin: 0 4px;
  margin-bottom: 16px;
}
.appt-step.done + .appt-step .appt-step-line { background: #28a745; }

/* ─── Success Screen ─────────────────────────── */
.appt-success {
  text-align: center;
  padding: 60px 20px;
  display: none;
}
.appt-success.visible { display: block; }
.success-icon { font-size: 4rem; margin-bottom: 20px; }
.appt-success h3 { font-family: var(--font-display); font-size: 1.8rem; color: var(--navy); margin-bottom: 12px; }
.appt-success p { color: var(--text-mid); max-width: 420px; margin: 0 auto 24px; }

/* ─── Responsive ─────────────────────────────── */
@media (max-width: 768px) {
  .slots-grid { grid-template-columns: repeat(4, 1fr); }
  .appt-header-title h2 { font-size: 1.15rem; }
  .picker-item { min-width: 52px; font-size: .8rem; }
  .picker-item.date-item { min-width: 40px; }
}
@media (max-width: 480px) {
  .slots-grid { grid-template-columns: repeat(3, 1fr); }
  .picker-track { gap: 5px; }
  .picker-item { min-width: 44px; font-size: .76rem; padding: 8px 0; }
}
