/* Canterivo 1.9.4: bezpieczne formularze. */
.form-field-error {
  display: block;
  margin-top: .38rem;
  color: #a32222;
  font-size: .78rem;
  font-weight: 750;
  line-height: 1.35;
}

:is(input, select, textarea)[aria-invalid="true"] {
  border-color: #b52b2b !important;
  box-shadow: 0 0 0 3px rgba(181, 43, 43, .14) !important;
}

form[data-safe-form-busy="1"] :is(button[type="submit"], input[type="submit"]) {
  cursor: wait;
  opacity: .72;
  pointer-events: none;
}

.safe-form-spinner {
  display: inline-block;
  width: .85rem;
  height: .85rem;
  margin-inline-start: .45rem;
  vertical-align: -.1rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: safe-form-spin .7s linear infinite;
}

.form-draft-notice {
  margin: 0 0 .9rem;
  padding: .72rem .85rem;
  color: #26483e;
  background: #eef7f2;
  border: 1px solid #a9cabb;
  border-radius: .72rem;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.4;
}

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

@media (prefers-reduced-motion: reduce) {
  .safe-form-spinner { animation: none; }
}
