# Fix Red Text in Form Name Fields

## Approved Plan Steps (Priority: customer_import.php, customer_new.php, billing.css/js)

1. **[x] Edit assets/billing.css**: Override browser :invalid red text, adjust .is-invalid/.is-required to border-only red (no text color). Added :invalid { color: inherit; }, softened reds.

2. **[x] Edit customer_new.php**: Ensure `is-invalid` class added only on server PHP errors, not always. Clear on client typing. Fixed display_name conditional class + added required.

3. **[ ] Edit customer_import.php**: Fix any preview/mapping field red styling on typing.

4. **[x] Edit assets/billing.js**: Add input event listeners to remove invalid classes on valid typing. Added global input listener to clear is-invalid on typing.

5. **[ ] Edit sales_document_form.php/subscription_new.php**: Check hidden customer_name fields.

6. **[ ] Test**: Open customer_new.php/customer_import.php, type names – no red text unless error. Run XAMPP Apache.

7. **[ ] attempt_completion**: Confirm fix complete.

**Status: CSS + JS + customer_new.php fixed. sales_document_form.php/subscription_new.php checked - no issues (hidden fields/selects, no name inputs). customer_import.php has no direct name inputs/selects with is-invalid. Global JS/CSS fixes should resolve. Ready for test.**


