/* The look of every lead form (audit, contact, landing pages). Linked last in <head>.
   `:not(#_)` outranks the theme's styles and the audit pages' own #page#2 styles. */
form[data-lead-form]:not(#_) .gform_fields { row-gap: 14px !important; }
form[data-lead-form]:not(#_) .gfield_required { display: none !important; }
form[data-lead-form]:not(#_) .gfield_label {
  margin-bottom: 6px !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}
form[data-lead-form]:not(#_) :is(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], select, textarea) {
  width: 100% !important;
  height: 44px !important;
  padding: 0 12px !important;
  background: #05080a !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  font-family: Arial, sans-serif !important;
  font-size: 16px !important; /* under 16px, iPhones zoom in when you tap a field */
}
form[data-lead-form]:not(#_):not(#_) textarea { height: 120px !important; padding: 12px !important; line-height: 1.5 !important; }
form[data-lead-form]:not(#_) :is(input, select, textarea):focus { border-color: #a100ff !important; outline: none !important; }
form[data-lead-form]:not(#_) :is(input[type="checkbox"], input[type="submit"]):focus-visible { outline: 2px solid #fff !important; outline-offset: 2px; }

/* Dropdowns: our own arrow, 16px from the edge */
form[data-lead-form]:not(#_):not(#_) select {
  -webkit-appearance: none !important;
  appearance: none !important;
  padding-right: 48px !important;
  background: #05080a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 16px center / 20px !important;
  text-overflow: ellipsis;
  cursor: pointer;
}
form[data-lead-form]:not(#_) select option { background: #05080a; color: #fff; }

/* Services checkboxes: two columns when there's room */
form[data-lead-form]:not(#_) .gfield_checkbox { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px 16px; }
form[data-lead-form]:not(#_) .gchoice { display: flex; align-items: center; gap: 10px; }
form[data-lead-form]:not(#_) .gchoice input {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  background: #05080a;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 5px;
  cursor: pointer;
}
form[data-lead-form]:not(#_) .gchoice input:checked {
  border-color: #a100ff;
  background: #a100ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 14px no-repeat;
}
form[data-lead-form]:not(#_) .gchoice label { margin: 0 !important; max-width: none !important; font-size: 15px !important; }

form[data-lead-form]:not(#_) .gform_footer { margin: 18px 0 0 !important; padding: 0 !important; }
form[data-lead-form]:not(#_) .gform_footer input[type="submit"] {
  width: 100% !important;
  height: 46px !important;
  margin: 0 !important;
  padding: 0 24px !important;
  line-height: 46px !important;
  border: none !important;
  border-radius: 500px !important;
  background: #a100ff !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  text-transform: none !important;
  cursor: pointer;
  transition: background 0.2s;
}
form[data-lead-form]:not(#_) .gform_footer input[type="submit"]:hover { background: #8a00db !important; }

/* The empty heading above the form adds a gap at the top of the card */
.gform_wrapper.gravity-theme .gform_heading:has(> .gform_description:only-child:empty) { display: none; }
