/* booking-widget.css - Premium Edition */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

#booking-widget-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

#booking-widget-overlay.active {
  opacity: 1;
  visibility: visible;
}

#booking-widget-modal {
  background: #ffffff;
  width: 90%;
  max-width: 520px;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
  position: relative;
  transform: translateY(20px) scale(0.98);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  color: #18181b;
  max-height: 90vh;
  overflow-y: auto;
}

#booking-widget-modal::-webkit-scrollbar { width: 6px; }
#booking-widget-modal::-webkit-scrollbar-thumb { background: #e4e4e7; border-radius: 10px; }

#booking-widget-overlay.active #booking-widget-modal {
  transform: translateY(0) scale(1);
}

.booking-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: #f4f4f5;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  color: #71717a;
  transition: all 0.2s;
  z-index: 10;
}
.booking-close:hover { background: #e4e4e7; color: #000; }

.booking-progress {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  justify-content: center;
}
.booking-step-dot {
  flex: 1;
  height: 4px;
  background: #f4f4f5;
  border-radius: 2px;
  transition: background 0.3s;
}
.booking-step-dot.active {
  background: #000;
}

#booking-widget-modal h2 {
  margin: 0 0 24px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.booking-step {
  display: none;
  animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.booking-step.active { display: block; }

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.booking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.booking-grid-time {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
  min-height: 100px;
}

.booking-card {
  border: 1.5px solid #e4e4e7;
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fff;
}
.booking-card:hover { border-color: #a1a1aa; box-shadow: 0 4px 12px rgba(0,0,0,0.05); transform: translateY(-2px); }
.booking-card.selected { border-color: #000; background: #000; color: #fff; }
.booking-card h4 { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.booking-card p { margin: 0; font-size: 13px; opacity: 0.8; }

.booking-time-pill {
  border: 1.5px solid #e4e4e7;
  border-radius: 100px;
  padding: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.booking-time-pill:hover { border-color: #000; }
.booking-time-pill.selected { background: #000; color: #fff; border-color: #000; }

.booking-input-wrap {
  position: relative;
  margin-bottom: 20px;
}
.booking-input-wrap input {
  width: 100%;
  padding: 24px 16px 8px;
  border: 1.5px solid #e4e4e7;
  border-radius: 12px;
  font-size: 15px;
  background: white;
  outline: none;
  font-family: inherit;
  transition: all 0.2s;
  box-sizing: border-box;
}
.booking-date-input {
  padding: 16px !important;
}
.booking-input-wrap label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #71717a;
  transition: all 0.2s ease;
  pointer-events: none;
  font-size: 15px;
}
.booking-input-wrap input:focus,
.booking-input-wrap input:not(:placeholder-shown) {
  border-color: #000;
}
.booking-input-wrap input:focus + label,
.booking-input-wrap input:not(:placeholder-shown) + label {
  top: 14px;
  font-size: 11px;
  font-weight: 600;
  color: #a1a1aa;
}

.booking-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  color: #71717a;
  padding: 24px;
  background: #f4f4f5;
  border-radius: 12px;
  font-size: 14px;
}

.booking-btn-next,
.booking-btn-submit,
.booking-close-btn {
  width: 100%;
  padding: 16px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}
.booking-btn-next:hover:not(:disabled),
.booking-btn-submit:hover:not(:disabled),
.booking-close-btn:hover { background: #18181b; transform: translateY(-1px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.booking-btn-next:disabled { background: #e4e4e7; color: #a1a1aa; cursor: not-allowed; }
.booking-btn-next .arrow { margin-left: 8px; transition: transform 0.2s; }
.booking-btn-next:hover:not(:disabled) .arrow { transform: translateX(4px); }

.booking-back {
  background: none;
  border: none;
  color: #71717a;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 24px;
  padding: 0;
  font-family: inherit;
  transition: color 0.2s;
}
.booking-back:hover { color: #000; }

.booking-summary {
  background: #f4f4f5;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
  color: #52525b;
}
.summary-total {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e4e4e7;
  font-weight: 600;
  font-size: 16px;
  color: #000;
}

.booking-success-icon {
  width: 80px;
  height: 80px;
  background: #dcfce7;
  color: #16a34a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
#b-step-success { text-align: center; }
#b-step-success h2 { margin-bottom: 12px; }
#b-step-success p { color: #71717a; margin-bottom: 32px; line-height: 1.5; }

.booking-error {
  color: #ef4444;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
  display: none;
}

.booking-loader-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #e4e4e7;
  border-top: 3px solid #000;
  border-radius: 50%;
  animation: booking-spin 0.8s linear infinite;
  margin: 20px auto;
}
.booking-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid #ffffff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: booking-spin 0.8s linear infinite;
}

@keyframes booking-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
