/* === Form Container === */
body.web-to-lead {
  background-color: #2d3135;
  font-family: 'Lato', sans-serif;
  color: #ffffff;
}

/* === Form Headings & Labels === */
body.web-to-lead h1,
body.web-to-lead h2,
body.web-to-lead h3,
body.web-to-lead label.control-label {
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 8px;
}

/* === Input Fields & Selects === */
body.web-to-lead input.form-control,
body.web-to-lead select.form-control,
body.web-to-lead textarea.form-control {
  background-color: #20262b;
  color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  font-size: 16px;
  transition: border-color 0.3s;
}

/* === Fix Bootstrap Select Dropdown === */
body.web-to-lead .bootstrap-select .btn-default {
  background-color: #20262b;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  /*padding: 20px;*/
  padding-left: 15px;
  padding-right: 10px;
  /*margin-top: 4px;*/
  /*margin-bottom: 4px;*/
  padding-bottom: 7px;
  padding-top: 7px;
  height: 35px;
}

body.web-to-lead .bootstrap-select.form-control{
    /*padding-left: 10px;*/
    /*padding-right: 10px;*/
    background-color: #20262b;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding-top:4px;
    padding-bottom: 4px;
}

body.web-to-lead input.form-control:focus,
body.web-to-lead select.form-control:focus,
body.web-to-lead textarea.form-control:focus,
body.web-to-lead .bootstrap-select .btn-default:focus {
  border-color: #f5f5f5; /* Slightly brighter border */
  outline: none;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.2); /* Soft glow */
  transition: all 0.3s ease;
}

/* === Dropdown Menu Color === */
body.web-to-lead .dropdown-menu.inner {
  background-color: #2b2f36;
  color: #ffffff;
}
body.web-to-lead .dropdown-menu > li > a {
    color: #ffffff;
}
body.web-to-lead .dropdown-menu > li > a:hover {
    background-color: rgb(44, 44, 44);
}
body.web-to-lead .dropdown-menu > .active > a {
    background-color: rgb(0, 0, 0);
}


body.web-to-lead .form-control {
    border-radius: 8px;
}

  /* === Submit Button === */
body.web-to-lead #form_submit {
    background-color: #ffffff;
    color: #20262b;
    font-size: 18px;
    font-weight: bold;
    padding: 12px 35px;
    border-radius: 30px;
    border: none;
    box-shadow: 0px 12px 18px rgba(255, 255, 255, 0);
    transition: all 0.3s ease-in-out !important;
  }
  
  body.web-to-lead #form_submit:hover {
    box-shadow: 0px 12px 18px rgba(221, 221, 221, 0.3);
    transform: translateY(-3px) !important;
    transition: all 0.3s ease !important;
  }

  body.web-to-lead .submit-btn-wrapper {
  text-align: center;
}

/* === Media Queries for Responsive Layout in Iframe === */
@media (max-width: 767px) { /* Targeting typical mobile screen widths */
  body.web-to-lead .col-md-6 {
    width: 50% !important;
    display: inline-block !important;
    vertical-align: top;
    padding-right: 5px;
    padding-left: 5px;
  }
  body.web-to-lead .col-md-12 {
    width: 100% !important;
    display: block !important;
    padding-right: 5px;
    padding-left: 5px;
  }

  /* Reduce font size for input fields, selects, and textareas on mobile */
  body.web-to-lead input.form-control,
  body.web-to-lead select.form-control,
  body.web-to-lead textarea.form-control,
  body.web-to-lead .bootstrap-select .btn-default {
    font-size: 14px !important; /* Reduce by 2px from your original 16px */
  }

  /* You might also want to adjust the font size of labels if they appear too large */
  body.web-to-lead label.control-label {
    font-size: 14px !important; /* Reduce if needed */
  }

  /* Adjust padding slightly if the smaller font creates too much space */
  body.web-to-lead input.form-control,
  body.web-to-lead select.form-control,
  body.web-to-lead textarea.form-control {
    padding: 18px !important; /* Slightly reduce padding */
  }
  body.web-to-lead .bootstrap-select .btn-default {
    /* Adjust padding accordingly */
    padding-left: 13px !important;
    padding-right: 8px !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    height: 33px !important;
  }
}
/* === Checkbox Label Text === */
body.web-to-lead .checkbox label,
body.web-to-lead .checkbox-inline label {
  color: #ffffff;
}

/* Target tablet and larger screens */
@media (min-width: 768px) {
  body.web-to-lead .col-md-6 {
    width: 50% !important;
    display: inline-block !important;
    vertical-align: top;
  }
  body.web-to-lead .col-md-12 {
    width: 100% !important;
    display: block !important;
  }
}