/* Booking Popup Modal Styles */
.booking-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease-out;
}

.booking-popup {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  animation: popupSlideIn 0.3s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes popupSlideIn {
  to {
    transform: scale(1);
  }
}

.booking-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px 20px 24px;
  border-bottom: 1px solid #f0f0f0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 16px 16px 0 0;
}

.booking-popup-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.close-popup-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.close-popup-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.booking-popup-content {
  padding: 24px;
}

.selected-slot-info {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #f8f9ff 0%, #f1f3ff 100%);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  border: 1px solid #e8ebff;
}

.slot-info-icon {
  font-size: 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.slot-info-text h3 {
  margin: 0 0 4px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}

.slot-info-text p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

.booking-form .form-group {
  margin-bottom: 20px;
}

.booking-form label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.booking-form label i {
  color: #667eea;
  width: 16px;
  text-align: center;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e8ebff;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s ease;
  background: white;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.booking-form input::placeholder,
.booking-form textarea::placeholder {
  color: #999;
}

.booking-form select option {
  padding: 8px;
}

.booking-form textarea {
  resize: vertical;
  min-height: 80px;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.cancel-btn {
  flex: 1;
  padding: 12px 24px;
  border: 2px solid #e0e0e0;
  background: white;
  color: #666;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cancel-btn:hover {
  border-color: #ccc;
  background: #f8f8f8;
}

.confirm-btn {
  flex: 2;
  padding: 12px 24px;
  border: none;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.confirm-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.confirm-btn:active {
  transform: translateY(0);
}

/* Loading state for confirm button */
.confirm-btn.loading {
  opacity: 0.7;
  cursor: not-allowed;
}

.confirm-btn.loading::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 8px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Error and success states */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-group.success input,
.form-group.success select,
.form-group.success textarea {
  border-color: #27ae60;
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

/* Popup Error Message */
.popup-error-message {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  color: white;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  animation: slideInDown 0.3s ease-out;
}

.popup-error-message i {
  font-size: 1.1rem;
  flex-shrink: 0;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .booking-popup-overlay {
    padding: 10px;
  }

  .booking-popup {
    max-height: 95vh;
  }

  .booking-popup-header {
    padding: 20px 20px 16px 20px;
  }

  .booking-popup-header h2 {
    font-size: 1.3rem;
  }

  .booking-popup-content {
    padding: 20px;
  }

  .selected-slot-info {
    padding: 16px;
    gap: 12px;
  }

  .slot-info-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .form-actions {
    flex-direction: column;
  }

  .cancel-btn,
  .confirm-btn {
    flex: none;
  }
}

@media (max-width: 480px) {
  .booking-popup-header {
    padding: 16px;
  }

  .booking-popup-content {
    padding: 16px;
  }

  .selected-slot-info {
    flex-direction: column;
    text-align: center;
    padding: 16px;
  }

  .slot-info-icon {
    align-self: center;
  }
}
