/* Shared feedback overlays preserve the dimensions of the form grid. */
.form-error-host { position: relative; }
.form-error-host .form-error-info {
  position: absolute; right: 1px; bottom: 2px;
  width: 40px; height: 40px; padding: 0; border: 0;
  display: grid; place-items: center; background: transparent;
  color: #a02f21; cursor: pointer; z-index: 2;
}
.form-error-info span {
  width: 19px; height: 19px; display: grid; place-items: center;
  border: 2px solid currentColor; border-radius: 50%;
  font: bold 14px/1 Georgia, serif;
}
.form-error-host :is(input,textarea)[aria-invalid="true"] { border-color: #a02f21; padding-right: 42px; }
.form-error-info:focus-visible { outline: 2px solid #a02f21; outline-offset: -3px; }
.form-error-popup {
  position: fixed; z-index: 2000; padding: 12px 14px;
  background: #fffaf4; color: #542415; border: 1px solid #a02f21;
  border-radius: 4px; box-shadow: 0 4px 18px #163f4329;
  font: 15px/1.45 Arial, sans-serif; overflow-wrap: anywhere;
  max-height: calc(100dvh - 24px); overflow: auto;
}
.form-error-popup[hidden] { display: none; }
[data-scroll-hint] { position: relative; }
/* Brief cue at the original lower centre of the hero. */
.form-scroll-hint {
  position: absolute; bottom: 10px; left: 50%;
  width: clamp(64px, 8vw, 88px); height: clamp(72px, 9vw, 99px);
  pointer-events: none; z-index: 3;
  color: #f2be45; filter: drop-shadow(0 2px 3px #163f43);
  transform: translate(-50%, 0px); opacity: 0;
  animation: form-scroll-cue 3.6s ease-in-out both;
}
.form-scroll-hint svg { width: 100%; height: 100%; }
@keyframes form-scroll-cue {
  0% { opacity: 0; transform: translate(-50%, -8px); }
  15% { opacity: 1; transform: translate(-50%, 0px); }
  38% { opacity: 1; transform: translate(-50%, -4px); }
  65% { opacity: 1; transform: translate(-50%, 6px); }
  78% { opacity: 1; transform: translate(-50%, 3px); }
  100% { opacity: 0; transform: translate(-50%, 8px); }
}
@keyframes form-scroll-fade {
  0%,100% { opacity: 0; }
  15%,78% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .form-scroll-hint { animation-name: form-scroll-fade; }
}
.form-thanks { max-width: 720px; margin: 0 auto; padding: 64px 24px; }
.form-thanks h1 { font-size: clamp(30px,5vw,48px); line-height: 1.12; }
.form-thanks p { margin-block: 18px; overflow-wrap: anywhere; }
.form-thanks .form-reference { font-size: 22px; letter-spacing: .06em; }
