.modal-dialog {
  max-width: 470px; /* Reduce the width of the modal */
  margin: 20px auto; /* Adjust margin for spacing */
}

.modal-content1 {
  background-color: rgb(245, 189, 42);
  position: relative;
  overflow: hidden; 
  background-image: url('../images/icons/bffoteiconbg.webp');
  background-position: bottom center;
  background-repeat: no-repeat;
  background-size: 170%;
  padding-bottom: 120px;
}

.modal-content1::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px; 
  background-color: rgb(245, 189, 42); 
  z-index: -1; 
}

.form2 {
  height: 570px;
  overflow: hidden; 
}

.modal-header h3 {
  font-size: 18px; /* Reduce font size of the title */
}

.custom-input {
  height: 35px; /* Reduce input height */
  font-size: 14px; /* Adjust font size */
}

textarea.custom-input {
  height: 60px; /* Adjust textarea size */
}

.form2-button button {
  padding: 5px 15px; /* Adjust button padding */
  font-size: 14px; /* Adjust button font size */
}

#request_quote .modal-header {
  border-bottom: none;
  margin-bottom: 0;
}

.modal-footer {
  padding: 10px 20px;
  position: relative;
  bottom: 0;
  width: 100%;
}

.modal-footer button {
  margin-right: 10px;
}

@media (max-width: 768px) {
  .modal-footer {
    flex-direction: column;
    text-align: center;
  }

  .modal-footer button {
    margin-bottom: 10px;
  }
}


input.form-control {
  width: 100%;
  padding-left: 10px;
  text-align: left;

}


.form-control::placeholder {
  text-align: left;
  opacity: 0.6;
}


textarea.form-control {
  width: 90%;

}

input.form-control {
  width: 60%;
}


.modal-footer {
  text-align: left !important;
}


.form2-button .btn-primary {
  margin-top: 20px;
}

.form2-button .btn-default {
  margin-top: 20px;
  
}

.recaptcha-container-form1 {
  transform: scale(0.7);
}

.recaptcha-small {
  transform: scale(0.8);

}

