/* Professional Booking Form Styles - Corporate Clean Design */

.booking-professional-container {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.97);
  color: #1f2937;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
}

.booking-header {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: white;
  padding: 1.75rem 2.5rem 1.5rem;
  text-align: center;
}

.booking-header h2 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.booking-header p {
  opacity: 0.9;
  font-size: 0.95rem;
}

.booking-benefits {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.booking-benefits span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
}

.booking-benefits i {
  color: #34d399;
}

.progress-linear {
  background: rgba(255, 255, 255, 0.3);
  height: 4px;
  border-radius: 2px;
  margin: 1.25rem 0 0.9rem;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #34d399);
  transition: width 0.4s ease;
  width: 33%; /* Step 1 */
}

.step-indicator {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.step-chip {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.85;
  transition: all 0.3s ease;
}

.step-chip.active {
  background: #fff;
  color: #1d4ed8;
  opacity: 1;
  font-weight: 600;
}

.form-step {
  padding: 2rem;
  min-height: 300px;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.4s ease;
  display: none;
}

.form-step.active {
  opacity: 1;
  transform: translateX(0);
  display: block;
}

.step-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: #111827;
}

.service-grid-professional {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.service-card-professional {
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.25rem 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
  position: relative;
  overflow: hidden;
}

.service-card-professional:hover {
  border-color: #3b82f6;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
  transform: translateY(-4px);
}

.service-card-professional.selected {
  border-color: #10b981;
  background: linear-gradient(135deg, #f0fdf4, white);
}

.service-check {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #10b981;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s ease;
}

.service-card-professional.selected .service-check {
  opacity: 1;
  transform: scale(1);
}

.service-icon-professional {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.service-card-professional.selected .service-icon-professional {
  background: linear-gradient(135deg, #10b981, #059669);
}

.service-name {
  font-weight: 600;
  font-size: 1rem;
  color: #111827;
}

.service-desc {
  font-size: 0.78rem;
  color: #6b7280;
  margin-top: 0.3rem;
  line-height: 1.4;
}

.calendar-professional {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.calendar-nav {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #6b7280;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.calendar-nav:hover {
  background: #f3f4f6;
  color: #3b82f6;
}

.current-month {
  font-weight: 600;
  font-size: 1.1rem;
  color: #111827;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
}

.calendar-day-header {
  text-align: center;
  font-weight: 500;
  color: #6b7280;
  padding: 0.75rem 0;
  font-size: 0.875rem;
}

.calendar-day {
  aspect-ratio: 1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  border: 1px solid transparent;
}

.calendar-day:hover {
  background: #f3f4f6;
  transform: scale(1.05);
}

.calendar-day.available {
  background: #ecfdf5;
  color: #065f46;
  border-color: #10b981;
}

.calendar-day.available:hover {
  background: #d1fae5;
}

.calendar-day.selected {
  background: #10b981;
  color: white;
  font-weight: 600;
}

.calendar-day.past-date {
  background: #f3f4f6;
  color: #d1d5db;
  cursor: not-allowed;
}

.calendar-day.past-date:hover {
  background: #f3f4f6;
  transform: none;
}

.calendar-day.empty {
  cursor: default;
  color: #d1d5db;
}

.time-slots-professional {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.time-slot-professional {
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
  font-weight: 500;
}

.time-slot-professional:hover {
  border-color: #3b82f6;
  background: #eff6ff;
}

.time-slot-professional.selected {
  background: #3b82f6;
  color: white;
  border-color: #2563eb;
}

.time-slot-professional.disabled {
  background: #f3f4f6;
  color: #d1d5db;
  border-color: #e5e7eb;
  cursor: not-allowed;
  text-decoration: line-through;
}

.time-slot-professional.disabled:hover {
  background: #f3f4f6;
  border-color: #e5e7eb;
  color: #d1d5db;
}

.slot-hint {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0.5rem 0 0;
}

.booking-actions-professional {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 1.25rem;
}

.btn-professional {
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.btn-primary-professional {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
}

.btn-primary-professional:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.btn-secondary-professional {
  background: white;
  color: #374151;
  border: 1px solid #d1d5db;
}

.btn-secondary-professional:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.form-field-group {
  margin-bottom: 1.5rem;
}

.form-field-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #374151;
}

.form-field-group input,
.form-field-group textarea,
.form-field-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: white;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  font-size: 0.95rem;
}

.form-field-group input:focus,
.form-field-group textarea:focus,
.form-field-group select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-field-group.valid input,
.form-field-group.valid textarea {
  border-color: #10b981;
}

.booking-summary-professional {
  background: linear-gradient(135deg, #f8fafc, white);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.summary-item:last-child {
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: 0.75rem;
  border-top: 1px solid #e2e8f0;
  padding-top: 0.75rem;
}

.summary-total {
  color: #10b981;
}

.error-message {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.success-message {
  color: #10b981;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  z-index: 10;
}

.spinner-professional {
  width: 40px;
  height: 40px;
  border: 3px solid #e5e7eb;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  font-weight: 500;
  color: #374151;
}

/* Responsive Professional */
@media (max-width: 768px) {
  .booking-professional-container {
    margin: 1rem;
    border-radius: 12px;
  }
  
  .service-grid-professional {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .booking-header {
    padding: 2rem 1.5rem;
  }
  
  .booking-header h2 {
    font-size: 1.6rem;
  }
  
  .form-step {
    padding: 1.5rem;
  }
  
  .booking-actions-professional {
    flex-direction: column;
  }
  
  .time-slots-professional {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .calendar-grid {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .service-grid-professional {
    grid-template-columns: 1fr;
  }
  
  .time-slots-professional {
    grid-template-columns: 1fr;
  }
}

/* Print Styles */
@media print {
  .booking-professional-container {
    box-shadow: none;
    background: white !important;
  }
}

/* Booking Section wrapper */
.booking-section-professional {
  padding: 3rem 1.25rem;
}

/* Override legacy style.css booking rules (loaded after style.css) */
.calendar-day.selected {
  background: #10b981 !important;
  box-shadow: none !important;
  animation: none !important;
}

.time-slot-professional {
  position: relative;
}

.time-slot-professional:hover {
  transform: none;
  box-shadow: none;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}
