Format Spacing on Sidebar Widget

I have a Basic Member Search in a Sidebar Widget using BuddyPress Search. Due to the fact that I have added Custom CSS spacing for Location, Age and Username in Edit Profile, it has now been carried over to the widget, making the spacing much too big.

How do I add padding-top of just 10px (instead of 40) for the sidebar widget without it affecting the Edit Profile spacing for the same fields.

Thank you.

Screenshot attached, support access granted