/* Conecta Booking Widget Styles - Scoped under #conecta-booking-shell */

#conecta-booking-shell {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.5;
  color: #333;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Gold Header Bar */
#conecta-booking-header {
  background: linear-gradient(135deg, #9B6A00 0%, #B8860B 100%);
  padding: 32px 24px;
  border-radius: 16px;
  margin-bottom: 24px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(155, 106, 0, 0.15);
}

#conecta-booking-title {
  color: white;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#conecta-booking-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  margin: 0;
  font-weight: 400;
}

/* Main Booking Card */
#conecta-booking-card {
  background: white;
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

/* Section Title */
#conecta-service-title {
  font-size: 24px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 24px 0;
  text-align: center;
}

/* Search Container */
#conecta-search-container {
  margin-bottom: 32px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

#conecta-service-search {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

#conecta-service-search:focus {
  border-color: #9B6A00;
  box-shadow: 0 0 0 3px rgba(155, 106, 0, 0.1);
}

#conecta-service-search::placeholder {
  color: #9ca3af;
}

/* Services Grid */
#conecta-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

/* Individual Service Cards */
#conecta-services-grid > div {
  background: white;
  border: 2px solid #f3f4f6;
  border-radius: 14px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  text-decoration: none;
  display: block;
  color: inherit;
}

#conecta-services-grid > div:hover,
#conecta-services-grid > div:focus {
  border-color: #9B6A00;
  box-shadow: 0 8px 24px rgba(155, 106, 0, 0.15);
  transform: translateY(-2px);
}

#conecta-services-grid > div:active {
  transform: translateY(0);
}

/* Service Card Content */
.service-title {
  font-size: 18px;
  font-weight: 600;
  color: #9B6A00;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.service-description {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 20px 0;
  line-height: 1.5;
}

.service-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
}

.service-duration,
.service-price {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #374151;
  font-weight: 500;
}

/* Inline SVG Icons */
.service-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

/* Clock Icon */
.clock-icon path {
  fill: none;
  stroke: #6b7280;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Price Tag Icon */
.price-icon path {
  fill: #6b7280;
}

/* Responsive Design */
@media (max-width: 768px) {
  #conecta-booking-shell {
    padding: 0 16px;
  }

  #conecta-booking-header {
    padding: 24px 20px;
  }

  #conecta-booking-title {
    font-size: 24px;
  }

  #conecta-booking-subtitle {
    font-size: 14px;
  }

  #conecta-booking-card {
    padding: 24px 20px;
  }

  #conecta-service-title {
    font-size: 20px;
  }

  #conecta-services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  #conecta-services-grid > div {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  #conecta-booking-header {
    padding: 20px 16px;
    margin-bottom: 20px;
  }

  #conecta-booking-title {
    font-size: 20px;
  }

  #conecta-booking-card {
    padding: 20px 16px;
  }

  #conecta-service-title {
    font-size: 18px;
  }

  .service-title {
    font-size: 16px;
  }

  .service-description {
    font-size: 13px;
  }

  .service-footer {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}

/* Focus Styles for Accessibility */
#conecta-services-grid > div:focus-visible {
  outline: 2px solid #9B6A00;
  outline-offset: 2px;
}

/* Loading State */
#conecta-services-grid.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* No Results */
.no-results {
  text-align: center;
  padding: 40px 20px;
  color: #6b7280;
  font-size: 16px;
}

.no-results strong {
  color: #374151;
}