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 ModeSunroof Unit Disassembly/Assembly
NOTE:
If the guide or sunroof motor is removed, the glass panel will not be positioned
properly after the re-installation. To ensure proper positioning of the glass
panel, place alignment marks on the guide pin and frame before removing the
guide or sunroof motor.
1. Disassemb ...
Clutch Master Cylinder Removal/Installation [C66 M R]
CAUTION:
Secure the steering wheel using tape or a cable to prevent the steering shaft
from rotating after disconnecting the steering shaft. If the steering wheel
rotates after the steering shaft and the steering gear and linkage are disconnected,
the internal parts of the clock spr ...
Transaxle Oil Replacement [G66 M R]
1. Park the vehicle on level ground.
2. Remove the aerodynamic under cover No.2..
3. Remove the drain plug and washer.
4. Drain the oil into a suitable container.
5. Install a new washer and the drain plug.
Tightening torque
39—59 N·m {4.0—6.0 kgf·m, 29—43 ft·lbf}
...