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 ModePicture Quality Adjustment
WARNING
Always adjust the picture quality of the rear view monitor while the
vehicle is stopped:
Do not adjust the picture quality of the rear view monitor while driving
the vehicle.
Adjusting the picture quality of the rear view monitor such as
brightness, contrast, colo ...
Rear Shock Absorber Removal/Installation
1. Remove in the order indicated in the table.
2. Install in the reverse order of removal.
1
Rear shock absorber upper nut
2
Rear shock absorber under bolt
3
Rear shock absorber
...
Oil Seal (Differential) Replacement [C66 M R]
1. Remove the aerodynamic under cover No.2 and the splash shield as a single
unit..
2. Drain the manual transaxle oil..
3. Disconnect the drive shaft (LH) from the MTX..
4. Disconnect the drive shaft (RH) from the joint shaft..
5. Remove the joint shaft..
6. Remove the oil seal (LH).
...