Maria had some excellent points. So in addition to what she said, I'm so sorry you're suffering right now Things will get better though. I know two months seemed like a long time, but hang in there. I'm IBS-D too and while the diet changes etc. did provide *some* relief right away, it was really not until 5 or 6 months in that I could finally go "ahhh" and relax a little. I really know where you're coming from with the feeling shut in/wanting to be near your toilet part! I'm somewhat stable now but even now when someone says something like "we're all going out to the Golden Coralle for her birthday" I still get really anxious and nervous and find myself almost unconcsiously coming up with excuses to get out of it asap!
I think maybe talking to a counsellor might be a good option for you. I know we get sick of doctors telling us "it's all in your head" but there is definitely a connection between what's in your head and what's going on in your gut. Working through stress, anxiety and other painful emotions you're having with coming to terms with your IBS can only be helpful for you.
I remember, about 6 months in, coming to terms with the fact that my IBS was, and always will be, part of me/my body, rather than something that's HAPPENING to me or inflicting me, and that helped me just so immensely in getting towards stability.