.enquiry-section-custom {
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  width: 100%;
  background-color: transparent;
  position: relative;
  margin-top: 55px;
}

.form-bg-wrapper {
  background: url("../images/smiling-woman-phone-1.png") no-repeat right center;
  background-size: cover;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  min-height: 500px; 
  box-sizing: border-box;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  position: relative;
  overflow: visible;
}

.form-wrapper-custom {
  display: flex;
  flex-wrap: nowrap;
  box-sizing: border-box;
  justify-content: flex-start;
  max-width: 550px;
  max-height: 700px;
  margin-left: 60px;
  margin-right: auto;
  background-color: transparent;
  padding: 10px;
  background: linear-gradient(to right, #004aad, #26cb2d);
  border-top-left-radius: 110px;
  border-top-right-radius: 110px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2;
  transform: none;
}

.form-box-custom {
  flex: 1;
  padding: 40px;
  background: white;
  border-top-left-radius: 100px;
  border-top-right-radius: 100px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  width: 100%;
}

.form-box-custom h2 {
  font-size: 2.2rem;
  font-weight: bold;
  font-style: italic;
  color: #000;
  margin-bottom: 30px;
  line-height: 1.2;
  text-align: center;
}

.form-box-custom h2 span {
  color: #000;
}

.form-box-custom form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
}

textarea {
  resize: vertical;
  height: 100px;
}

.phone-wrapper-custom {
  display: flex;
  gap: 10px;
}

.country-code-custom {
  width: 35%;
  appearance: none;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}

input[type="tel"] {
  width: 65%;
}

.consent-wrapper-custom {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: #333;
  line-height: 1.4;
}

.form-enquire-btn-custom {
  align-self: flex-start;
  background: linear-gradient(45deg, #004aad, #26cb2d);
  border: none;
  color: white;
  font-size: 1rem;
  font-weight: bold;
  font-style: italic;
  padding: 10px 25px;
  border-radius: 25px;
  cursor: pointer;
  transition: background 0.3s ease;
  align-self: center;
}

.form-enquire-btn-custom:hover {
  background: linear-gradient(45deg, #003a8b, #1fa527);
}





.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup-content {
  background: white;
  padding: 30px 40px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  animation: popupFadeIn 0.4s ease-in-out;
}

.popup-content h3 {
  color: #004aad;
  margin-bottom: 10px;
}

.popup-content button {
  background: #004aad;
  color: white;
  border: none;
  padding: 10px 20px;
  margin-top: 15px;
  border-radius: 8px;
  cursor: pointer;
}


@keyframes popupFadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}




@media (min-width: 1900px) {
  .form-wrapper-custom {
    margin-left: clamp(60px, 5vw, 100px);
    bottom: -60px; 
    transform: translateY(-60px); 
    min-height: 650px; 
  }

}


@media (min-width: 1600px) {
  .form-box-custom {
    padding: 40px clamp(30px, 3vw, 60px);
    max-width: 100%;
    box-sizing: border-box;
  }

  .form-box-custom h2 {
    font-size: clamp(2rem, 2vw, 2.5rem);
  }

  input,
  textarea,
  select {
    font-size: clamp(1rem, 1vw, 1.1rem);
  }

  .form-enquire-btn-custom {
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    padding: 12px 30px;
  }
}



@media (max-width: 991px) {
  
  .form-bg-wrapper {
    background: none !important;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
    min-height: auto;
  }

  .form-wrapper-custom {
    flex-direction: column;
    position: static;
    max-width: 95%;
    margin: auto;
    border-radius: 20px 20px 0 0;
  }

  .form-box-custom {
    padding: 30px 20px;
    border-radius: 20px 20px 0 0;
  }

  .form-box-custom h2 {
    font-size: 1.8rem;
  }

  .phone-wrapper-custom {
    flex-direction: column;
  }

  .country-code-custom,
  input[type="tel"] {
    width: 100%;
  }

  .form-enquire-btn-custom {
    font-size: 0.95rem;
    padding: 10px 20px;
  }
}

@media (max-width: 768px) {
  .enquiry-section-custom {
    box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.08); 
    position: relative;
    z-index: 1;
    margin-top: -60px;
  }

  .form-wrapper-custom {
    flex-direction: column;
    border-radius: 20px 20px 0 0;
    max-width: 95%;
    margin: auto;
    position: static;
    margin-top: 60px;
  }

  .form-box-custom {
    padding: 30px;
    border-radius: 20px 20px 0 0;
  }

  .phone-wrapper-custom {
    flex-direction: column;
  }

  .country-code-custom,
  input[type="tel"] {
    width: 100%;
  }

  .form-bg-wrapper {
    background: none !important;
    border-radius: 20px 20px 0 0;
    min-height: auto;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
  }
}


@media (max-width: 576px) {
  
  .form-box-custom h2 {
    font-size: 1.5rem;
  }

  .form-enquire-btn-custom {
    font-size: 0.9rem;
    width: 100%;
  }

  textarea {
    height: 90px;
  }
}
