/* 2026-11-25: one look for form/validation messages on the whole site (linked from top.php) */
.af-err { max-width: 900px; margin: 0 auto 16px; padding: 14px 18px 12px 52px; position: relative; background: #fdf2f1; border: 1px solid #e3a8a2; border-radius: 6px; color: #a93226; text-align: left; line-height: 1.45; }
.af-err:before { content: "!"; position: absolute; left: 16px; top: 14px; width: 24px; height: 24px; line-height: 24px; border-radius: 50%; background: #c0392b; color: #fff; text-align: center; font-weight: 800; }
.af-err b { display: block; margin: 2px 0 6px; font-size: 15px; }
.af-err ul { margin: 0; padding-left: 0; list-style: none; }
.af-err li { margin: 2px 0; padding-left: 14px; position: relative; font-size: 14px; background: none !important; list-style: none; }
.af-err li:after { content: ""; position: absolute; left: 2px; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: #c0392b; }
.af-err li:before { display: none !important; }
.auth-card .af-err, .cab-card .af-err { margin-bottom: 14px; }
/* fields with an error (marked from the message list) */
.af-bad input[type=text], .af-bad input[type=password], .af-bad select, .af-bad textarea, .af-bad .select2-selection { border-color: #c0392b !important; background: #fffafa !important; box-shadow: 0 0 0 2px rgba(192,57,43,.12) !important; }
.af-bad .label, .af-bad > label { color: #c0392b !important; }
.sv-wrap.af-bad { outline: 2px solid rgba(192,57,43,.35); outline-offset: 6px; border-radius: 4px; }
/* services: highlight the service cards, not the optional extra-price inputs */
.sv-row.af-bad .sv-p input[type=text], .af-bad .sv-p input[type=text] { border-color: #c8c8c8 !important; background: #fff !important; box-shadow: none !important; }
.sv-wrap.af-bad { outline: none; }
.sv-wrap.af-bad .sv { border-color: #e3a8a2; background: #fffafa; }
.sv-wrap.af-bad .sv input[type=checkbox] { outline: 2px solid #c0392b; outline-offset: 1px; }
.sv-wrap.af-bad .sv:has(input[type=checkbox]:checked) { border-color: #507186; background: #eef3f6; }
