Is maintaining a healthy weight important for fertility, and what is the ideal body mass index (BMI)?

Divya
Does being underweight or overweight impact fertility, and is there an ideal body mass index (BMI) range for optimal fertility? Are there specific risks associated with being underweight or overweight when trying to conceive?