To me it looks like the bed just shifted forward a split second and whacked the cab hard. Even the gap between the cab and the bed looks good other than the dents. It must have moved your door jam forward just enough to squish the door so its wedged shut. I would get someone to kick on the inside of the door while you pull from the outside on the handle to get it open. I think thats where youre going to see what you will have to fix. And if all that fails paint it orange with an 01 on the side