Tropical Storm Bertha formed Monday evening in the Gulf of Mexico south of the Florida Panhandle as it drifts erratically toward populated coastal areas bearing a threat of heavy rain, storm surge and damaging wind gusts, forecasters say.