/* Video Booking Form Block Styles */

/* Main container - full width hero */
.video-booking-container {
  position: relative;
  width: 100%;
  height: 100vh; /* Adjust hero height as needed */
  min-height: 500px;
  max-height: 900px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Full-width alignment for the block */
.alignfull .video-booking-container {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

/* Video background wrapper */
.video-background-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Placeholder image - shows while video loads */
.video-placeholder-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 2;
  transition: opacity 0.8s ease-in-out;
}

.video-placeholder-image.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* Background video iframe - covers entire container */
.background-video-iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* 16:9 aspect ratio */
  min-height: 100%;
  min-width: 177.77vh; /* 16:9 aspect ratio */
  transform: translate(-50%, -50%);
  pointer-events: none; /* Prevents interaction with video */
  border: none;
  outline: none;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
}

.background-video-iframe.fade-in {
  opacity: 1 !important;
}

/* Force hide any remaining player UI elements */
.background-video-iframe::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  pointer-events: none;
}

/* Video overlay for better text contrast */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.1) 50%,
    rgba(0, 0, 0, 0.4) 100%
  );
  z-index: 3;
}

/* Video placeholder when no URL is provided */
.video-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
  z-index: 2;
}

.video-placeholder p {
  font-size: 1.2rem;
  margin: 0;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
}

/* Booking form overlay */
.booking-form-overlay {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 90%;
  max-width: 600px;
}

/* Booking form styles */
.booking-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-group {
  flex: 1;
  min-width: 120px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
  padding: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  background: white;
  transition: all 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Submit button */
.booking-submit-btn {
  flex: 1;
  min-width: 140px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  align-self: flex-end;
}

.booking-submit-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.booking-submit-btn:active {
  transform: translateY(0);
}

/* Hotel warning styles */
.hotel-warning {
  margin: 20px auto !important;
  max-width: 600px;
  font-size: 1rem;
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.2);
}

/* Responsive design */
@media (max-width: 768px) {
  .video-booking-container {
    height: 60vh;
    min-height: 400px;
  }
  
  .booking-form-overlay {
    bottom: 20px;
    width: 95%;
  }
  
  .booking-form {
    padding: 16px;
    gap: 8px;
  }
  
  .form-group {
    min-width: 100%;
  }
  
  .booking-submit-btn {
    min-width: 100%;
    margin-top: 8px;
  }
  
  .form-group input,
  .form-group select {
    padding: 10px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .video-booking-container {
    height: 50vh;
    min-height: 350px;
  }
  
  .booking-form {
    padding: 12px;
  }
  
  .form-group label {
    font-size: 0.8rem;
  }
}

/* Ensure site header/navigation stays above video */
.site-header,
.wp-block-navigation,
header {
  position: relative;
  z-index: 999;
}

/* Additional video control hiding (belt and suspenders approach) */
.background-video-iframe[src*="youtube"] {
  border: none;
  background: transparent;
}

.background-video-iframe[src*="vimeo"] {
  border: none;
  background: transparent;
} 