Weight loss

Okay . I'm 17 & prom is just around the corner. I've gained around 40lbs in the last year. Idk how I let myself go. I guess I just got super comfy with my boyfriend not being worried about my weight that I eventually stopped paying attention to it. I really want to be able to surprise him with a new and improved me for prom but I don't know where to start..any advice?? Very...lost. lol