/* Booking Flow - Reusable Components */

/* ============================================
   Service Selection Cards
   ============================================ */

.service-card {
  transition: all 0.2s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.service-card.selected {
  border-color: var(--color-gray-500, #3b82f6);
  background-color: var(--color-gray-50, #eff6ff);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-gray-500, #3b82f6) 10%, transparent);
}

/* ============================================
   Address Autocomplete
   ============================================ */

.suggestions-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  max-height: 300px;
  overflow: hidden;
  overflow-y: auto;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  margin-top: 0.25rem;
  animation: slideDown 0.2s ease-out;
}

.suggestion-item {
  transition: background-color 0.15s ease;
}

.suggestion-item:hover,
.suggestion-item.is-selected {
  background-color: var(--color-brand-50, #eff6ff);
  color: var(--color-brand-900, #1e3a8a);
}

.suggestion-item:first-child {
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}

.suggestion-item:last-child {
  border-bottom-left-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}

/* ============================================
   Pool Map Controls
   ============================================ */

.pool-map-control-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #f3f4f6;
  border: none;
  border-radius: 8px;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pool-map-control-btn:hover {
  background: #e5e7eb;
}

/* ============================================
   Animations
   ============================================ */

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Form Validation
   ============================================ */

.form-error {
  color: #dc2626;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.form-input-error {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 1px #dc2626 !important;
}

.form-input-error:focus {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2) !important;
}

/* ============================================
   Mobile Touch Targets & iOS Zoom Prevention
   ============================================ */

/* Prevent iOS zoom on input focus - inputs must be 16px+ */
@media (max-width: 640px) {
  .form-input,
  .form-input-lg,
  .form-select,
  .form-textarea,
  input[type='text'],
  input[type='email'],
  input[type='tel'],
  input[type='number'],
  input[type='password'],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Ensure minimum touch target size (44x44px) for checkboxes */
.booking-checkbox {
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.booking-checkbox input[type='checkbox'] {
  width: 1.25rem;
  height: 1.25rem;
}

/* Brand-colored checkboxes for booking flow */
.booking-checkbox input[type='checkbox']:checked {
  background-color: var(--color-brand-500);
  border-color: var(--color-brand-500);
}

.booking-checkbox input[type='checkbox']:checked:focus,
.booking-checkbox input[type='checkbox']:focus {
  --tw-ring-color: color-mix(in srgb, var(--color-brand-500) 30%, transparent);
}

/* ============================================
   Horizontal Scroll - Hide Scrollbar
   ============================================ */

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}
