/**
 * Form Validation Styles
 * Red error borders, glow, and animated alert badges
 */

.field.error input,
.field.error select,
.field.error textarea {
  border-color: #dc2626 !important;
  background-color: #fff9f9 !important;
}

.field.error input:focus,
.field.error select:focus,
.field.error textarea:focus {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.15) !important;
}

.error-msg {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #dc2626;
  margin-top: 6px;
  line-height: 1.3;
  animation: errorShake 0.3s ease;
}

.error-msg svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  fill: currentColor;
}

@keyframes errorShake {

  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-3px);
  }

  40%,
  80% {
    transform: translateX(3px);
  }
}