/* AIM'S FORM ERROR STANDARD (14 November 2026; aa-forms/errors.js draws it, aim-sops form-errors.md describes it).
   A field that needs attention: its heading turns red and a red tooltip beside it says what to do (under the field,
   pointing up, where it shows no heading, and on a phone); its control gets a red edge. Fields never change size, so
   nothing overlaps. One summary line sits under the form's button, which never moves.

   A site matches its brand by setting these on :root (or on one form) in its own stylesheet, never by editing this
   file; each falls back to the value after it here. The red must stay one that white words read on (4.5:1 or more).
     --aa-form-bad       #C92A2A   the heading, the edge, the tooltip's ground
     --aa-form-bad-ink   #fff      the tooltip's words
     --aa-form-note-bg   #FDF3F3   the summary line's ground
     --aa-form-note-ink  #3a1d1d   the summary line's words
     --aa-form-offset    140px     room under a sticky header when the browser itself scrolls to a field */
.aa-needs { scroll-margin-top: var(--aa-form-offset, 140px); }
.aa-head, .aa-head label, .aa-head abbr, .aa-head span:not(.aa-tip) { color: var(--aa-form-bad, #C92A2A) !important; }
.aa-needs input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), .aa-needs select, .aa-needs textarea {
  border-color: var(--aa-form-bad, #C92A2A) !important; box-shadow: 0 0 0 1px var(--aa-form-bad, #C92A2A) !important; }
.aa-needs input[type="checkbox"], .aa-needs input[type="radio"] { outline: 1px solid var(--aa-form-bad, #C92A2A); outline-offset: 1px; }
.aa-tip { position: relative; display: inline-block; margin-left: 12px; padding: 4px 10px; border-radius: 4px;
  background: var(--aa-form-bad, #C92A2A); color: var(--aa-form-bad-ink, #fff) !important; font-size: 13px; font-weight: 600;
  font-style: normal; line-height: 1.3; text-transform: none; letter-spacing: 0; vertical-align: middle;
  white-space: normal; box-shadow: 0 2px 6px rgba(0,0,0,.15); animation: aa-tip-in .18s ease-out; }
.aa-tip::before { content: ""; position: absolute; left: -6px; top: 50%; margin-top: -6px;
  border-style: solid; border-width: 6px 6px 6px 0; border-color: transparent var(--aa-form-bad, #C92A2A) transparent transparent; }
/* Under the field, pointing up: where it has no heading to sit beside, and on a phone. */
.aa-tip--under { display: table; margin: 8px 0 0; }
.aa-tip--under::before { left: 14px; top: -6px; margin-top: 0; border-width: 0 6px 6px 6px;
  border-color: transparent transparent var(--aa-form-bad, #C92A2A) transparent; }
@media (max-width: 767px) {
  .aa-tip { display: table; margin: 8px 0 0; }
  .aa-tip::before { left: 14px; top: -6px; margin-top: 0; border-width: 0 6px 6px 6px;
    border-color: transparent transparent var(--aa-form-bad, #C92A2A) transparent; }
}
@keyframes aa-tip-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .aa-tip { animation: none; } }

/* The summary line under a form's button. */
.aa-form-note { margin: 12px 0; padding: 10px 14px; border-left: 4px solid var(--aa-form-bad, #C92A2A);
  background: var(--aa-form-note-bg, #FDF3F3); color: var(--aa-form-note-ink, #3a1d1d); font-size: 15px; text-align: left; }
.aa-form-note[hidden] { display: none; }

/* Elementor forms (copied WordPress pages). A label draws its required "*" after its words (::after): the tooltip
   goes after the "*", and on a phone on its own line under the label. The summary takes the form's whole row. */
.elementor-field-label.aa-head { display: flex !important; flex-wrap: wrap; align-items: center; }
.elementor-field-label.aa-head::after { order: 1; }
.elementor-field-label.aa-head .aa-tip { order: 3; }
@media (max-width: 767px) {
  .elementor-field-label.aa-head::before { content: ""; order: 2; flex-basis: 100%; height: 0; }
}
.elementor-form .aa-form-note { flex: 0 0 100%; width: 100%; margin: 12px 0 0; }
/* A phone-mask plugin's own format message, in the same look. */
.elementor-form .mask-error { color: var(--aa-form-bad, #C92A2A); font-size: 13px; font-weight: 600; }
