You really need a whole headlight assembly if the lens is broken as halogen bulbs and rain water are not at all compatible. That headlight assembly can be had fairly cheaply at several places on line…
https://www.partsgeek.com/jmf2kf3-hyundai-elantra-headlight-assembly.html?utm_source=shopzilla&utm_medium=pf&utm_content=ac&utm_campaign=PartsGeek+ShopZilla&fp=pp&utm_term=Hyundai+Headlight+Assembly
I have bought parts thru this source and they have given me good service when I have used them.