/* Ayala Builder Co — lead forms, styled to match the original Gravity Forms */
form.lead-form {
  width: 100%;
  margin: 0;
  font-family: "Open Sans", sans-serif;
  box-sizing: border-box;
}
form.lead-form *, form.lead-form *::before, form.lead-form *::after { box-sizing: border-box; }

form.lead-form .lf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 2%;
}

form.lead-form input,
form.lead-form textarea {
  display: block;
  width: 100% !important;
  height: 45px;
  margin: 0;
  padding: 8px !important;
  font-family: "Open Sans", sans-serif !important;
  font-size: 15px !important;
  font-weight: 400;
  line-height: 1.5;
  color: #222 !important;
  background: #f8f5f2 !important;
  border: 1px solid rgba(85, 85, 85, 0.333) !important;
  border-radius: 0 !important;
  box-shadow: none;
  outline: none;
}
form.lead-form textarea { height: auto; min-height: 96px; resize: vertical; }
form.lead-form input::placeholder,
form.lead-form textarea::placeholder { color: #757575; opacity: 1; }
form.lead-form input:focus,
form.lead-form textarea:focus { border-color: #765e41 !important; }
form.lead-form .field-invalid { border-color: #c02b0a !important; }

form.lead-form button[type="submit"] {
  display: block;
  width: 100%;
  height: auto;
  margin: 10px 0 8px;
  padding: 10px 20px !important;
  font-family: "Roboto", "Open Sans", sans-serif !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: 27px;
  color: #fff !important;
  background: #765e41 !important;
  border: 1px solid transparent !important;
  border-radius: 0 !important;
  cursor: pointer;
  text-transform: none;
}
form.lead-form button[type="submit"]:hover { background: #69543a !important; }
form.lead-form button[type="submit"]:disabled { opacity: 0.7; cursor: default; }

/* Full form (main contact form): labels above fields */
form.lead-form.lf-full {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 2%;
  row-gap: 16px;
}
form.lead-form.lf-full .lf-span2 { grid-column: 1 / -1; }
form.lead-form.lf-full fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
form.lead-form.lf-full .lf-label {
  display: block;
  padding: 0;
  margin: 0 0 8px;
  font-family: "Roboto", "Open Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  color: #111;
}
form.lead-form .lf-req { color: #c02b0a; font-size: 13px; padding-left: 2px; }

/* Compact form (sidebar + popup): placeholders only, white fields */
form.lead-form.lf-compact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
form.lead-form.lf-compact input {
  font-size: 16px !important;
  background: #fff !important;
}
form.lead-form.lf-compact button[type="submit"] {
  font-family: "Open Sans", sans-serif !important;
  margin: 0;
}

form.lead-form .form-status {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 3px;
  font-size: 14px;
  line-height: 1.4;
}

form.lead-form .form-status:empty {
  display: none;
}

form.lead-form .form-status.is-pending {
  background: #f3efe9;
  color: #69543A;
}

form.lead-form .form-status.is-success {
  background: #e6f4ea;
  color: #1e7e34;
}

form.lead-form .form-status.is-error {
  background: #fdecea;
  color: #b3261e;
}

@media (max-width: 600px) {
  form.lead-form.lf-full { grid-template-columns: 1fr; }
  form.lead-form.lf-full > .lf-field { grid-column: 1 / -1; }
}
