/* =========================================
   Self-hosted contact form (contact-form.css)
   Loaded by contact.php only. Replaced the Wufoo embed 2026-07-30.
   ========================================= */

/* Honeypot. OFF-SCREEN, not display:none -- some bots skip hidden inputs
   but happily fill positioned ones. */
.lh-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lh-form .uk-legend {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark-navy);
}

.lh-form label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--dark-navy);
  margin-bottom: 6px;
}

.lh-form .lh-optional {
  font-weight: 400;
  color: #9aa0ab;
}

.lh-form .uk-input,
.lh-form .uk-select,
.lh-form .uk-textarea {
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lh-form .uk-input:focus,
.lh-form .uk-select:focus,
.lh-form .uk-textarea:focus {
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 3px rgba(165, 206, 60, 0.18);
  outline: none;
}

/* Invalid fields. The colour is backed up by the message text below the
   field, so this is never the only signal. */
.lh-form [aria-invalid="true"] {
  border-color: #d9534f;
}
.lh-form [aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(217, 83, 79, 0.15);
}

.lh-field-error {
  display: block;
  margin-top: 6px;
  color: #c9302c;
  font-size: 0.8rem;
}

.lh-form-error,
.lh-form-success {
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 24px;
  font-size: 0.95rem;
}
.lh-form-error {
  background: #fdecea;
  border-left: 4px solid #d9534f;
  color: #8a1f1a;
}
.lh-form-success {
  background: #f2f8e6;
  border-left: 4px solid var(--primary-accent);
  color: #3f5312;
}
.lh-form-success h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  color: #3f5312;
}
.lh-form-success p:last-child { margin-bottom: 0; }

/* Both button labels ship in the markup and swap on .is-busy, so the width
   never jumps and nothing has to be built in JS. */
.lh-submit {
  min-width: 210px;
}
.lh-submit .lh-submit-busy { display: none; }
.lh-submit.is-busy .lh-submit-idle { display: none; }
.lh-submit.is-busy .lh-submit-busy {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.lh-submit[disabled] {
  opacity: 0.8;
  cursor: progress;
}

.lh-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(26, 43, 58, 0.35);
  border-top-color: var(--dark-navy);
  border-radius: 50%;
  animation: lh-spin 0.7s linear infinite;
}
@keyframes lh-spin {
  to { transform: rotate(360deg); }
}

/* A frozen spinner conveys nothing, so slow it rather than stop it. */
@media (prefers-reduced-motion: reduce) {
  .lh-spinner { animation-duration: 2.4s; }
}
