Hi there, I know this is a old post. But I just happen to run across it as I struggled with this too and although I hope you are doing great right now, I'd still like to reply just in case you're not (I pray you are fine and happy now though).
I experienced everything you mentioned, I know exactly what you mean by brain foggy, trapped, unfocused. I deal with this quite often, but I learned to deal with it and I'm still learning.. You just gotta say to yourself "I'm good, I am okay, I will not let this depression and anxiety get me down, I think I'll go take my dog out for a walk or something" And then get up without thinking any further with a decided mind that you're going to go do it. (or whatever productive and healthy you may choose to do), go out side for a half hour, literally leave all your "baggage" and step out of your normal self and just enjoy playing with your dog, not giving a care in the world about what anyone thinks.
When you're in public, or at work. Walk with your head held high, pull your shoulders back, straighten up your back, puff your chest out if you want too lol (I do
) and go about your day not giving a damn about any problems, and tell yourself that if you do run into any problems, that you'll just deal with them as they come, you'll knock them out before they can cause any more stress on your life, refuse to let it bring you down!
I'm a heavy set guy and not the best looking around either, but I have the self-esteem like you wouldn't believe, Girl I go around winking at my close female friends, I jokingly flirt with them (I don't take it too far, it's just innocent flirting) but they know that and it even makes them smile and feel good about themselves. I'm often told that I make people feel good about themselves and I'm darn proud of that!
I'm over weight? Yep, I sure am. Am I okay with it? Not with the weight no, but I'm happy with myself enough to want to do something about my weight. I deserve a happy life too!
Do I consider myself unattractive? Yep, I do. Am I okay with it? I sure as hell am okay with it lol, I'm so okay with being unattractive that I dont care what people think, I will live my life regardless. If someone finds me attractive then cool! If not then oh well lol who cares?
My point is I don't normally let anything get me down, sure I have bad days too, but I can make the difference and change that bad day into a good day. I just have to have the will power and self esteem. You're fighting against a negative force, you can win against it though, You yourself even mentioned that you are smart. You'll get through it, always believe in yourself and you'll do great, You got this :)