#surveyModal ~ .modal-backdrop, #successSurveyModal ~ .modal-backdrop {
    background-color: transparent !important;
}

#surveyModal, #successSurveyModal {
    backdrop-filter: blur(5px);
}

#surveyModal .modal-header {
    padding-inline: 24px;
    border-bottom: none;
}

#surveyModal .modal-content, #successSurveyModal .modal-content {
    border: none;
    box-shadow: 1px 1px 40px 0px rgba(0, 0, 0, 0.2);
    border-radius: 24px;
    width: 95%;
    margin-inline-start: 2.5%;
}

#surveyModal .modal-body, #successSurveyModal .modal-body {
    padding-inline: 24px;
    padding-block: 0;
}

#surveyModal .modal-base-title, #successSurveyModal .modal-base-title {
    color: #000000;
    font-weight: 700;
    margin-block: 10px;
}

#surveyModal .modal-sub-title {
    color: #979797;
    font-weight: 400;
}

#surveyModal .modal-footer {
    justify-content: space-between;
    padding-inline: 24px;
    border-top: none;
    margin-bottom: 5px;
}

#surveyModal .modal-footer .btn {
    padding: 10px 60px;
    border-radius: 24px;
    border: 1px solid #26b195 !important;
    padding-inline: inherit;
    width: 46%;
}

#surveyModal .modal-footer .cancel-btn {
    background-color: white;
    color: #26b195;
}

#surveyModal .modal-footer .submit-btn {
    background-color: #26b195;
    color: white;
}

/* rating stars */
.rate-container {
    /* margin-block: 2rem; */
}

.rate-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.rate-content {
    display: flex;
    justify-content: flex-start;
}

.stars {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    column-gap: 5px;
}

.star-empty {
    color: #979797;
    font-size: 1.2rem;
    cursor: pointer;
}

.star-empty:hover {
    color: #f7b418;
}

.star-empty.active {
    color: #f7b418;
}

.rate-title {
    font-size: 1rem;
    font-weight: 400;
}

#surveyModal .optional {
    color: #c7c7c7;
    font-weight: 100;
    font-size: 0.9rem;
}

.optional-notes {
    border: 1px solid #c7c7c7;
    border-radius: 16px;
    padding: 1rem;
    font-size: 0.9rem;
    width: 100%;
    min-height: 100px;
    color: #979797;
}

.optional-notes:focus-visible {
    outline: none;
}

.required-rate {
    color: #ee4d42;
    font-weight: 100;
}

#successSurveyModal .img {
    margin-top: 35px;
}

#successSurveyModal .modal-base-title {
    margin-bottom: 1rem;
    margin-top: 2rem;
}

#successSurveyModal .modal-sub-title {
    margin-bottom: 1rem;
    color: #979797;
    font-weight: 400;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    #surveyModal .modal-footer {
        flex-direction: column;
    }
    #surveyModal .modal-footer .btn {
        width: 100%;
    }

    #surveyModal .modal-content, #successSurveyModal .modal-content {
        max-height: 75vh;
        overflow-y: scroll;
    }

    /* hide the scrollbar */
    #surveyModal .modal-content::-webkit-scrollbar,
    #successSurveyModal .modal-content::-webkit-scrollbar {
        display: none;
    }

    #surveyModal .modal-footer .btn {
        width: -webkit-fill-available;
    }

    #surveyModal .modal-footer .cancel-btn {
        margin-right: 4px;
    }

}

@media (max-width: 768px) and (max-height: 850px) {
    #surveyModal .modal-content, #successSurveyModal .modal-content {
        max-height: 60vh;
        overflow-y: scroll;
    }
}

@media (max-width: 375px) {
    #surveyModal .modal-content, #successSurveyModal .modal-content {
        max-height: 60vh;
        overflow-y: scroll;
    }

    #surveyModal .modal-base-title, #successSurveyModal .modal-base-title {
        font-size: .8rem;
    }

    #surveyModal .modal-sub-title {
        font-size: .8rem;
    }

    .rate-title {
        font-size: .8rem;
    }

    .star-empty {
        font-size: 1rem;
    }

    #surveyModal .modal-footer .btn {
        font-size: .8rem;
    }
}


