/* ==========================================================================
   LEAD FORM EXTRAS  (error text, submit spinner, Turnstile box)
   Added for the lead handler. The page design itself is in style.css / project.css.
   ========================================================================== */

/* Turnstile check: invisible unless Cloudflare needs the visitor to click, so it takes no space */
.lead-turnstile {
  width: 100%;
  margin: 0;
  min-height: 0;
}

/* Message under the fields ("Please enter a valid ... number") */
.form-error {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: #b3261e;
}

.form-error:empty {
  display: none;
}

/* Spinner shown on the button after the first click */
.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  vertical-align: -3px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: lead-spin .8s linear infinite;
}

@keyframes lead-spin {
  to { transform: rotate(360deg); }
}

/* Bot-trap fields: invisible to people, filled in by bots */
.hp-field {
  position: absolute;
  left: -99999px;
  top: -99999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* "Preview mode" note shown on the forms when the page is opened without PHP (Live Server) */
.form-preview-note {
  margin: 0;
  padding: 8px 10px;
  border-radius: 4px;
  background: #fff6dd;
  border: 1px solid #ecd9a0;
  font-size: 12px;
  line-height: 1.5;
  color: #6a5314;
}
