What is the ruling on the cessation of blood after (40) days from delivery, but later continued sporadically during two days of Ramadan?
Once postpartum bleeding (Nifas) ceases, and the woman is certain that it won`t reoccur, then she becomes ritually pure and so she is free to make Ghusl (purificatory bath), pray, and fast. If the bleeding reoccurs before fifteen days from its cessation, and before the end of (60) days after delivery, then the ruling on postpartum bleeding is effective, and her fasting and prayer are null and void, thus she must make up the fasting that she missed and not the prayer during those particular days.
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.
Who is the one required to slaughter 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 for the 'aqīqah to be slaughtered by the guardian of the newborn — the one upon whom the child's financial maintenance is obligatory — provided he is financially capable of doing so. 'Alī ibn Abī Ṭālib, may Allah be pleased with him, reported: "The Messenger of Allah ﷺ performed the 'aqīqah for al-Ḥasan with one sheep." — Narrated by al-Tirmidhī. And Allah Almighty knows best.
Is bleeding that lasts for nine or ten days considered menstruation (Hayd)?
Praise be to Allah, and peace and blessings be upon our Master, the Messenger of Allah.
If the duration of the bleeding does not exceed fifteen days, then all of it is considered menstruation (Hayd), even if the regular cycle ('Adah) has changed. And Allah the Exalted knows best.