At this point, you might need to cut out the water-damaged section of your carpet. This is to prevent further moisture spread and also to get rid of the padding underneath in cases of greywater ...
The process is still simple, even if you have to tackle a big section of frayed carpet. Just cut it away, measure the empty patch, and cut a separate piece of carpet to size to replace it.