@keyframes efx-field-error-pulse {
    0% { box-shadow: inset 0 0 10px rgba(236, 133, 30, 0.18), 0 0 0 1px rgba(255, 77, 79, 0.2); }
    45% { box-shadow: inset 0 0 24px rgba(236, 133, 30, 0.36), 0 0 0 2px rgba(255, 77, 79, 0.48); }
    100% { box-shadow: inset 0 0 15px rgba(236, 133, 30, 0.2), 0 0 0 1px rgba(255, 77, 79, 0.45); }
}

.efx-field-invalid,
.efx-field-error input,
.efx-field-error textarea,
.efx-field-error select {
    border-color: #ff4d4f !important;
    box-shadow: inset 0 0 15px rgba(236, 133, 30, 0.2), 0 0 0 1px rgba(255, 77, 79, 0.45) !important;
    animation: efx-field-error-pulse 0.48s cubic-bezier(0.25, 1, 0.5, 1) both;
    outline: none !important;
}

.efx-field-error label,
.efx-field-invalid + label {
    color: #ff9b9b !important;
    transition: color 0.25s ease;
}

.efx-form-protection-error,
.efsc-form-status:not(:empty),
.efss-form-status.efss-fail {
    color: #ff9b9b !important;
    font-family: Montserrat, system-ui, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    margin-top: 12px !important;
    text-align: center !important;
    animation: efx-message-in 0.35s cubic-bezier(0.25, 1, 0.5, 1) both;
}

@keyframes efx-message-in {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .efx-field-invalid,
    .efx-field-error input,
    .efx-field-error textarea,
    .efx-field-error select,
    .efx-form-protection-error,
    .efsc-form-status:not(:empty),
    .efss-form-status.efss-fail {
        animation: none !important;
    }
}
