.header {
  min-height: 100vh;
  background: linear-gradient(to bottom right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url("../images/header-background.jpg") center center no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  padding-top: 400px; /* Moved content down additional 200px (total 400px from top) */
}

.header .slide {
  width: 70%;
  margin: 0 auto;
}

/* Ensure proper spacing for header content */
.header .text-container {
  margin-top: 2rem;
}

/* Make the main heading h4 size and more readable */
.header .text-container h6 {
  font-size: 1.5rem !important; /* h4 font size */
  font-weight: 600;
  line-height: 1.3;
}

.navbar {
  transition: all 0.5s ease-in-out;
  z-index: 1030; /* Ensure navbar stays above content */
}

.invitation-bg {
  background: linear-gradient(to bottom right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url("../images/invitation-background.jpg") center center no-repeat;
  background-size: cover;
}

@media (max-width: 992px) {
  .navbar {
    background: var(--bs-dark);
  }
  .header {
    min-height: 100vh !important;
    height: auto !important;
    padding-top: 350px !important; /* Adjusted for mobile with additional 200px down movement */
  }
  .header .slide {
    width: 90%;
    margin: 0 auto;
  }
  .header .text-container p {
    width: 100% !important;
    font-size: 16px;
  }
  .header .text-container h6 {
    font-size: 1.25rem !important; /* h4 size on mobile */
  }
/* Ensure proper spacing between header and register section */
.register {
  padding: 60px 0 !important;
  margin-top: 0 !important;
  position: relative;
  z-index: 1;
}
.register h2 {
  text-align: center;
}

/* Form validation styles */
.form-control.is-invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875em;
  color: #dc3545;
}

#form-messages {
  margin-bottom: 1rem;
}

#submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.spinner-border-sm {
  width: 1rem;
  height: 1rem;
}
  }
  .summary {
    margin-top: 0 !important;
    width: 90% !important;
  }
}
