/* Booking Concierge Modal - Premium Dark Design */
:root {
  --concierge-gold: #C0A062;
  --concierge-bg: rgba(30, 26, 23, 0.95);
  --concierge-text: #F2F0E9;
  --concierge-text-muted: #B0A89E;
  --concierge-transition: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --glass-border: rgba(255, 255, 255, 0.08);
}

/* Modal Overlay */
#booking-concierge-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 5, 2, 0.85);
  /* Darker backdrop */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  /* CHANGED FROM FLEX TO NONE */
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: 16px;
}

#booking-concierge-modal.is-open {
  display: flex;
  /* FORCE COMPONENT VISIBILITY */
  opacity: 1;
  pointer-events: auto;
}

/* Modal Container - Glassmorphism */
.concierge-container {
  background: var(--concierge-bg);
  width: 100%;
  max-width: 540px;
  min-height: 620px;
  max-height: 90vh;
  /* Prevent overflow on small screens */
  border-radius: 24px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.4s ease-out;
  border: 1px solid var(--glass-border);
}

#booking-concierge-modal.is-open .concierge-container {
  transform: translateY(0);
}

/* Header */
.concierge-header {
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
}

.concierge-title {
  font-family: var(--font-display, serif);
  font-size: 1.4rem;
  color: var(--concierge-gold);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.concierge-close {
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--concierge-text);
  opacity: 0.5;
  cursor: pointer;
  line-height: 1;
  padding: 8px;
  transition: opacity 0.2s;
}

.concierge-close:hover {
  opacity: 1;
  color: var(--concierge-gold);
}

/* Progress Bar */
.concierge-progress {
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  width: 100%;
}

.concierge-progress-bar {
  height: 100%;
  background: var(--concierge-gold);
  width: 0%;
  transition: width 0.5s ease;
  box-shadow: 0 0 10px rgba(192, 160, 98, 0.5);
}

/* Content Area */
.concierge-content {
  flex: 1;
  position: relative;
  padding: 32px;
  overflow-y: auto;
  /* Custom Scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--concierge-gold) transparent;
}

.concierge-content::-webkit-scrollbar {
  width: 6px;
}

.concierge-content::-webkit-scrollbar-thumb {
  background-color: var(--concierge-gold);
  border-radius: 3px;
}

.step-view {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  height: 100%;
  /* Ensure full height */
}

.step-view.active {
  display: flex;
  /* Changed to flex for better layout control */
  flex-direction: column;
  opacity: 1;
  transform: translateY(0);
}

.step-title {
  font-family: var(--font-display, serif);
  font-size: 1.8rem;
  color: var(--concierge-text);
  margin-bottom: 8px;
  text-align: center;
  font-weight: 500;
}

.step-subtitle {
  text-align: center;
  color: var(--concierge-text-muted);
  margin-bottom: 32px;
  font-family: var(--font-accent, sans-serif);
  font-size: 0.95rem;
}

/* Step 1: Location Cards - Radio Style */
.location-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media(min-width: 480px) {
  .location-options {
    grid-template-columns: 1fr 1fr;
  }
}

.location-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  min-height: 100px; /* Ensure a decent minimum but don't force a square */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.02);
}

.location-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  border-color: var(--concierge-gold);
}

.location-card.selected {
  border-color: var(--concierge-gold);
  box-shadow: 0 0 0 2px var(--concierge-gold);
}

.location-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: brightness(0.8);
}

.location-card:hover img {
  transform: scale(1.05);
  filter: brightness(1);
}

.location-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
  color: var(--concierge-text);
  font-weight: 600;
  text-align: center;
  font-family: var(--font-accent, sans-serif);
  font-size: 0.9rem;
}

/* Step 2: Service Selection */
.service-scroll {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: all 0.2s ease;
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(192, 160, 98, 0.4);
}

.service-card.selected {
  background: rgba(192, 160, 98, 0.15);
  border-color: var(--concierge-gold);
}

.service-info {
  display: flex;
  flex-direction: column;
}

.service-name {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--concierge-text);
}

.service-price {
  font-size: 0.9rem;
  color: var(--concierge-gold);
  margin-top: 4px;
}

/* New Step: Duration Selection */
.duration-list-visual {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.duration-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: all 0.2s ease;
}

.duration-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(192, 160, 98, 0.4);
}

.duration-card.selected {
  background: rgba(192, 160, 98, 0.15);
  border-color: var(--concierge-gold);
}

.duration-info {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
}

.duration-label {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--concierge-text);
}

.duration-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--concierge-gold);
}

