/* TIA Forms - shared validator + mask styling. Minimal on purpose so it
 * layers cleanly over Bootstrap / the existing site styles. Avoid !important
 * except where Bootstrap's own state colors would otherwise win.
 */

.tia-invalid {
    border-color: #dc3545 !important;
    background-color: #fff5f5;
}

.tia-valid {
    border-color: #28a745;
}

.tia-error {
    display: block;
    color: #dc3545;
    font-size: 0.85em;
    line-height: 1.3;
    margin-top: 0.25rem;
    min-height: 1em;
}

.tia-error:empty {
    display: none;
}

/* Visible focus for keyboard users on masked inputs. */
input[data-mask="phone-us"]:focus,
input[data-mask="zip-us"]:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 1px;
}
