#mobile-logo {
  margin-bottom: 20px;
}

body {
  color: #829099; /* grey */
  background: rgba(9, 55, 94, 0.75);
  background-image: url(../images/headerimage2.webp);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-position: center top;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  font-family: ubuntu;
}

select {
  color: initial;
}
.gfield_select {
  font-size: 16px;
  line-height: 16px;
  padding-left: 8px;
  padding-right: 8px;
  background-color: #dddfe2;
  padding: 10px;
  border-radius: 5px;
}
.gfield_select {
  height: 40px;
}

.standout {
  color: #b32317; /* red */
}
.btn-xl {
  padding: 15px 25px;
  font-size: 20px;
}
.btn-primary {
  background: linear-gradient(#e22c1d, #b32317);
}
.btn-primary:hover {
  background: linear-gradient(#e22c1d, #b32317);
}
.serving-area {
  font-size: 18px;
}
#header {
  padding: 20px 0;
}
#header,
#why {
  background-color: #fff;
}
#testimonials {
  background-color: #1b2b56;
  color: #fff;
}
#main {
  color: #fff;
  background: rgba(9, 55, 94, 0.75);
}
#large-copy {
  color: #fff !important;
  padding-top: 20px;
}
#main,
#right {
  min-height: 500px;
}

#right {
  background-color: rgba(26, 41, 62, 1);
  height: 100%;
  padding-bottom: 20px;
  padding-top: 20px;
}

#footer {
  background-color: rgba(26, 33, 43, 1); /* dark grey/blue */
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: smaller;
}
#footer p {
  margin: 0;
}

#why h4 {
  color: #1b2b56;
}
#why p {
  line-height: 1.7;
}
#why .icon {
  min-width: 72px;
  padding-top: 10px;
}

.testimonial-block {
}
.faded {
  color: rgba(255, 255, 255, 0.5);
}
.testimonial-block blockquote {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  height: 280px;
  border-left: none;
  margin: 0;
  position: relative;
}
.testimonial-block blockquote p {
  margin-top: 53px;
}
/**
 * This image that overlays a transparent div has to have a position, otherwise
 * the opacity setting below bleeds through.  See
 * http://stackoverflow.com/questions/21516449/why-does-a-semi-transparent-background-shine-through-in-a-different-div
 **/
.person-image {
  position: relative;
  z-index: 100;
}

/*
http://stackoverflow.com/questions/20547819/vertical-align-with-bootstrap-3
.vcenter {
    display: inline-block;
    vertical-align: middle;
    float: none;
}
*/

.testimonial-block .openquote {
  position: absolute;
  top: 40px;
  left: 0px;
}
.testimonial-block .closequote {
  position: absolute;
  bottom: 10px;
  right: 0px;
}
.testimonial-block img {
  margin-top: -35px;
}

/** START --- CUSTOM GRAVITY FORMS STYLES **/
.gform_wrapper ul,
.gform_wrapper li {
  list-style-type: none;
  padding-left: 0;
}
.gform_wrapper input,
.gform_wrapper textarea {
  color: #333;
}
.gform_validation_container {
  display: none;
}
.ginput_container > *,
.ginput_container.ginput_complex input {
  width: 100%;
}

/** Inputs and spacing **/
.gfield,
.gform_body input {
  margin-bottom: 10px;
}
.gform_body .name_first input {
  margin-bottom: 20px;
}

/** Required asterisk for first and last name **/
.name_first label::after,
.name_last label::after {
  content: "  *";
}
.gfield_required::before {
  content: "  ";
}
/** General Input Styling **/
.gfield input {
  font-size: 16px;
  line-height: 16px;
  padding-left: 8px;
  padding-right: 8px;
  background-color: #dddfe2;
  padding: 10px;
  border-radius: 5px;
}
.gfield input[type="text"] {
  border-style: solid;
  border-width: 1px;
  border-color: #bbbbbb;
}
.gfield_label,
.gform_body label {
  font-size: 16px;
  padding-bottom: 3px;
  color: #ababab;
}
.gform_body {
  margin-top: 20px;
}
.gfield.field_sublabel_above > .gfield_label {
  display: none;
}
.gform_button.button {
  /** Red Buttonish stuff **/
  display: block;
  border-style: solid;
  /*behavior:url(/PIE.htc);*/
  border-radius: 5px;
  left: 0px;
  /*top:292px;*/
  z-index: 4;
  width: 100%;
  height: 51px;
  /*position:absolute;*/
  background: #b32317;
  -pie-background: B32317;
  box-shadow: none;
  text-shadow: none;
  color: #fff;
  border-width: 1px;
  border-color: #333333;
  font-size: 16px;
  line-height: 19px;
  font-weight: normal;
  font-family: Ubuntu;
  text-align: center;
  background-repeat: no-repeat;
}
.gform_button.button:hover {
  background: #b32317;
  box-shadow: none;
  color: #fff;
  cursor: pointer;
}
/** END --- CUSTOM GRAVITY FORMS STYLES **/

/* --- Gravity Forms Address Field Customizations --- */
/* Stack city and state vertically in the address field group */
.ginput_container_address.gform-grid-row {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ginput_container_address .gform-grid-col {
  width: 100% !important;
  max-width: 100% !important;
  display: block;
  margin-bottom: 10px;
}
/* Ensure address field labels are above their inputs */
.ginput_container_address .gform-field-label {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
  color: #ababab;
  font-weight: normal;
}
.ginput_container_address input,
.ginput_container_address select {
  margin-bottom: 0;
}
/* Remove extra margin from last address field */
.ginput_container_address .gform-grid-col:last-child {
  margin-bottom: 0;
}
/* Optional: Make sure the address field group doesn't get extra horizontal padding */
.ginput_container_address {
  padding-left: 0;
  padding-right: 0;
}

/* --- Fix address field labels below input and font weight --- */
.ginput_container_address .gform-grid-col {
  display: flex;
  flex-direction: column;
}
.ginput_container_address .gform-field-label {
  order: 0;
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 4px;
}
.ginput_container_address input,
.ginput_container_address select {
  order: 1;
}
/* Ensure the group label (e.g., Rental Property Address) is visible and styled like other labels */
.gfield--type-address > .gfield_label {
  display: block !important;
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 8px;
}

/* Match the height of the state select to the text fields in the address group */
.ginput_container_address select {
  height: 40px;
  min-height: 40px;
  box-sizing: border-box;
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 16px;
  border-radius: 5px;
  background-color: #dddfe2;
  border: 1px solid #bbbbbb;
}

/* --- Mobile Fixes --- */
/* Prevent horizontal scrolling */
body {
  overflow-x: hidden;
  width: 100%;
}

/* Override Bootstrap container padding */
.container {
  padding-right: 0 !important;
  padding-left: 0 !important;
}

/* Override Bootstrap container-fluid padding */
.container-fluid {
  padding-right: 0 !important;
  padding-left: 0 !important;
  overflow-x: hidden;
  width: 100%;
}

/* Fix header width and logo on mobile */
@media (max-width: 767px) {
  #header {
    padding: 20px 15px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  
  #header .logo img,
  #mobile-logo img {
    max-width: 100%;
    height: auto;
  }
  
  /* Ensure main content doesn't overflow */
  #main {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  
  /* Fix form container width */
  #right {
    width: 100%;
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }
  

  
  /* Ensure testimonials container doesn't overflow */
  #testimonials {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  
  /* Fix any potential grid issues */
  .row {
    margin-left: 0;
    margin-right: 0;
  }
  
  .col-xs-12,
  .col-sm-12,
  .col-md-12 {
    padding-left: 15px;
    padding-right: 15px;
  }
}
