/* schedule.css — Public booking page + cancel confirmation */

.schedule-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1rem;
  font-family: system-ui, -apple-system, sans-serif;
}

.schedule-page h1 {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
  color: #1a1a1a;
}

.schedule-page .subtitle {
  color: #666;
  margin-bottom: 2rem;
}

/* ── Appointment Type Cards ─────────────────────────── */

.type-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.type-card {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.25rem;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.type-card:hover {
  border-color: #2d5016;
}

.type-card.selected {
  border-color: #2d5016;
  box-shadow: 0 0 0 1px #2d5016;
  background: #f8fbf5;
}

.type-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}

.type-card .duration {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0.5rem;
}

.type-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #444;
}

/* ── Date Picker ────────────────────────────────────── */

.step-section {
  margin-bottom: 2rem;
}

.step-section h2 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: #333;
}

.date-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.5rem;
}

.date-btn {
  padding: 0.6rem 0.5rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  text-align: center;
  transition: all 0.15s;
}

.date-btn:hover { border-color: #2d5016; background: #f8fbf5; }

.date-btn.selected {
  background: #2d5016;
  color: #fff;
  border-color: #2d5016;
}

/* ── Time Slots ─────────────────────────────────────── */

.time-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.5rem;
}

.time-btn {
  padding: 0.6rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 0.95rem;
  text-align: center;
  transition: all 0.15s;
}

.time-btn:hover { border-color: #2d5016; background: #f8fbf5; }

.time-btn.selected {
  background: #2d5016;
  color: #fff;
  border-color: #2d5016;
}

.no-slots {
  color: #888;
  font-style: italic;
}

/* ── Booking Form ───────────────────────────────────── */

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.booking-form label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #333;
}

.booking-form input,
.booking-form textarea,
.booking-form select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  box-sizing: border-box;
}

.booking-form input:focus,
.booking-form textarea:focus {
  outline: none;
  border-color: #2d5016;
  box-shadow: 0 0 0 2px rgba(45, 80, 22, 0.15);
}

.booking-form textarea {
  resize: vertical;
  min-height: 80px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.btn-book {
  padding: 0.75rem 1.5rem;
  background: #2d5016;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-book:hover { background: #3d6b1e; }
.btn-book:disabled { background: #aaa; cursor: not-allowed; }

/* ── Confirmation ───────────────────────────────────── */

.confirmation {
  text-align: center;
  padding: 3rem 1rem;
}

.confirmation .check-icon {
  font-size: 3rem;
  color: #2d5016;
  margin-bottom: 1rem;
}

.confirmation h2 {
  color: #2d5016;
  margin-bottom: 0.5rem;
}

.confirmation .details {
  background: #f8fbf5;
  border-radius: 8px;
  padding: 1.25rem;
  margin: 1.5rem auto;
  max-width: 400px;
  text-align: left;
}

.confirmation .details p {
  margin: 0.3rem 0;
}

/* ── Cancel Page ────────────────────────────────────── */

.cancel-page {
  max-width: 480px;
  margin: 4rem auto;
  text-align: center;
  padding: 0 1rem;
}

.btn-cancel {
  padding: 0.6rem 1.5rem;
  background: #c0392b;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-cancel:hover { background: #a93226; }

/* ── Loading ────────────────────────────────────────── */

.loading {
  color: #888;
  font-style: italic;
}

/* ── Responsive ─────────────────────────────────────── */

@media (max-width: 480px) {
  .schedule-page { padding: 1rem 0.75rem; }
  .date-grid { grid-template-columns: repeat(3, 1fr); }
  .time-grid { grid-template-columns: repeat(2, 1fr); }
}
