/* ========================================
   AGENDAMENTO MODERNO - WIZARD STYLES
   ======================================== */

.booking-wizard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Progress Stepper */
.wizard-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3rem;
  position: relative;
}

.wizard-progress::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gray-300);
  z-index: 0;
}

.wizard-progress-bar {
  position: absolute;
  top: 20px;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--secondary-light));
  transition: width 0.5s ease;
  z-index: 1;
}

.wizard-step {
  position: relative;
  z-index: 2;
  text-align: center;
  flex: 1;
}

.wizard-step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem;
  font-weight: bold;
  color: var(--gray-500);
  transition: all var(--transition-base);
}

.wizard-step.active .wizard-step-circle {
  border-color: var(--secondary);
  background: var(--secondary);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 0 0 4px rgba(230, 126, 34, 0.2);
}

.wizard-step.completed .wizard-step-circle {
  border-color: var(--success);
  background: var(--success);
  color: white;
}

.wizard-step-label {
  font-size: 0.875rem;
  color: var(--gray-500);
  font-weight: 600;
}

.wizard-step.active .wizard-step-label {
  color: var(--secondary);
}

/* Wizard Content */
.wizard-content {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 2rem;
  margin-bottom: 2rem;
}

.wizard-main {
  min-height: 500px;
}

.wizard-step-content {
  display: none;
  animation: fadeInUp 0.4s ease;
}

.wizard-step-content.active {
  display: block;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Service Cards Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  position: relative;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-base);
  border: 3px solid transparent;
  box-shadow: var(--shadow-md);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.service-card.selected {
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(230, 126, 34, 0.2);
}

.service-card-image {
  height: 180px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}

.service-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.3) 100%);
}

.service-card-body {
  padding: 1.5rem;
}

.service-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.service-card-price {
  font-size: 1.75rem;
  font-weight: bold;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.service-card-duration {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-500);
  font-size: 0.875rem;
}

.service-card-checkmark {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  background: var(--success);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  z-index: 10;
  animation: scaleIn 0.3s ease;
}

.service-card.selected .service-card-checkmark {
  display: flex;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

/* Professional Cards */
.professionals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.professional-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  border: 3px solid transparent;
  box-shadow: var(--shadow-md);
}

.professional-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.professional-card.selected {
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(230, 126, 34, 0.2);
}

.professional-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  font-weight: bold;
}

.professional-name {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.professional-rating {
  color: var(--warning);
  font-size: 0.875rem;
}

/* Time Slots Grid */
.time-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.75rem;
}

.time-slot {
  padding: 0.75rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--gray-300);
  background: white;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-weight: 600;
  color: var(--gray-700);
}

.time-slot:hover:not(.occupied):not(.selected) {
  border-color: var(--secondary);
  background: rgba(230, 126, 34, 0.1);
  transform: scale(1.05);
}

.time-slot.selected {
  border-color: var(--secondary);
  background: var(--secondary);
  color: white;
  animation: pulse 0.5s ease;
}

.time-slot.occupied {
  background: var(--gray-100);
  color: var(--gray-400);
  cursor: not-allowed;
  opacity: 0.6;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Summary Sidebar */
.booking-summary {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 2rem;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
}

.summary-header {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--gray-100);
}

.summary-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--gray-100);
  border-radius: var(--radius-md);
}

.summary-item-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--secondary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.summary-item-content {
  flex: 1;
}

.summary-item-label {
  font-size: 0.75rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.summary-item-value {
  font-weight: 600;
  color: var(--primary);
}

.summary-total {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--gray-100);
}

.summary-total-label {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 0.5rem;
}

.summary-total-value {
  font-size: 2rem;
  font-weight: bold;
  color: var(--secondary);
}

/* Wizard Actions */
.wizard-actions {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 2rem;
}

.wizard-btn {
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.wizard-btn-back {
  background: var(--gray-100);
  color: var(--gray-700);
}

.wizard-btn-back:hover {
  background: var(--gray-300);
}

.wizard-btn-next {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
  color: white;
  margin-left: auto;
}

.wizard-btn-next:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.wizard-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
  .wizard-content {
    grid-template-columns: 1fr;
  }
  
  .booking-summary {
    position: static;
    margin-top: 2rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .time-slots-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .wizard-progress {
    overflow-x: auto;
  }
  
  .wizard-step-label {
    font-size: 0.75rem;
  }
}
