.cb-booking-form {
  max-width: 1200px;
  margin: 0 auto;
}

/* مراحل پیشرفت */
.cb-progress-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.cb-progress-steps .step {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0.5rem;
    border-radius: 0.5rem;
    user-select: none;
}

.cb-progress-steps .step:hover {
    background-color: #f3f4f6;
}

.cb-progress-steps .step span {
    transition: color 0.2s ease;
}

.cb-progress-steps .step:hover span {
    color: #3b82f6;
}

.cb-step-indicator {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  background-color: #e5e7eb;
  color: #6b7280;
}

.cb-step-indicator.active {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
}

.cb-step-indicator.completed {
  background-color: #10b981;
  color: white;
}

.cb-progress-bar {
  flex-grow: 1;
  height: 0.25rem;
  background-color: #e5e7eb;
  margin: 0 1rem;
  position: relative;
}


/* کارت‌ها */
.cb-specialty-card,
.cb-doctor-card,
.cb-day-card {
  width: 100%;
  padding: 1.5rem;
  text-align: center;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
  cursor: pointer;
  background-color: white;
}

.cb-specialty-card:hover,
.cb-doctor-card:hover,
.cb-day-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.cb-specialty-card.selected,
.cb-doctor-card.selected,
.cb-day-card.selected {
  border-color: #3b82f6;
  background-color: #eff6ff;
}

/* اسلات‌های زمانی */
.cb-time-slot {
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  text-align: center;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  background-color: white;
}

