/* Booking Flow — Shared two-panel layout & progress bar */

/* Container */
.booking-flow-container {
  margin: 10px auto;
  max-width: 1200px;
  padding: 20px;
}

.booking-flow-body {
  display: flex;
  flex-direction: row;
  margin-top: 10px;
  gap: 20px;
}

/* Main panel (left) */
.booking-main-panel {
  flex: 3;
  background-color: #fff;
  padding: 20px;
  border-radius: 1rem;
  border: 1px solid #e9ecef;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Compact variant for verification/email pages */
.booking-main-panel.compact {
  min-height: auto;
  align-self: flex-start;
}

/* Sidebar panel (right) */
.booking-sidebar-panel {
  flex: 1;
  padding: 20px;
}

/* ── Progress bar ────────────────────────────────── */
.booking-steps {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding: 0;
  list-style: none;
  gap: 4px;
}

.booking-step {
  flex: 1;
  height: 4px;
  background-color: #dee2e6;
  border-radius: 2px;
  transition: background-color 0.2s;
}

.booking-step.completed,
.booking-step.active {
  background-color: var(--bs-darker, #54928f);
}

.booking-step.active {
  opacity: 0.6;
}

/* ── Sidebar appointment details ─────────────────── */
.booking-sidebar-title {
  font-weight: 600;
  font-size: 1.1rem;
  color: #212529;
  margin-bottom: 10px;
}

.booking-sidebar-details {
  margin-top: 15px;
  color: #212529;
  font-size: 0.95rem;
  line-height: 1.8;
}

.booking-sidebar-details .detail-label {
  font-weight: 600;
  color: #6c757d;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 2px;
}

.booking-sidebar-details .detail-value {
  margin-bottom: 12px;
}

/* ── Service summary (open mode: duration + price below dropdowns) ─────────── */
.service-summary-divider {
  margin: 16px 0 0;
  border-color: #e9ecef;
}

.service-summary .booking-sidebar-details {
  margin-top: 12px;
}

/* ── Open-mode fixed (single-option) fields ────────────────────────────────── */
.open-mode-fixed-field .detail-label {
  font-weight: 600;
  color: #6c757d;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.open-mode-fixed-field .detail-value {
  font-size: 0.95rem;
  color: #212529;
  margin-bottom: 4px;
}

/* ── Responsive ──────────────────────────────────── */
@media only screen and (max-width: 795px) {
  .booking-flow-body {
    flex-direction: column;
  }

  /* Sidebar (selectors) moves above the calendar panel on mobile */
  .booking-sidebar-panel { order: 1; }
  .booking-main-panel    { order: 2; }

  .booking-main-panel,
  .booking-sidebar-panel {
    flex: none;
    width: 100%;
  }

  .booking-sidebar-panel {
    margin-top: 0;
  }
}

@media only screen and (max-width: 450px) {
  .booking-flow-container {
    padding: 8px;
    margin: 0;
  }
}

/* ── reschedule_confirm.html ─────────────────────── */

.reschedule-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

@media (max-width: 768px) {
    .reschedule-comparison {
        grid-template-columns: 1fr;
    }
}

.comparison-card {
    background: #ffffff;
}

.comparison-card.old-appointment .card-header {
    background: linear-gradient(135deg, #fff8e1 0%, #ffe69c 100%);
    color: #856404;
    font-weight: 600;
    padding: 12px 15px;
    border-radius: 4px 4px 0 0;
    border-bottom: 2px solid #ffc107;
}

.comparison-card.new-appointment .card-header {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    font-weight: 600;
    padding: 12px 15px;
    border-radius: 4px 4px 0 0;
    border-bottom: 2px solid #28a745;
}

.card-header ion-icon {
    vertical-align: middle;
    margin-right: 5px;
    font-size: 1.2rem;
}

.reason-box {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 15px;
    margin: 20px 0;
}

.reason-box strong {
    color: #856404;
    display: block;
    margin-bottom: 8px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-buttons .btn {
    min-width: 200px;
    padding: 0.65rem 1.5rem;
}

.action-buttons ion-icon {
    vertical-align: middle;
    margin-right: 5px;
    font-size: 1.2rem;
}

.info-notice {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 6px;
    padding: 12px 15px;
    margin: 20px 0;
    color: #0c5460;
    font-size: 0.9rem;
}

.info-notice ion-icon {
    vertical-align: middle;
    margin-right: 5px;
    font-size: 1.2rem;
}

.reschedule-intro {
    text-align: center;
    margin: 20px 0;
}

.reschedule-intro ion-icon {
    font-size: 3rem;
    color: var(--bs-darker);
    margin-bottom: 10px;
}

.reschedule-intro h3 {
    font-size: 1.3rem;
    color: #212529;
    margin-bottom: 10px;
    font-weight: 600;
}

.reschedule-intro p {
    color: #555;
    font-size: 1rem;
}

/* ── rescheduling_thank_you.html ─────────────────── */

.content-body-apd {
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 40vh;
}

.confirmation-message {
    max-width: 600px;
    text-align: center;
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .1);
}

.confirmation-message h1 {
    color: #333;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

.confirmation-message p {
    color: #555;
    font-size: 16px;
    line-height: 1.6;
}

.confirmation-message a {
    display: inline-block;
    margin-top: 25px;
    padding: 10px 25px;
    background-color: #007bff;
    color: #ffffff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
}

.confirmation-message a:hover {
    background-color: #0056b3;
}
