It might need a bit of iron and calcium. Sometimes nutrient deficiency does a plant in. Certain nutrients are needed for healthy growth. A tiny bit of fertilizer each watering will help, just a little pinch.
Plants usually won't bloom themselves to death. I think you just need to fertilize, possibly change the medium. However, a picture truly would be helpful for us to diagnose your phal.
The only things I can think of, if your roots are doing so very well (green and firm) is that perhaps water got into the leaves and caused some rot there? Or, perhaps the air is too dry due to air conditioning/dry summer? I don't know where you live so that is just a blind guess. I hope we can help you save your orchid. It sounds very much worth saving if it blooms so well.