.cb-time-slot.available {
  background-color: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

.cb-time-slot.available:hover {
  background-color: #bbf7d0;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cb-time-slot.booked {
  background-color: #fecaca;
  border-color: #fca5a5;
  color: #dc2626;
  cursor: not-allowed;
}

.cb-time-slot.selected {
  color: white;
  border-color: #2563eb;
  background-color: #2563eb !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3);
}

/* خلاصه رزرو */
.cb-booking-summary {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: #eff6ff;
  border-radius: 0.75rem;
  border: 1px solid #bfdbfe;
}


/* استایل‌های عمومی */
.cb-step-content {
  display: block;
}

.cb-step-content.hidden {
  display: none;
}

.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-cols-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.flex-1 {
  flex: 1 1 0%;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.ml-4 {
  margin-left: 1rem;
}

.mr-3 {
  margin-right: 0.75rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.text-center {
  text-align: center;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.font-medium {
  font-weight: 500;
}

.text-white {
  color: white;
}

.text-gray-600 {
  color: #4b5563;
}

.text-gray-800 {
  color: #1f2937;
}

.text-gray-900 {
  color: #111827;
}

.text-blue-600 {
  color: #2563eb;
}

.text-blue-800 {
  color: #1e40af;
}

.text-blue-900 {
  color: #1e3a8a;
}

.text-green-700 {
  color: #047857;
}

.text-green-800 {
  color: #065f46;
}

.text-red-600 {
  color: #dc2626;
}

.bg-white {
  background-color: white;
}

.bg-blue-50 {
  background-color: #eff6ff;
}

.bg-blue-100 {
  background-color: #dbeafe;
}

.bg-blue-600 {
  background-color: #2563eb;
}

.bg-green-100 {
  background-color: #d1fae5;
}

.bg-red-100 {
  background-color: #fee2e2;
}

.hover\:bg-blue-700:hover {
  color: white;
  background-color: #1d4ed8
}

.rounded-full {
  border-radius: 9999px;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.rounded-2xl {
  border-radius: 1rem;
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-xl {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.w-16 {
  width: 4rem;
}

.h-16 {
  height: 4rem;
}

.w-8 {
  width: 2rem;
}

.h-8 {
  height: 2rem;
}

.w-full {
  width: 100%;
}

/* استایل‌های سفارشی */
.cb-meta-field {
  margin-bottom: 1.5rem;
}

.cb-meta-field label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.cb-meta-field input[type="text"],
.cb-meta-field select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
}

.cb-meta-field select[multiple] {
  height: auto;
  min-height: 100px;
}

.overflow-x-auto {
  overflow-x: auto;
}

.pb-2 {
  padding-bottom: 0.5rem;
}

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-200 {
  transition-duration: 200ms;
}

.hidden {
  display: none;
}

.inline-flex {
  display: inline-flex;
}

.min-w-\[120px\] {
  min-width: 120px;
}

/* استایل‌های ریسپانسیو */


@media (max-width: 768px) {
    .cb-progress-steps .step {
        flex-direction: column;
        text-align: center;
    }
}


@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}


@media (min-width: 1024px) {
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lg\:grid-cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  
  .cb-progress-steps .step span {
      margin-right: 0.75rem;
  }
}


.cb-day-card.disabled {
  opacity: 0.5;
  pointer-events: none;
  background-color: #f3f4f6;
}

.cb-loading {
  width: 100%;
  text-align: center;
  padding: 1rem;
  color: #4b5563;
}

/* =================================================================
   استایل‌های Modal رزرو نوبت
   ================================================================= */

.cb-booking-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  display: none;
}

.cb-booking-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.cb-booking-modal-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

.cb-booking-modal-container {
  position: relative;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1;
  animation: cb-modal-fade-in 0.3s ease-out;
}

/* استایل زیبای Scrollbar برای Modal */
.cb-booking-modal-container::-webkit-scrollbar {
  width: 8px;
}

.cb-booking-modal-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.cb-booking-modal-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
  transition: background 0.2s;
}

.cb-booking-modal-container::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* برای Firefox */
.cb-booking-modal-container {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f1f1;
}

@keyframes cb-modal-fade-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.cb-booking-modal-body {
  padding: 0;
}

.cb-booking-modal-content {
  width: 100%;
}

.cb-booking-form-modal {
  width: 100%;
}

/* هدر Modal */
.cb-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 1rem 1rem 0 0;
}

.cb-modal-doctor-info {
  flex: 1;
}

.cb-modal-doctor-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: white;
}

.cb-modal-doctor-price {
  font-size: 1rem;
  margin: 0;
  opacity: 0.9;
  color: white;
}

.cb-modal-header .cb-modal-close {
  all: unset;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  transition: all 0.2s;
  margin-right: 1rem;
}

.cb-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.cb-modal-close svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: white;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Loading و Error */
.cb-modal-loading {
  padding: 3rem;
  text-align: center;
}

.cb-spinner {
  border: 4px solid #f3f4f6;
  border-top: 4px solid #3b82f6;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  animation: cb-spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes cb-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.cb-modal-error {
  padding: 2rem;
  text-align: center;
  color: #dc2626;
}

.cb-modal-error p {
  margin: 0;
  font-size: 1.1rem;
}

/* استایل‌های فرم در Modal */
.cb-booking-form-modal .cb-booking-form {
  max-width: 100%;
  margin: 0;
}

.cb-booking-form-modal .cb-progress-container {
  margin-bottom: 0;
  box-shadow: none;
}

/* ریسپانسیو Modal */
@media (max-width: 768px) {
  .cb-booking-modal-wrapper {
    padding: 0;
    align-items: center;
  }

  .cb-booking-modal-container {
    max-height: 95vh;
    border-radius: 1rem 1rem 0 0;
    max-width: 100%;
  }

  .cb-modal-header {
    padding: 1rem;
  }

  .cb-modal-doctor-name {
    font-size: 1.25rem;
  }
}

@media (max-width: 425px) {
  .cb-modal-doctor-name {
    font-size: 1.1rem;
  }

  .cb-modal-doctor-price {
    font-size: 0.9rem;
  }

  .cb-modal-close {
    width: 2rem;
    height: 2rem;
    margin-right: 0.5rem;
  }
}