/* ==========================================================================
   Artist Booking Modal Styles
   ========================================================================== */

/* Booking Modal Overlay */
.booking-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  overflow-y: auto;
  padding: 2rem 1rem;
}

.booking-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Modal Content Container */
.booking-modal {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  width: 100%;
  max-width: 600px;
  margin: auto;
  position: relative;
  transform: translateY(30px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(157, 78, 221, 0.15);
  overflow: hidden;
}

.booking-modal-overlay.active .booking-modal {
  transform: translateY(0);
}

/* Close Button */
.booking-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-fast);
}

.booking-close-btn:hover {
  background: var(--accent-purple);
  transform: rotate(90deg);
}

/* Modal Header - Artist Details */
.booking-header {
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: linear-gradient(180deg, rgba(157, 78, 221, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
}

.booking-artist-img {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid var(--accent-purple);
  box-shadow: 0 5px 15px rgba(157, 78, 221, 0.3);
}

.booking-artist-details h3 {
  font-size: 1.5rem;
  margin-bottom: 0.2rem;
  color: var(--text-white);
  font-weight: 700;
}

.booking-artist-details p {
  color: var(--accent-light);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Form Styles */
.booking-form {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: flex;
  gap: 1.5rem;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}

.form-group label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.form-group label span {
  color: #ff4d4f; /* Required asterisk */
  margin-left: 2px;
}

.form-control {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: var(--text-white);
  padding: 0.9rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  width: 100%;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(157, 78, 221, 0.15);
  background: rgba(0, 0, 0, 0.5);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* Validation States */
.form-control.is-invalid {
  border-color: #ff4d4f;
}

.invalid-feedback {
  color: #ff4d4f;
  font-size: 0.75rem;
  display: none;
  margin-top: 0.2rem;
}

.form-control.is-invalid ~ .invalid-feedback {
  display: block;
}

/* Submit Button */
.booking-submit-wrapper {
  margin-top: 1rem;
}

.btn-submit-booking {
  width: 100%;
  background: linear-gradient(135deg, #c77dff 0%, #9d4edd 50%, #7b2cbf 100%);
  color: white;
  border: none;
  padding: 1.2rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 8px 20px rgba(157, 78, 221, 0.3);
}

.btn-submit-booking:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(157, 78, 221, 0.5);
}

.btn-submit-booking:disabled {
  background: var(--border-glass);
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
}

.btn-submit-booking i {
  width: 18px;
  height: 18px;
}

/* Loading State */
.loading-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

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

.btn-submit-booking.is-loading .btn-text,
.btn-submit-booking.is-loading i {
  display: none;
}

.btn-submit-booking.is-loading .loading-spinner {
  display: block;
}

.success-message {
  display: none;
  color: #52c41a;
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
    gap: 1.5rem;
  }
}
