Unable to Change the Text Color of field

I have written this code so that the “remaining days” field value color changes on particular conditions

But Color is not being implemented on the form field text

Can Anyone Please tell me how can i deal with this issue

i have code for your reference, this code is working well for me
try this @dhruv_vaswani

frappe.ui.form.on('Price', {
    refresh: function(frm) {
        var textSize = '20px'; 
        var textColor = '#ffe74c'; 

        frm.fields_dict['grand_total'].$input.css('font-size', textSize);
        frm.fields_dict['grand_total'].$input.css('color', textColor);


Sure I will try it out thanks for your help @nilpatel42