/* ===== Booking Form Enhancements ===== */

/* Loading Spinner */
.loading-spinner {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--gold-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-right: 10px;
}

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

/* Form Error States */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #dc3545;
  background-color: #fff5f5;
}

.error-message {
  display: none;
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: 5px;
  font-weight: 500;
}

.form-group input.error + .error-message,
.form-group select.error + .error-message {
  display: block;
}

/* Notifications */
.notification {
  position: fixed;
  top: 80px;
  right: 20px;
  background: white;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10000;
  min-width: 300px;
  max-width: 400px;
  animation: slideInRight 0.3s ease;
}

.notification-error {
  border-left: 4px solid #dc3545;
}

.notification-success {
  border-left: 4px solid #28a745;
}

.notification-info {
  border-left: 4px solid var(--gold-primary);
}

.notification-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.notification-message {
  flex: 1;
  font-size: 0.95rem;
  color: var(--charcoal);
}

.notification-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--grey-medium);
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.notification-close:hover {
  background: var(--grey-light);
  color: var(--charcoal);
}

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

/* Success Modal */
.booking-success-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  background: white;
  padding: 40px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 0 auto 20px;
  animation: scaleIn 0.5s ease;
}

.modal-content h2 {
  color: var(--burgundy-primary);
  margin-bottom: 15px;
  font-size: 2rem;
}

.modal-content p {
  color: var(--charcoal);
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.6;
}

.modal-content p strong {
  color: var(--burgundy-primary);
}

.booking-details {
  background: var(--cream);
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  text-align: left;
}

.booking-details h3 {
  color: var(--burgundy-primary);
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.booking-details p {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.modal-content .btn {
  margin-top: 20px;
  min-width: 150px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes scaleIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Submit Button Loading State */
button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

button[type="submit"] .spinner {
  width: 20px;
  height: 20px;
  border-width: 3px;
  vertical-align: middle;
}

/* Price Display */
#total-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-primary);
  margin: 10px 0;
}

/* Responsive */
@media (max-width: 768px) {
  .notification {
    right: 10px;
    left: 10px;
    min-width: auto;
  }

  .modal-content {
    padding: 30px 20px;
  }

  .success-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }

  .modal-content h2 {
    font-size: 1.5rem;
  }
}
