/* Reset overflow */


/* Banner container */
.banner {
  margin-top: 70px;
  position: relative;
  width: 100%;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
}

/* Blurred background image */
.banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 70%;
  background: url('../Images/cnt.webp') center/cover no-repeat;
  filter: blur(2px);
  z-index: 1;
  transform: scale(1.05);
}

/* Overlay text */
.overlay-text {
  margin-bottom: 95px;
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.6);
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  color: #fff;
  animation: fadeIn 2s ease-in-out;
}

.overlay-text h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.overlay-text p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Contact Info Box */
.banner-contact-info {
  position: absolute;
  margin-bottom: 95px;
  left: 70%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.65);
  padding: 15px 25px;
  border-radius: 10px;
  color: #fff;
  text-align: center;
  z-index: 3;
  max-width: 80%;
  font-size: 0.95rem;
}

.banner-contact-info h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
}

.banner-contact-info p {
  margin: 10px 0;
}

.banner-contact-info a {
  color: #00d1ff;
  text-decoration: none;
}

.banner-contact-info a:hover {
  text-decoration: underline;
}
/* Small Tablets (up to 768px) */
@media (max-width: 768px) {
  .banner::before {
    height: 100%;
    background: url('../Images/cnt.webp') center/cover no-repeat;
    background-size: 120%;
    background-position: center;
    filter: blur(2px); /* Retain the blur */
    transform: scale(1.05);
  }

  .overlay-text {
    padding: 30px;
  }

  .banner-contact-info {
    position: relative;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 20px;
    padding: 16px 20px;
    font-size: 0.85rem;
    max-width: 80%;
  }
}

/* Mobile Devices (up to 480px) */
@media (max-width: 480px) {
  .banner::before {
    height: 100%;
    background: url('../Images/cnt.webp') center/cover no-repeat;
    background-size: cover;
    filter: blur(2px);
    transform: scale(1.05);
  }

  .overlay-text {
    margin-top: 120px;
    padding: 20px;
  }

  .overlay-text h1 {
    font-size: 1.5rem;
  }

  .overlay-text p {
    font-size: 0.9rem;
  }

 
  .banner-contact-info {
    position: relative;
    top: auto;
    margin-top: 20px;
    left: 45%;
    transform: translateX(-50%);
    padding: 14px 16px;
    font-size: 0.8rem;
    width: 90%;
  }
}
html, body {
  overflow-x: hidden;
}

.banner {
  overflow: hidden;
}

.contactbox_wrapper {
  padding: 60px 20px;
  background: linear-gradient(135deg, #f0f4ff, #e6faff);
}

.contactbox_inner {
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  overflow: hidden;
  flex-wrap: wrap;
  gap: 40px; /* Gap between form and map on large screens */
}

.contactbox_form {
  flex: 1;
  min-width: 300px;
  padding: 40px;
}

.contactbox_form h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #0077cc;
}

.contactbox_form input,
.contactbox_form textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
}

.contactbox_form input[type="tel"] {
  font-size: 16px;
}

.contactbox_form button {
  background-color: #0077cc;
  color: white;
  padding: 14px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contactbox_form button:hover {
  background-color: #005fa3;
}

.contactbox_map {
  flex: 1;
  min-width: 300px;
  height: auto;
}

.contactbox_map iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: 0;
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .contactbox_inner {
    flex-direction: column;
    gap: 30px;
  }

  .contactbox_form {
    flex: 1 1 100%;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    text-align: center; /* Center text and inline elements */
  }

  .contactbox_form h2 {
    font-size: 24px;
  }

  .contactbox_form input,
  .contactbox_form textarea,
  .contactbox_form button {
    width: 100%;
    max-width: 195px;     /* Limit max width for neatness */
    display: block;
    margin: 0 auto 16px;  /* Center inputs and space below */
    text-align: left;     /* Keep text inside input left-aligned */
  }

  .contactbox_map {
    flex: 1 1 100%;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
  }

  .contactbox_map iframe {
    width: 100%;
    min-height: 300px;
  }
}


