Respect and gender in Hindi
The pronoun aap is a good starting point when you are unsure how familiar to be. In the respectful question, the adjective ending changes according to the person you address. The final hain has a nasal vowel rather than a strongly pronounced final n. With a friend who uses tum, the accompanying verb changes as well. Notice the entire phrase instead of substituting one pronoun mechanically.
A reply that works for different speakers
Main theek hoon, meaning I am fine, is useful because the adjective theek does not change according to the speaker's gender. A simple dhanyavaad or shukriya can add thanks, and aap? can return the question. If you want to give more detail, you can build on this reply rather than trying to memorise a long conversation before a trip.
Regional languages have their own patterns
Bengali distinguishes respectful apni from familiar forms, whereas spoken Tamil expresses courtesy through pronouns and verb endings. In a Tamil conversation, the ending of the respectful wellbeing question is useful even if you leave out the pronoun. These are separate languages, not variants of Hindi. Choose a phrase based on the community you are visiting and remain ready to switch languages if necessary.