/* Lead form (replaces WPForms modern styles + Choices.js). Brand colors come from theme-settings.css. */
.ld-form-container { width: 100%; }
.ld-form-grid { display: flex; flex-wrap: wrap; column-gap: 3%; row-gap: 18px; }
.ld-field { margin: 0; padding: 0; border: 0; min-width: 0; position: relative; }
.ld-half { flex: 0 0 48.5%; }
.ld-full { flex: 0 0 100%; }
@media (max-width: 600px) { .ld-half { flex-basis: 100%; } }

.ld-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.ld-form input[type=text],
.ld-form input[type=email],
.ld-form input[type=tel],
.ld-form select,
.ld-form textarea,
.ld-multi > summary {
  display: block;
  width: 100%;
  height: 43px;
  margin: 0;
  padding: 0 14px;
  font: inherit;
  font-size: 16px;
  line-height: 41px;
  color: #2d2d2d;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .35);
  border-radius: 3px;
  box-sizing: border-box;
  box-shadow: none;
}
.ld-form ::placeholder { color: #666; opacity: 1; }
.ld-form textarea { height: 120px; padding: 10px 14px; line-height: 1.4; resize: vertical; }

/* Select and multi-select share the caret. */
.ld-form select,
.ld-multi > summary {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.ld-form select:invalid { color: #666; }
.ld-form select option { color: #2d2d2d; }

.ld-multi > summary { list-style: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #666; }
.ld-multi > summary::-webkit-details-marker { display: none; }
.ld-multi.has-value > summary { color: #2d2d2d; }
.ld-multi[open] > summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.ld-multi fieldset {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px 0;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .25);
  border-top: 0;
  border-radius: 0 0 3px 3px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
}
.ld-multi fieldset label { display: flex; align-items: center; gap: 10px; margin: 0; padding: 7px 14px; font-size: 15px; color: #2d2d2d; cursor: pointer; }
.ld-multi fieldset label:hover { background: rgba(98, 107, 62, .08); }
.ld-multi input[type=checkbox] { width: 16px; height: 16px; margin: 0; accent-color: var(--cb-primary, #626b3e); }

.ld-form input:focus-visible,
.ld-form select:focus-visible,
.ld-form textarea:focus-visible,
.ld-multi > summary:focus-visible { outline: 2px solid var(--cb-primary, #626b3e); outline-offset: 1px; }

/* Visible labels and per-field errors (lead-form.js fills the messages). */
.ld-label { display: block; margin: 0 0 4px; font-size: 15px; font-weight: 600; line-height: 1.4; color: #2d2d2d; }
.ld-optional { font-weight: 400; color: #666; }
.ld-error { margin: 6px 0 0; font-size: 14px; line-height: 1.4; color: #d63637; }
.ld-error[hidden] { display: none; }
.ld-form input[aria-invalid=true],
.ld-form select[aria-invalid=true],
.ld-form textarea[aria-invalid=true] { border-color: #d63637; box-shadow: inset 0 0 0 1px #d63637; }

.ld-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { flex: 0 0 100%; }
.cf-turnstile:empty { display: none; }

.ld-form-status { min-height: 1.4em; margin: 12px 0 0; }
.ld-form-status.is-error { color: #d63637; font-weight: 600; }
.ld-form-status a { color: inherit; }
.ld-form-status:empty { min-height: 0; }
.ld-submit { margin-top: 10px; }
.ld-submit button { cursor: pointer; }
.ld-reassure { margin: 12px 0 0; font-size: 15px; line-height: 1.6; color: #2d2d2d; }
.ld-submit button[disabled] { opacity: .6; cursor: progress; }
