/* BOOKING MODAL COMPONENTS - ITT Heal */
/* Service Summary Card & Visual Progress Indicator */

/* ================================================
   DATETIME SELECTION MODAL STYLES
   (Extracted from inline styles in index.html)
   ================================================ */

#datetime-selection {
  display: none;
}

#datetime-selection.active {
  display: block;
}

#datetime-selection .subsection-heading {
  color: var(--sage-700, #5a6c7d);
}

/* ================================================
   SERVICE SUMMARY CARD
   ================================================ */

.booking-summary-card {
  background: linear-gradient(135deg, #ffffff 0%, #fdfcf7 100%);
  border-left: 4px solid var(--sage-600, #8aa77b);
  border-radius: 8px;
  padding: var(--space-lg, 24px);
  margin-bottom: var(--space-lg, 24px);
  box-shadow: 0 4px 16px rgba(138, 167, 123, 0.12);
  transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.booking-summary-card:hover {
  box-shadow: 0 8px 24px rgba(138, 167, 123, 0.18);
}

.booking-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-md, 16px);
}

.booking-summary-details {
  flex: 1;
  min-width: 0;
}

.booking-summary-title {
  margin: 0 0 var(--space-xs, 4px) 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--spa-charcoal, #2d3748);
  line-height: 1.2;
}

.booking-summary-meta {
  margin: 0;
  font-size: 0.95rem;
  color: var(--sage-700, #5a6c7d);
  line-height: 1.4;
}

.booking-summary-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--sage-600, #8aa77b);
  font-family: 'Playfair Display', serif;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .booking-summary-card {
    padding: var(--space-md, 16px);
  }

  .booking-summary-title {
    font-size: 1.1rem;
  }

  .booking-summary-meta {
    font-size: 0.9rem;
  }

  .booking-summary-price {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .booking-summary-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .booking-summary-price {
    margin-top: var(--space-xs, 4px);
  }
}

@media (max-width: 344px) {
  .booking-summary-card {
    padding: var(--space-sm, 12px);
  }

  .booking-summary-title {
    font-size: 1rem;
  }

  .booking-summary-meta {
    font-size: 0.85rem;
  }

  .booking-summary-price {
    font-size: 1.3rem;
  }
}

/* ================================================
   VISUAL PROGRESS INDICATOR
   ================================================ */

.booking-progress {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm, 8px);
  margin-bottom: var(--space-md, 16px);
}

.progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e2e8f0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-dot.active {
  width: 24px;
  height: 8px;
  border-radius: 4px;
  background: var(--lavender-600, #8b5cf6);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.progress-dot.completed {
  background: var(--sage-600, #8aa77b);
}

/* Accessibility: Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .booking-summary-card,
  .progress-dot {
    transition: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .booking-summary-card {
    border: 2px solid var(--sage-600, #8aa77b);
  }

  .progress-dot {
    border: 2px solid currentColor;
  }
}

/* ================================================
   LUXURY SPA CHECKBOX (Add-ons)
   ================================================ */

.luxury-checkbox-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;  /* WCAG touch target */
  min-height: 44px; /* WCAG touch target */
  padding: 10px;    /* Creates 44px touch area around 24px checkbox */
  cursor: pointer;
}

.luxury-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border: 2px solid var(--sage-300, #c8d2c8);
  border-radius: var(--radius-md, 8px); /* Soft rounded corners */
  background: white;
  cursor: pointer;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

/* Hover state - subtle scale and border color */
.luxury-checkbox:hover {
  transform: scale(1.05);
  border-color: #8aa77b !important;
  box-shadow: 0 2px 8px rgba(138, 167, 123, 0.15);
}

/* Focus state - WCAG compliance with brand gold */
.luxury-checkbox:focus-visible {
  outline: 3px solid #c9a959;
  outline-offset: 2px;
}

/* Checked state - sage green background with depth */
.luxury-checkbox:checked {
  background: #7a9669 !important;
  border-color: #7a9669 !important;
  box-shadow: 0 4px 12px rgba(122, 150, 105, 0.3);
  transform: scale(1);
}

/* Checkmark - elegant Unicode checkmark */
.luxury-checkbox:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

/* Checked hover - enhanced depth */
.luxury-checkbox:checked:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(122, 150, 105, 0.4);
}

/* Disabled state */
.luxury-checkbox:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f5f5f0;
  border-color: #e2e8e2;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .luxury-checkbox {
    transition: none;
  }
  
  .luxury-checkbox:hover,
  .luxury-checkbox:checked:hover {
    transform: none;
  }
}

/* Mobile optimization (344px) */
@media (max-width: 344px) {
  .luxury-checkbox {
    width: 22px;
    height: 22px;
  }
  
  .luxury-checkbox:checked::after {
    font-size: 14px;
  }
  
  .luxury-checkbox-wrapper {
    padding: 11px;  /* Maintain 44px touch target */
  }
}
