Ok nOt sure if this will help but a friend had a similar issue on his Sapph it turned out the fault was a dodgy relay in the passenger side near where the radio is tucked up under there , I think it's a yellow relay there's 2 I think can't remember exactly. He was actually driving the car and the brake pedal just went rock hard!
Hope this helps mate.