As per this Microsoft blog article, InfoPath is retiring. It will not be available in the next version of SharePoint.
I am in the middle of setting up a Forms Solution architecture for a company and don't want my client to invest in a technology which is soon retiring.
Can someone suggest a better alternative which should work on both Online and Offline version of SharePoint and looks promising for the future 3-5 years at least?