There is a difference between shame and guilt. Shame is how others make you feel about your actions or thoughts.
Guilt is how your actions or thoughts make you feel from inside in the form of repentance.
Social pressure can make you feel shameful but not necessarily guilty.
It sounds like guilt is a consequence that you experience after something occurs that you don't want. However, shame is an emotional situation that doesn't have to be after an event. Individuals can be shamed because of their traumas or regarding mental health background.