/* ---- "Request a Tour" lead form, shared by every property page ----
   Lives in the Leasing Contacts section. Tokens (--gold, --dark-green, ...)
   come from the property page's own :root block, so this file inherits the
   brand palette rather than restating it. */

.lead-form { margin-top: 30px; max-width: 46rem; }

.lead-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.lead-field { display: flex; flex-direction: column; gap: 7px; }
.lead-field label {
  font-family: var(--font-sans, 'Raleway', sans-serif);
  font-size: 10px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold, #BFA56B);
}
.lead-field input {
  font-family: var(--font-sans, 'Raleway', sans-serif);
  font-size: 15px; color: var(--ink, #1a1a1a);
  background: var(--white, #fff);
  border: 1px solid var(--rule, rgba(12,53,25,0.12));
  border-radius: 2px; padding: 13px 14px; width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.lead-field input::placeholder { color: #aaa; }
.lead-field input:focus {
  outline: none;
  border-color: var(--gold, #BFA56B);
  box-shadow: 0 0 0 3px rgba(191,165,107,0.18);
}
.lead-field input:disabled { background: #f4f4f2; color: #999; }

/* Invalid state is only applied after a submit attempt, never while typing. */
.lead-form.was-submitted .lead-field input:invalid,
.lead-field input[aria-invalid="true"] {
  border-color: #a8322b;
  box-shadow: 0 0 0 3px rgba(168,50,43,0.12);
}
.lead-error:empty { display: none; }
.lead-error {
  font-size: 12px; color: #a8322b; letter-spacing: 0.02em;
}

.lead-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 24px; }
.lead-submit {
  font-family: var(--font-sans, 'Raleway', sans-serif);
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  background: var(--dark-green, #0C3519); color: var(--white, #fff);
  border: 0; border-radius: 999px; padding: 16px 32px; cursor: pointer;
  transition: background 0.25s ease, opacity 0.25s ease;
}
.lead-submit:hover { background: #0a2c15; }
.lead-submit[disabled] { opacity: 0.6; cursor: default; }

.lead-note {
  font-size: 12px; color: var(--text-gray, #888); letter-spacing: 0.02em;
  margin: 16px 0 0; max-width: 42ch;
}

/* Screen-reader-only live region + the spam honeypot. */
.lead-status:empty { display: none; }
.lead-status {
  font-size: 13.5px; color: var(--text-dark, #58595B); margin: 14px 0 0;
}
.lead-status[data-state="error"] { color: #a8322b; }
.lead-hp {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden; opacity: 0;
}

/* ---- Success panel, swapped in after a completed submission ---- */
.lead-done {
  border: 1px solid var(--rule, rgba(12,53,25,0.12));
  border-radius: 24px 0;
  background: var(--white, #fff);
  padding: 32px 30px; margin-top: 30px; max-width: 46rem;
}
.lead-done h3 {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 26px; font-weight: 400; color: var(--dark-green, #0C3519);
  margin: 0 0 10px; line-height: 1.2;
}
.lead-done p {
  font-size: 15.5px; line-height: 1.7; color: var(--text-dark, #58595B);
  margin: 0; font-weight: 300;
}

.lead-done p + p { margin-top: 18px; }

/* Optional booking step, shown only when a scheduler URL is configured. */
.lead-book {
  display: inline-block; margin-top: 14px;
  font-family: var(--font-sans, 'Raleway', sans-serif);
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  background: var(--dark-green, #0C3519); color: var(--white, #fff);
  text-decoration: none; padding: 15px 30px; border-radius: 999px;
  transition: background 0.25s ease;
}
.lead-book:hover { background: #0a2c15; }

@media (max-width: 620px) {
  .lead-grid { grid-template-columns: 1fr; }
  .lead-submit { width: 100%; }
  .lead-book { display: block; text-align: center; }
}
