Peace be on you.
God has granted us internal compass -- conscience. If it is rusted it may not work well.
There are certain morals which are taught by religion.
Society may make certain morals, they may contradict religious morals or may not.
The morals [like user manual] are taught by the One Who engineered us.
At complex situations God-made morals prove their superiority , For example:
Who would like to be nice with enemy but religion ask to do so: [Quran @ alislam.org ch5: v9] O ye who believe! be steadfast in the cause of Allah, bearing witness in equity;
and let not a people’s enmity incite you to act otherwise than with justice. Be always just, that is nearer to righteousness. And fear Allah. Surely, Allah is aware of what you do.
At times, people may not able to make good judgments but religion tells:
[6:152] Say, ‘Come, I will rehearse to you what your Lord has forbidden: that you associate not anything as partner with Him, And
you do good to parents, and that you kill not your children for
fear of poverty — it is We Who provide for you and for them — and that you approach not foul deeds, whether open or secret; and that you kill not the life which Allah has made sacred, save by right. That is what He has enjoined upon you, that you may understand.
What if there is great threat to someone's life (on street), and person is passing by on his way to offer prayer, here the believer should use internal compass, first save the life then go to prayer....Thus at times, moral depends on situation.
But certainly it is no morality that a religion keep following the majority votes and keep compromising its teaching.
Plz find the word 'moral' in
https://www.alislam.org/library/books/IslamsResponseToContemporaryIssues.pdf
wwwDOTalislamDOTorg/library/books/IslamsResponseToContemporaryIssues.pdf
There is much on morals with respect to modern society and religion.