/* 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;
}

/* ── Open-mode selectors inside the selection panel ────────────────────────── */
#selectors-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.selector-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.selector-section .djangoAppt_item-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0;
}

.selector-section .djangoAppt_item-name ion-icon {
  font-size: 1.1rem;
  color: var(--bs-darker, #54928f);
}

.booking-selector {
  width: 100%;
  padding: 12px 40px 12px 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  color: #212529;
  font-size: 1rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.booking-selector:focus {
  border-color: var(--bs-primary, #96c2b7);
  box-shadow: 0 0 0 0.2rem rgba(150, 194, 183, 0.25);
  outline: none;
}

.booking-selector:disabled {
  background-color: #f8f9fa;
  color: #6c757d;
  cursor: not-allowed;
}

/* ── Gentle attention animation for unselected selectors ───────────────────── */
@keyframes selector-dance {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 0 0 rgba(84, 146, 143, 0);
  }
  25% {
    transform: translateY(-4px);
    box-shadow: 0 6px 14px rgba(84, 146, 143, 0.18);
  }
  50% {
    transform: translateY(0);
    box-shadow: 0 0 0 rgba(84, 146, 143, 0);
  }
  75% {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(84, 146, 143, 0.12);
  }
}

.selector-dance {
  animation: selector-dance 0.7s ease-in-out;
}

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

  /* Unwrap the sidebar so its children (progress bar + summary) can be
     reordered independently on mobile. */
  .booking-sidebar-panel {
    display: contents;
  }

  /* Progress bar stays at the top on mobile */
  .booking-steps {
    order: 1;
  }

  /* Main content sits in the middle */
  .booking-main-panel {
    order: 2;
  }

  /* Appointment details drop to the bottom */
  .booking-sidebar-summary {
    order: 3;
    width: 100%;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 1rem;
    padding: 16px;
    margin-top: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  }

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

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

  #selectors-container {
    gap: 16px;
  }

  .booking-selector {
    padding: 10px 36px 10px 12px;
    font-size: 0.95rem;
  }
}

/* ── 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;
}

.guest-skip-link {
    font-size: 0.85rem;
}

/* ── booking_enter_email.html ────────────────────── */

.booking-step-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #6c757d;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 1rem;
  transition: color 0.2s;
}

.booking-step-back-link:hover {
  color: var(--bs-darker, #54928f);
}

.booking-email-step {
  max-width: 520px;
  margin: 0 auto;
  padding: 1rem 0.5rem;
  text-align: center;
}

.booking-email-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin-bottom: 1.25rem;
  color: var(--bs-darker, #54928f);
  background: var(--bs-primary-bg, #e8f1f1);
  border-radius: 50%;
}

.booking-email-step-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 1.25rem;
}

.booking-email-step-helper {
  font-size: 1rem;
  color: #6c757d;
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

.booking-email-step-form {
  text-align: left;
  margin-bottom: 0.5rem;
}

.booking-email-input-row {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
}

.booking-email-input-group {
  position: relative;
  flex: 1;
  min-width: 0;
}

.booking-email-input-icon {
  position: absolute;
  top: 50%;
  left: 0.75rem;
  transform: translateY(-50%);
  color: #adb5bd;
  pointer-events: none;
}

.booking-email-input-group .form-control {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.5rem;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem !important;
  background: #fff;
  font-size: 1rem;
  line-height: 1.5;
}

.booking-email-input-group .form-control:focus {
  border-color: var(--bs-primary, #96c2b7);
  box-shadow: 0 0 0 0.2rem rgba(150, 194, 183, 0.25);
  outline: none;
}

.booking-email-input-row .booking-email-primary {
  flex-shrink: 0;
  border-radius: 2rem !important;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.85rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.booking-email-input-row .booking-email-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(67, 175, 175, 0.3);
}

/* ── Social login group ──────────────────────────── */
.booking-email-social-group {
  margin-bottom: 1.5rem;
}

.booking-email-social-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.25rem 0;
  color: var(--text-muted, #6b7280);
  font-size: 0.875rem;
}

.booking-email-social-divider::before,
.booking-email-social-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.booking-email-social-divider span {
  padding: 0 0.75rem;
}

.booking-email-social-group .social-auth-section {
  margin-bottom: 0;
}

.booking-email-social-group .social-auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.booking-email-social-group .social-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--bs-primary, #96c2b7);
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
}

.booking-email-social-group .social-auth-btn:hover {
  border-color: transparent;
  background: transparent;
  color: var(--bs-darker, #54928f);
  transform: translateY(-1px);
}

/* ── Guest group ─────────────────────────────────── */
.booking-email-guest-group {
  padding-top: 0;
  border-top: none;
}

.booking-email-guest-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin-bottom: 1.25rem;
  color: var(--text-muted, #6b7280);
  font-size: 0.875rem;
}

.booking-email-guest-divider::before,
.booking-email-guest-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.booking-email-guest-divider span {
  padding: 0 0.75rem;
}

.booking-email-guest-btn {
  width: 100%;
  border-radius: 2rem !important;
  padding: 0.75rem 1.5rem !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
  min-width: 0 !important;
}

.booking-email-guest-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(67, 175, 175, 0.2);
}

.booking-email-guest-note {
  margin: 0.75rem auto 0;
  max-width: 32rem;
  color: var(--text-muted, #6b7280);
  font-size: 0.8rem;
  line-height: 1.4;
  text-align: center;
}

@media only screen and (max-width: 795px) {
  .booking-email-step {
    padding: 0.5rem 0;
  }
}

@media only screen and (max-width: 450px) {
  .booking-email-step-icon {
    width: 64px;
    height: 64px;
  }

  .booking-email-step-icon svg {
    width: 32px;
    height: 32px;
  }

  .booking-email-step-title {
    font-size: 1.3rem;
  }

  .booking-email-input-row {
    flex-direction: column;
  }

  .booking-email-input-row .booking-email-primary {
    width: 100%;
  }
}
