If the selector lever will not move from P using the proper shift procedure, continue to hold down the brake pedal.

Take the vehicle to an Authorized Mazda Dealer to have the system checked.
Shift-Lock System
Manual Shift ModeMagnetic Clutch Adjustment [Manual Air Conditioner]
1. Measure the clearance around the entire circumference between the pressure
plate and A/C compressor pulley using a thickness gauge.
2. Verify that the clearance.
If not within the specification, remove the pressure plate and adjust the
clearance by changing the shim (0.2 mm {0. ...
Liftgate Adjustment
1. Measure the gap and height difference between the liftgate and the body.
2. Loosen the liftgate hinge installation bolts and adjust the gap by moving
the liftgate.
Standard clearance
a: 5.0―7.0 mm {0.20―0.27 in}
b: -2.0―0 mm {-0.078―0 in}
...
C Pillar Trim Removal/Installation
4SD
1. Remove the following parts:
a. Rear seat cushion.
b. Rear scuff plate.
c. Tire house trim.
2. Partially peel back the seaming welt.
3. Pull the C-pillar trim in the direction of the arrow (1), (2) shown in the
figure, then detaching clip A and B.
4. Cut the lead wire connec ...