/**
 * lead-form.css
 *
 * Shared styling for the three plain lead-capture forms — views/home-
 * value.php's step 2, views/mortgages.php's Loan Pre-Qualification
 * Request, and views/contact-us.php's Contact Us form. All three post to
 * an email-only endpoint (submit-home-value.php/submit-mortgage.php/
 * submit-contact.php) via js/lead-form.js's shared AJAX handler, so they
 * share one set of field/consent-checkbox/submit/success/error classes
 * here rather than three near-identical copies.
 *
 * Same palette/sizing as listing-detail.css's .ld-showing-* form (the
 * Request a Showing card this pattern is adapted from): #12233D text,
 * #DCE1E8 borders, #4B5A70 labels, #1E40AF accent.
 */

.lf-card {
  border: 1px solid #DCE1E8;
  border-radius: 8px;
  background: #F7F8FA;
  padding: 20px;
}

.lf-card-title {
  font-size: 18px;
  margin: 0 0 14px;
  color: #12233D;
}

.lf-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}

.lf-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lf-field--full {
  grid-column: 1 / -1;
}

.lf-field label {
  font-size: 11px;
  font-weight: 600;
  color: #4B5A70;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.lf-field input,
.lf-field textarea {
  box-sizing: border-box;
  width: 100%;
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid #DCE1E8;
  border-radius: 6px;
  color: #12233D;
  background: #FFFFFF;
  font-family: inherit;
}

.lf-field input {
  height: 42px;
}

.lf-field textarea {
  min-height: 80px;
  resize: vertical;
}

.lf-field input:focus,
.lf-field textarea:focus {
  outline: 2px solid #1E40AF;
}

/* Off-screen, not display:none, so a scripted bot submit still fills it
   in while a real visitor never sees or tabs to it — same technique and
   same "silently discard, no distinguishing response" handling as
   listing-detail.css's .ld-showing-honeypot / request-showing.php. */
.lf-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lf-consent {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.lf-consent input[type="checkbox"] {
  margin-top: 3px;
  flex: 0 0 auto;
}

.lf-consent label {
  font-size: 12px;
  line-height: 1.5;
  color: #4B5A70;
}

.lf-consent a {
  color: #1E40AF;
  text-decoration: underline;
}

.lf-submit {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 44px;
  font-size: 14px;
  font-weight: 700;
  background: #1E40AF;
  color: #FFFFFF;
  border: none;
  padding: 0 20px;
  border-radius: 6px;
  cursor: pointer;
}

.lf-submit:hover {
  background: #16327F;
}

.lf-submit:disabled {
  opacity: .6;
  cursor: default;
}

.lf-success {
  font-size: 15px;
  color: #1E8A4C;
  font-weight: 600;
  margin: 0;
}

.lf-error {
  grid-column: 1 / -1;
  font-size: 13px;
  color: #B3261E;
  margin: 0;
}

@media (max-width: 560px) {
  .lf-form {
    grid-template-columns: 1fr;
  }
}

/* ---- Agent contact block ---- */
/* layouts/agent-contact-block.php, included as-is on both
   views/mortgages.php and views/contact-us.php. */

.ac-block {
  border: 1px solid #DCE1E8;
  border-radius: 8px;
  background: #FFFFFF;
  padding: 20px;
}

.ac-name {
  font-size: 18px;
  font-weight: 800;
  color: #12233D;
}

.ac-brokerage {
  font-size: 14px;
  font-weight: 600;
  color: #1E40AF;
  margin-bottom: 16px;
}

.ac-addresses {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: #4B5A70;
  line-height: 1.5;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #DCE1E8;
}

.ac-contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.ac-contacts a {
  color: #12233D;
  font-weight: 600;
  text-decoration: none;
}

.ac-contacts a:hover {
  color: #1E40AF;
}
