What are the conditions that must be met for the 'aqīqah to be valid?
All praise is due to Allah, and may peace and blessings be upon our Master, the Messenger of Allah.
The 'aqīqah is like the recommended uḍḥiyyah in terms of the type of animal, its age, and its required characteristics — since it is a recommended slaughter and therefore resembles the uḍḥiyyah in its rulings.
It is agreed upon without any difference of opinion that the 'aqīqah is not valid with any animal other than livestock (al-na'am — camels, cattle, and sheep). Likewise, an animal with a disqualifying defect — such as obvious illness, lameness, or blindness in one eye — does not suffice, as has previously been explained in the rulings of the uḍḥiyyah. And Allah Almighty knows best.
Does passing wind, from the anus without a smell, invalidate prayer?
If a person is certain of having passed wind even if it was with no smell, then both his/her ablution and prayer are invalidated, thus he/she should remake ablution and re-perform prayer.
Is the marriage contract considered valid if concluded at home by the marriage official (Ma`zon)?
Yes, it is valid as long as it is registered at the court.
Is it Sunnah to cook the meat of the 'aqīqah?
All praise is due to Allah, and may peace and blessings be upon our Master, the Messenger of Allah.
It is Sunnah not to distribute the meat of the 'aqīqah raw. Rather, it is recommended to cook it with something sweet — such as raisins or honey — as a good omen and expression of hope for the sweetness of the newborn's character and conduct throughout their life. And Allah Almighty knows best.