/* Ensure the video isn't clickable and covers the full screen */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  pointer-events: none; /* Prevent interaction with video */
}

/* Reset body margins and ensure the content is always visible and scrollable */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Arial, sans-serif;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Main Hero Section */
.hero {
  position: relative;
  width: 100%;
  min-height: 75vh; /* Flexible height for mobile toolbars */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(20px + env(safe-area-inset-top)) 20px calc(20px + env(safe-area-inset-bottom)); /* Add padding to account for notches and edges */
  box-sizing: border-box;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)); /* Dark overlay */
}

/* Ensure the container has proper padding and isn't cut off */
.hero-content {
  z-index: 1;
  color: white;
  width: 100%;
  max-width: 1200px;
  padding: 20px;
}

.card {
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Button adjustments to prevent cutting at the bottom */
.btn-lg {
  padding: 10px 20px;
  font-size: 1rem;
}

/* Form controls */
.form-control {
  border: 1px solid #ced4da;
  border-radius: 4px;
  padding: 10px;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  .hero {
    padding: calc(15px + env(safe-area-inset-top)) 15px calc(15px + env(safe-area-inset-bottom));
  }

  .title {
    font-size: 1.3rem;
  }

  .subtitle {
    font-size: 1.1rem;
  }

  .btn-lg {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .hero-content {
    padding: 10px;
  }

  .title {
    font-size: 1.2rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .btn-lg {
    font-size: 0.85rem;
  }
}
