Most likely the condensate drain clogged and the safety switch did its job, shutting the system down before the pan overflowed further. The stain says some water got there first. The repair is the drain cleared and read for why it clogged, construction dust and algae are the usual answers, plus a check of the pan and the ceiling's moisture. Resetting the switch without clearing the drain just rebooks the stain, bigger.
Prefer to talk later? Leave your details and an independent local pro will call you back. No charge to you, no obligation.
South San Gabriel Heating and Air is a free referral service. Submitting this form connects you with independent local contractors who provide the work.