School can not legally take your property and force you to pay to get it back. That's called theft. They can take your phone for the rest of the school day, but not permanently. If i were you, I would have your parents get a lawyer involved.
like how shocking is that..
and for ppl to be like “No you’re supposed to get it back after schools over” thats the first offense afterwards is a writeup then money