Ted should have held off attacking Trump until it was a two man race. He knew that Trump would respond in a big way. Now Ted is on the way down and Rubio is rising to take his place. Ted opened the door for the GOPe.
I think your analysis is right: Cruz has made one error after another for the last ten days now.