She still has too much freedom if she has the option of squatting on the carpet, because that means she is able to make choices out of eyesight. She shouldn;t ever have that option. Also be aware that just because a dog is housetrained to one room, doesn;t mean they are housetrained to the whole house. You need to be vigilant and housetrain for every single room, one by one. Seven months would be too young for a dog to have free rein in the house for example. This means you need to either tether her to you by fastening a lead around a belt loop, crate her, have her in arm's reach, have her on your lap, or she is asleep.
It is really important to be very strict at this point as 7 months is an age where, although generally you can expect occasional and fairly rare accidents (it takes them til about a year to be reliable in most cases), she really should be pretty clear on where she always should be going for say two rooms, and not viewing the inside as a regular option. If she keeps having options on where she goes, you will have her continuing doing this until it is a very hard habit to break. I think you'll have a bit of a challenge to break this already hence the suggestion to be very strict, structured and focused in getting her out and limiting her options.
I'd suggest only giving her a single room at a time in which she can run around but again, under a watchful eye constantly. If you really focus on this for say three weeks, you'll probably really have the idea set in her mind and bewell on the way to getting her housetrained so she isn;t backsliding any further into weeing inside. I'd also not let her run out on her own to go -- she needs structure. I'd put on the lead and take her out at regular intervals, reward and praise when she goes.
PS I'd take the rug off the floor and either get rid of it, or clean it with an enzyme cleaner then stow it away for a few months. Right now she has probably marked it enough that it will keep drawing her back and she associates that rug with peeing as well. So it would be a good idea to break the association totally. I took all my rugs up for about 4 months when I first got Jaspar, until the bulk of housetraining was over, as they can go so fast and that smell is a magnet to them to keep repeating the action.