/**
 * Booking Step 2 - Service Selection Styles
 * Styles for the categorized service display:
 * A) AlwaysShown, B) SmartQuote Recommendations, C) Collapsed
 */

/* Container */
#step2-container {
  padding: 1rem 0;
}

/* Loading state */
#step2-container .loading {
  text-align: center;
  padding: 2rem;
  color: #666;
  font-size: 1rem;
}

#step2-container .loading i {
  margin-right: 0.5rem;
}

/* Error state */
#step2-container .error {
  text-align: center;
  padding: 2rem;
  color: #dc3545;
  background: #fff5f5;
  border-radius: 8px;
  margin: 1rem 0;
}

#step2-container .error i {
  margin-right: 0.5rem;
}

/* No services message */
.no-services-message {
  text-align: center;
  padding: 2rem;
  color: #666;
  font-style: italic;
}

/* Services Group */
.services-group {
  margin-bottom: 1.5rem;
}

.services-group-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e9ecef;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Badge styling */
.services-badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-smartquote {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.badge-default {
  background: #e9ecef;
  color: #495057;
}

/* Services List */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Service Row */
.service-row {
  display: flex;
  align-items: center;
  padding: 0.875rem 1rem;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.service-row:hover {
  border-color: #0066cc;
  box-shadow: 0 2px 8px rgba(0, 102, 204, 0.1);
}

.service-row:has(.service-checkbox:checked) {
  background: #f0f7ff;
  border-color: #0066cc;
}

/* Service Icon */
.service-icon {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: 8px;
  flex-shrink: 0;
}

/* Service Info */
.service-info {
  flex: 1;
  margin-left: 1rem;
  min-width: 0;
}

.service-name {
  display: block;
  font-weight: 500;
  color: #333;
  font-size: 0.95rem;
}

.service-description {
  display: block;
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.25rem;
  line-height: 1.4;
}

/* Service Price */
.service-price {
  font-weight: 600;
  color: #0066cc;
  font-size: 1rem;
  margin-left: 1rem;
  white-space: nowrap;
}

/* Service Action (Checkbox) */
.service-action {
  margin-left: 1rem;
}

.service-checkbox-label {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0;
}

.service-checkbox {
  width: 22px;
  height: 22px;
  cursor: pointer;
  accent-color: #0066cc;
}

/* Collapsed Group */
.services-collapsed {
  margin-bottom: 1.5rem;
}

.services-collapsed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed #dee2e6;
}

.services-collapsed-header .services-group-title {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.toggle-services-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.toggle-services-btn i {
  font-size: 0.75rem;
}

.services-collapsed-list {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e9ecef;
}

.services-collapsed.expanded .services-collapsed-header {
  border-bottom-style: solid;
}

/* Mobile Responsive */
@media (max-width: 576px) {
  .service-row {
    flex-wrap: wrap;
    padding: 0.75rem;
  }

  .service-icon {
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
  }

  .service-info {
    flex: 1 1 calc(100% - 60px);
    margin-left: 0.75rem;
  }

  .service-price {
    order: 4;
    margin: 0.5rem 0 0 0;
    width: 100%;
    text-align: left;
    padding-left: calc(36px + 0.75rem);
  }

  .service-action {
    order: 3;
    margin-left: auto;
  }

  .services-collapsed-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
