/* استایل‌های پایه */
.cb-booking-form {
  font-family: 'Vazirmatn', sans-serif;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* مراحل پیشرفت */
.cb-progress-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.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-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: #3b82f6;
  transition: width 0.5s ease;
}

/* کارت‌ها */
.cb-specialty-card,
.cb-doctor-card,
.cb-day-card {
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.5rem;
  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 {
  background-color: #2563eb;
  color: white;
  border-color: #2563eb;
  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-success-message {
  text-align: center;
  padding: 2rem;
  background-color: white;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  display: none;
}

.cb-success-message.hidden {
  display: none;
}

.cb-success-icon {
  width: 4rem;
  height: 4rem;
  background-color: #d1fae5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: #10b981;
}

/* استایل‌های عمومی */
.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 {
  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 (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));
  }
}