/* Step 3: Therapist Profile Cards */
.therapist-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  padding: 4px;
}

.therapist-profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 16px;
  transition: all 0.2s;
  text-align: center;
}

.therapist-profile-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(192, 160, 98, 0.4);
}

.therapist-profile-card.selected {
  border-color: var(--concierge-gold);
  background: rgba(192, 160, 98, 0.1);
}

.profile-image-wrap {
  position: relative;
  margin-bottom: 12px;
}

.therapist-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
  padding: 2px;
  transition: border-color 0.3s;
}

.therapist-profile-card.selected .therapist-avatar {
  border-color: var(--concierge-gold);
}

.therapist-any {
  background: #333;
  display: flex;
  align-items: center;
  justify-content: center;
}

.therapist-any svg {
  width: 40px;
  height: 40px;
  fill: var(--concierge-gold);
}

.gold-badge {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--concierge-gold);
  color: #1E1A17;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
  text-transform: uppercase;
}

.therapist-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--concierge-text);
  display: block;
}

.therapist-title {
  font-size: 0.75rem;
  color: var(--concierge-text-muted);
  display: block;
  margin-top: 2px;
}

.therapist-exp {
  font-size: 0.7rem;
  color: var(--concierge-gold);
  margin-top: 4px;
  display: block;
}

/* Step 4: Date & Time */
.time-picker-visual {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.date-input-wrap {
  width: 100%;
}

.date-input {
  width: 100%;
  padding: 14px;
  background: rgba(255, 255, 255, 0.05);
  /* Transparent Background */
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--concierge-text);
  font-family: var(--font-accent);
  text-align: center;
  cursor: pointer;
}

.date-input::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.6;
  cursor: pointer;
}

.time-slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
}

.time-slot {
  padding: 12px;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  /* Slightly squarer than cards */
  text-align: center;
  font-weight: 500;
  color: var(--concierge-text);
  cursor: pointer;
  transition: all 0.2s;
  background: rgba(255, 255, 255, 0.02);
}

.time-slot:hover {
  border-color: var(--concierge-gold);
  background: rgba(255, 255, 255, 0.08);
}

.time-slot.selected {
  background: var(--concierge-gold);
  color: #1E1A17;
  /* Dark text on gold */
  border-color: var(--concierge-gold);
  font-weight: 700;
}

/* Step 5: Details & Smart Inputs */
.smart-field {
  margin-bottom: 24px;
  position: relative;
  display: flex;
  align-items: center;
}

.smart-input {
  width: 100%;
  padding: 16px 16px 16px 50px;
  /* Space for icon */
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  font-size: 1rem;
  font-family: var(--font-accent, sans-serif);
  background: rgba(255, 255, 255, 0.05);
  /* Transparent bg */
  color: var(--concierge-text);
  /* Off-white text */
  transition: border-color 0.3s ease, background 0.3s ease;
  outline: none;
}

.smart-input::placeholder {
  color: rgba(242, 240, 233, 0.4);
}

.smart-input:focus {
  border-color: var(--concierge-gold);
  background: rgba(255, 255, 255, 0.08);
}

.field-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--concierge-text-muted);
  width: 20px;
  height: 20px;
}

/* Phone Field Specifics */
.phone-field {
  gap: 12px;
}

.country-select {
  width: 100px;
  /* Fixed width for selector */
  flex-shrink: 0;
  padding: 16px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  /* Dark theme */
  border: 1px solid var(--glass-border);
  color: var(--concierge-text);
  font-size: 1rem;
  appearance: none;
  -webkit-appearance: none;
  text-align: center;
  cursor: pointer;
}

.country-select:focus {
  border-color: var(--concierge-gold);
  outline: none;
}

.phone-input {
  padding-left: 16px !important;
  /* Reset padding since code is separate */
}


/* Booking Button - Full Width on Mobile */
.btn-confirm {
  width: 100%;
  padding: 18px;
  background: var(--concierge-gold);
  color: #1E1A17;
  /* Dark text for contrast */
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 24px;
  position: relative;
  box-shadow: 0 4px 15px rgba(192, 160, 98, 0.3);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(192, 160, 98, 0.5);
  background: #D4B87E;
  /* Lighter gold */
}

/* Gold Loading Ring */
.loading-ring {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-top-color: #1E1A17;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  margin-left: 10px;
  vertical-align: middle;
  display: none;
  /* hidden by default */
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Success State */
.success-message {
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: rgba(192, 160, 98, 0.1);
  color: var(--concierge-gold);
  border: 1px solid var(--concierge-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 3rem;
}