Is it a condition for I‘tikaf to be performed in the mosque?
Yes, for I‘tikaf to be valid, it must be performed in a mosque. I‘tikaf is not valid if performed at home or elsewhere.
How is night prayer offered?
Night prayer is offering voluntary prayer after Maghrib and before Fajr (Dawn). As for Tahajjud, it is offering voluntary prayer at night after waking up voluntarily, and for Allah`s sake as He Says (What means): "And pray in the small watches of the morning: (it would be) an additional prayer (or spiritual profit) for thee: soon will thy Lord raise thee to a Station of Praise and Glory!" [Al-Isra`/79]. Offering Tahajjud is better than offering voluntary prayer before going to bed.
Is it a condition that a woman should untie her locks while making Ghusl (ritual bath)?
Ghusl from Janabah (ritual impurity), or menstruation obligates that water reaches the roots of the hair in order for the Ghusl to be valid, but if it doesn`t, then hair locks must be untied for water to reach them, and for Ghusl to become valid.
What is the ruling of Islamic Law on shaving body hair and clipping the nails for one who is in a state of major ritual impurity (*junub*)?
All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah.
It is recommended for one in a state of major ritual impurity (junub) not to remove anything from his body until after the ritual bath (ghusl). It is stated in Bushrā al-Karīm bi-Sharḥ Masāʾil al-Taʿlīm (p. 135): “It is recommended for one in a state of janābah and the like not to remove anything from his body until after ghusl, because the parts of the body return to him in the Hereafter, and he returns in a state of janābah, as a rebuke to him. Then it is removed from him, except for the original parts. It is said that every hair demands its due for its janābah.”
It is stated in Ḥāshiyat al-Shabrāmallisī ʿalā Nihāyat al-Muḥtāj (Vol.2/p.341): “If he wishes to combine shaving and the Friday ghusl, he should delay the shaving until after the ghusl if he is in a state of janābah, so that the ghusl removes its trace from the hair.” And Allah Almighty knows best.