/**
 * VIP Booking Modal - Glassmorphism Design
 * 
 * @package VIP_Theme
 */

/* ========================================
   BOOKING MODAL OVERLAY
   ======================================== */

.vip-booking-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.vip-booking-modal.active {
  opacity: 1;
  visibility: visible;
}

.vip-booking-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0a090e;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* ========================================
   MODAL CONTAINER - GLASSMORPHISM
   ======================================== */

.vip-booking-modal-container {
  position: relative !important;
  background: #0a090e !important;
  border: 1px solid rgba(214, 183, 123, 0.3) !important;
  border-radius: 16px !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
  max-width: 1200px !important;
  max-height: 90vh !important;
  width: 100% !important;
  overflow-y: auto !important;
  animation: modalFadeIn 0.3s ease-out !important;
  transform: scale(0.9) translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.vip-booking-modal.active .vip-booking-modal-container {
  transform: scale(1) translateY(0);
}

/* Modal Fade In Animation */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Glassmorphism glow effect */
.vip-booking-modal-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(214, 183, 123, 0.1) 0%, 
    rgba(242, 230, 201, 0.05) 50%,
    rgba(214, 183, 123, 0.08) 100%);
  opacity: 0.6;
  pointer-events: none;
  border-radius: 20px;
}

/* ========================================
   MODAL HEADER
   ======================================== */

.vip-booking-modal-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 2.5rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 2;
  background-color: #0a090e !important;
}

.vip-booking-modal-logo {
  display: flex;
  align-items: center;
}

.booking-modal-logo-image {
  height: 50px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.1);
  transition: all 0.3s ease;
}

.vip-booking-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: #FAFAFA;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.vip-booking-modal-close:hover {
  background: rgba(214, 183, 123, 0.2);
  border-color: rgba(214, 183, 123, 0.4);
  color: #D6B77B;
  transform: scale(1.05);
}

/* ========================================
   MODAL CONTENT
   ======================================== */

.vip-booking-modal-content {
  position: relative;
  padding: 1rem 2.5rem 2.5rem;
  max-height: calc(90vh - 120px);
  overflow-y: auto;
  z-index: 2;
}

.vip-booking-modal-title {
  text-align: center;
  margin-bottom: 2rem;
}

.vip-booking-modal-title h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: #FAFAFA;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.vip-booking-modal-title p {
  font-family: 'Manrope', sans-serif;
  font-size: 1.125rem;
  color: #B7B7C2;
  line-height: 1.6;
}

/* ========================================
   BOOKING FORM CONTAINER
   ======================================== */

.vip-booking-form-container {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

/* Style the booking form elements */
.vip-booking-form-container .chbs-booking-form {
  background: transparent !important;
  border: none !important;
}

.vip-booking-form-container input,
.vip-booking-form-container select,
.vip-booking-form-container textarea {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 8px !important;
  color: #FAFAFA !important;
  padding: 0.75rem 1rem !important;
  font-family: 'Manrope', sans-serif !important;
  transition: all 0.3s ease !important;
}

.vip-booking-form-container input:focus,
.vip-booking-form-container select:focus,
.vip-booking-form-container textarea:focus {
  border-color: rgba(214, 183, 123, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(214, 183, 123, 0.1) !important;
  outline: none !important;
}

.vip-booking-form-container input::placeholder,
.vip-booking-form-container textarea::placeholder {
  color: #B7B7C2 !important;
}

.vip-booking-form-container label {
  color: #FAFAFA !important;
  font-family: 'Manrope', sans-serif !important;
  font-weight: 500 !important;
  margin-bottom: 0.5rem !important;
}

.vip-booking-form-container button,
.vip-booking-form-container .chbs-button {
  background: linear-gradient(135deg, #D6B77B 0%, #F2E6C9 100%) !important;
  border: none !important;
  border-radius: 8px !important;
  color: #0B0B0C !important;
  font-family: 'Manrope', sans-serif !important;
  font-weight: 600 !important;
  padding: 0.875rem 2rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
}

.vip-booking-form-container button:hover,
.vip-booking-form-container .chbs-button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(214, 183, 123, 0.4) !important;
}

/* ========================================
   CUSTOM SCROLLBAR
   ======================================== */

.vip-booking-modal-content::-webkit-scrollbar {
  width: 6px;
}

.vip-booking-modal-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.vip-booking-modal-content::-webkit-scrollbar-thumb {
  background: rgba(214, 183, 123, 0.5);
  border-radius: 3px;
}

.vip-booking-modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(214, 183, 123, 0.7);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
  .vip-booking-modal-overlay {
    padding: 1rem;
  }
  
  .vip-booking-modal-container {
    max-width: 100%;
    border-radius: 16px;
  }
  
  .vip-booking-modal-header {
    padding: 1.5rem 1.5rem 1rem;
  }
  
  .vip-booking-modal-content {
    padding: 1rem 1.5rem 2rem;
  }
  
  .vip-booking-form-container {
    padding: 1.5rem;
  }
  
  .booking-modal-logo-image {
    height: 40px;
  }
}

@media (max-width: 480px) {
  .vip-booking-modal-header {
    padding: 1rem 1rem 0.75rem;
  }
  
  .vip-booking-modal-content {
    padding: 0.75rem 1rem 1.5rem;
  }
  
  .vip-booking-form-container {
    padding: 1rem;
  }
  
  .vip-booking-modal-title h2 {
    font-size: 1.5rem;
  }
}

/* ========================================
   ANIMATION KEYFRAMES
   ======================================== */

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes modalFadeOut {
  from {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  to {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
}