.input-full-width {
  width: 100% !important;
  height: 40px;
  padding-left: 10px;
  text-align: left;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.contactForm {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


.form-group {
  margin-bottom: 20px;
}


.form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}


.error-msg {
  color: red;
  font-size: 12px;
  display: block;
  margin-top: 5px;
}


.boxed-btn {
  background-color: #007bff;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.boxed-btn:hover {
  background-color: #0056b3;
}

.captcha .g-recaptcha {
  transform: scale(0.85);
}

.container1 {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  min-height: 490px;
  margin: 0 auto;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  background-image: url('images/contactbgg.jpg');
  background-repeat: no-repeat;
  background-size: cover;
}


.form-container1 {
  flex: 1;
  max-width: 50%;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


.custom-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}


.custom-contact-form {
  max-width: 800px;
  margin: 0 auto;
}


.image-container1 {
  flex: 1;
  max-width: 40%;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-container1 img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}


@media (max-width: 768px) {
  .container1 {
    flex-direction: column;
  }

  .form-container1,
  .image-container1 {
    max-width: 100%;
  }
}

.captcha {
  padding-left: 20px;
}


.modal-footer {
  padding: 10px 20px;
  position: relative;
  bottom: 0;
  width: 100%;

}

.modal-footer button {
  margin-right: 10px;
}

@media (max-width: 768px) {
  .modal-footer {
    flex-direction: column;
    text-align: center;
  }

  .modal-footer button {
    margin-bottom: 10px;
  }
}


/* Limit input field size and align placeholder */
.form-control {
  width: 50%;
  /* Set input width to half of the container */
  padding-left: 10px;
  /* Optional: Spacing inside the input field */
  text-align: left;
  /* Align text and placeholder to the left */
  box-sizing: border-box;
  /* Ensure padding doesn't increase total width */
}

/* Placeholder styling */
.form-control::placeholder {
  text-align: left;
  opacity: 0.6;
  /* Slightly dim the placeholder text */
}

/* Optional: Uniform styling for textarea */
textarea.form-control {
  width: 60%;

}

input.form-control {
  width: 60%;
}

.form2-button {
  display: flex;
  /* Enable flexbox */
  justify-content: flex-start;
  /* Force alignment to the left */
  gap: 10px;
  /* Space between buttons */
  width: 100%;
  /* Ensure full width of the container */
  padding: 10px;
  /* Add padding for aesthetics */
}

.modal-footer {
  text-align: left !important;
}


.form2-button .btn-primary {
  margin-right: 180px;
  margin-top: 20px;
}

.form2-button .btn-default {
  margin-top: 20px;
}

.recaptcha-container-form1 {
  transform: scale(0.7);
}

.full-width {
  width: 100%;
}

.recaptcha-small {
  transform: scale(0.8);
  /* Scale down to 80% */
  /* Keep it aligned to the top-left corner */
}

.input-full-width {
  width: 100% !important;
  height: 40px;
  /* Make input fields take full width */
  padding-left: 10px;
  /* Optional: Add padding for better spacing */
  text-align: left;
  /* Align text to the left */
  box-sizing: border-box;
  /* Ensure padding doesn't increase total width */
  border: 1px solid #ccc;
  /* Define a light gray border */
  border-radius: 4px;
  /* Optional: Rounded corners for the input */
}

.contactForm {
  max-width: 600px;
  margin: 0 auto;
  /* Centers the form */
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Form field spacing */
.form-group {
  margin-bottom: 20px;
}

/* Full-width inputs */
.form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Error messages */
.error-msg {
  color: red;
  font-size: 12px;
  display: block;
  margin-top: 5px;
}

/* Button styling */
.boxed-btn {
  background-color: #007bff;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.boxed-btn:hover {
  background-color: #0056b3;
}

.captcha .g-recaptcha {
  transform: scale(0.85);
  transform-origin: 0 0;
}

.captcha-align-left {
  text-align: left;
}


/* .container1 {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  min-height: 490px;
  margin: 0 auto;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  background-image: url('images/contactbgg.jpg');
  background-repeat: no-repeat;
  background-size: cover;
} */

/* Form container */
.form-container1 {
  flex: 1;
  max-width: 50%;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Input fields */
.custom-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

/* Form container styling */
.custom-contact-form {
  max-width: 800px;
  margin: 0 auto;
}

/* Image container */
.image-container1 {
  flex: 1;
  max-width: 40%;
  /* Adjust width */
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-container1 img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Adjust form width for smaller screens */
@media (max-width: 768px) {
  .container1 {
    flex-direction: column;
  }

  .form-container1,
  .image-container1 {
    max-width: 100%;
  }
}

.captcha {
  padding-left: 20px;
}

/* Media query for mobile devices (max-width: 768px) */
@media (max-width: 768px) {
  /* Remove padding for modal-related elements */
  .modal-dialog {
    padding: 0; /* Remove padding */
  }

  .modal-content1 {
    padding: 50px; /* Remove padding */
  }

  .form2 {
    padding: 0; /* Remove padding */
  }

  .modal-header h3 {
    padding: 0; /* Remove padding */
  }

  .form2-button button {
    padding: 0; 
  }

  .modal-footer {
    padding: 0; 
    flex-direction: column; 
    text-align: center; 
  }

  .modal-footer button {
    margin-bottom: 10px; 
  }

  .container1 {
    padding: 0; 
    flex-direction: column; 
  }

  .form-container1,
  .image-container1 {
    max-width: 100%; 
    padding: 0; 
  }

  .image-container1 img {
    width: 100%; /* Ensure image takes full width */
    height: auto;
  }

  .custom-input {
    padding: 0; 
    width: 100%;
  }

  .captcha-align-left {
    padding-top: 0; /* Remove padding */
    text-align: center; /* Center the CAPTCHA */
  }

  .g-recaptcha {
    transform: scale(0.5 ); /* Scale down CAPTCHA */
    transform-origin: 0 0; /* Align to the top-left */
  }

  .form-group {
    margin-bottom: 10px; /* Adjust margin to ensure elements aren't too spaced out */
  }

  .boxed-btn {
    padding: 0; /* Remove padding */
  }

  .input-full-width {
    padding-left: 0; /* Remove padding */
  }

  .captcha {
    padding-left: 0; /* Remove padding */
  }
}
