Sudden loss of pedal

Sounds like the master cylinder has failed to ME. If you decide to replace it, buy new--not rebuilt...