.logo{
    width: 120px;
}
.hero-bg {
    background-image: url('../images/heroimages.jpg');
    background-size: cover; /* Ensures the image covers the entire section */
    background-position: bottom; /* Adjust to show more of the bottom of your image */
    background-repeat: no-repeat;
    position: relative;
    display: flex; /* Use flexbox for vertical centering */
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Hide any overflow from animations */
    /* Add a subtle animation to the background image itself for more dynamism */
    animation: zoomOutBackground 30s ease-out infinite alternate;
}

/* Updated overlay for stronger text contrast */
/* The HTML now has a gradient overlay, which often looks better */
/* If you prefer a solid color overlay, uncomment and adjust this: */
/*
.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); // Very dark overlay for maximum contrast
    z-index: 1;
}
*/

.hero-bg .container {
    z-index: 2; /* Ensure content is above the overlay */
    position: relative;
}

/* Keyframe animations (retained and potentially adjusted for effect) */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Background Zoom Animation */
@keyframes zoomOutBackground {
    0% {
        /* background-size: 110%; */
        background-position: center bottom;
    }
    100% {
        /* background-size: 100%; */
        background-position: center bottom;
    }
}

.animate-scale-in {
    animation: scaleIn 1s ease-out forwards;
    opacity: 0; /* Start invisible */
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
    opacity: 0; /* Start invisible */
}

/* Delay for sequential animation */
.animation-delay-300 { animation-delay: 0.3s; }
.animation-delay-600 { animation-delay: 0.6s; }
.animation-delay-900 { animation-delay: 0.9s; }

/* Responsive adjustments */
@media (min-width: 992px) {
    .hero-bg{
    min-height: 100vh;
    }
}
@media (max-width: 768px) {
    .hero-bg h1 {
        font-size: 3.25rem; /* Slightly smaller for better fit on mobile */
        line-height: 1.2;
    }
    .hero-bg p {
        font-size: 1.15rem;
    }
    .hero-bg .container {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
}

@media (max-width: 480px) {
    .hero-bg h1 {
        font-size: 2.5rem;
    }
    .hero-bg p {
        font-size: 1rem;
    }
    .hero-bg .flex-col {
        gap: 1rem; /* Adjust gap for buttons on very small screens */
    }
}





.loader {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #2563eb;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  animation: spin 1s linear infinite;
  display: inline-block;
  vertical-align: middle;
}
@keyframes spin {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}

#formMessage.success {
  color: #16a34a;
  background: #f0fdf4;
  border: 1px solid #22c55e;
  border-radius: 8px;
  padding: 12px;
  margin-top: 14px;
}

#formMessage.error {
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #f87171;
  border-radius: 8px;
  padding: 12px;
  margin-top: 14px;
}


/* BACKDROP: slightly darker for focus */
#modalBackdrop {
  z-index: 9999;
  background: rgba(0,0,0,0.60);
  transition: opacity 0.25s;
}

/* MODAL: Always on top of everything */
#formModal {
  z-index: 10000;
}

/* Show visible close button with shadow and blue hover */
#modalCloseBtn {
  font-size: 2rem;
  color: #2563eb; /* Tailwind blue-600 */
  border-radius: 9999px;
  width: 2.5rem;
  height: 2.5rem;
  background: #fff;
  border: 2px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 16px 0 #0001;
  transition: background 0.2s, color 0.2s;
}
#modalCloseBtn:hover,
#modalCloseBtn:focus {
  background: #dbeafe; /* blue-100 */
  color: #1e40af; /* blue-800 */
  outline: 2px solid #2563eb;
}

/* Prevent background scroll when .modal-open is on body */
body.modal-open {
  overflow: hidden !important;
}

/* For smaller screens, modal stays centered & scrollable */
#formModal .max-w-md {
  max-height: 95vh;
  overflow-y: auto;
}

/* Ensure the close btn isn't covered by scroll or other elements */
#formModal .absolute {
  z-index: 11000;
}
