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.
What is the ruling on doubting whether one or two prostrations were performed?
Praise be to Allah, and peace and blessings be upon our Master, the Messenger of Allah.
If a worshiper is in doubt regarding the number of units (rak'ahs) or prostrations (sajdahs) performed, he must build upon the minimum (i.e., assume the lower number) and perform the prostration of forgetfulness (Sujud al-Sahw) before the Salam at the end of the prayer. This is based on the report from ‘Ata’ ibn Yasar that the Messenger of Allah ﷺ said: 'When anyone of you is in doubt about his Salat (prayer) and does not know how many he has prayed, three or four (Rak'at) he should cast aside his doubt and base his prayer on what he is sure of. Then, he should perform two prostrations before Taslim (salutation). If he has prayed five Rak'at, they will make his Salat (prayer) an even number for him and if he has prayed exactly four, they (i.e. two prostrations) will be humiliation for the devil..' (Narrated by Abu Dawud).
It is stated in Al-Muqaddimah al-Hadramiyyah: 'If one doubts [whether he performed] a bowing (ruku’), a prostration, or a rak'ah, he must perform it and prostrate [for forgetfulness], even if the doubt is removed before the Salam—unless the doubt is removed before he performs what would potentially be an addition. Thus, if he doubts whether he prayed three or four, he is obligated to build upon the minimum.' And Allah the Exalted knows best.
Is it permissible for women to gather in one of their homes to pray Tarawih?
Yes, it is recommended (mustahabb) for women to pray Tarawih in congregation if they gather, even if it is not in the mosque.
In fact, praying at home is better for them, as it avoids the potential concerns associated with going to the mosque.
What is the ruling on a person in a state of major impurity (junub) walking or eating before performing the ritual bath?
It is from the Sunnah for a Muslim to hasten to perform the ritual bath for major impurity. However, if he delays it, he does not sin provided he does not miss the prayer. It is permissible for the junub to walk, eat, drink, and sleep. It is recommended for him to perform ablution before these actions to reduce the state of impurity, although the best is for him to perform the ritual bath. And Allah the Almighty knows best.