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 ModePrecaution [Dynamic Stability Control (DSC)]
1. The ABS warning light and/or brake system warning light and/or DSC indicator
light and/or DSC OFF light illuminate even when the system is normal.
Warning lights that may illuminate and/or flash
Cases in which the light may illuminate
Conditions in ...
Flywheel Inspection [C66 M R]
1. Remove the flywheel..
2. Perform the following procedures to inspect the flywheel.
If there is any malfunction or it exceeds the maximum specification, replace
the flywheel..
a. Inspect the surface that contacts the clutch disc for scratches, nicks, and
discoloration.
...
Fuel Tank Inspection [Mzr 2.0, Mzr 2.5]
WARNING:
Fuel is very flammable liquid. If fuel spills or leaks from the pressurized
fuel system, it will cause serious injury or death and facility breakage. Fuel
can also irritate skin and eyes. To prevent this, always complete the “Fuel
Line Safety Procedure”, while referring to ...