CSS to add Semi-transparent overlay for survey background

CSS to add Semi-transparent overlay for survey background:

.surveysparrow-survey-container--conversational-chat:before{
content:'';
position: absolute;
height: 100%;
width: 100%;
background-color: black;
opacity:0.4;
z-index:-1;
}