Greet others with Assalamualaikum and return a greeting with wa-allaikum ussalam.
Give thanks by Jazakallah.
As for opposite gender, you can't free-mix with those who are not blood related, without it being a public (i.e. can't be alone talking to eachother). I think others can give more detail on this though as I am too tired

.