.overlay {
    background: rgb(0, 0, 0);
    /* black overlay */
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;

}

.main-search {
    max-width: 780px;
    width: 100%;
    margin: 0 auto;


}

#mobileModal {
    z-index: 999;
}

#newuserModal,
#welcomeBackModal {
    z-index: 1000;
}

#otpModal,
#setPinModal,
#ForgotPinModal,
#newPinModal {
    z-index: 1001;
}

.main-search input {
    max-width: 670px;
    width: 100%;
    background-color: var(--white-color);
    padding: 22px 24px;
    border-radius: 5vmax;
    font-size: 20px;
}

.main-search .btn-primary-gradient {
    max-width: 670px;
    width: 100%;
    font-size: 23px;
    margin-top: 14px;
}

.popup-close {
    color: white;
    padding: 8px;
    background-color: #F9572C;
    border-radius: 50%;
    position: absolute;
    top: 10px;
    right: 10px;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.popup-close:hover {
    transform: scale(1.1);
}

@media (max-width:1450px) {
    .main-search {
        margin: 0 12px;
    }

    .main-search input {
        max-width: 630px;
        padding: 14px 24px;
        font-size: 16px;
    }

    .main-search .btn-primary-gradient {
        max-width: 630px;
        font-size: 18px;
        margin-top: 14px;
    }

}

@media (max-width:460px) {
    .main-search input {
        font-size: 14px;
    }

    .main-search .btn-primary-gradient {
        font-size: 15px;
    }

}

@keyframes slideIn {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes slideOut {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-100%);
    }
}

.slide-from-top {
    animation: slideIn 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.slide-to-top {
    animation: slideOut 0.32s cubic-bezier(0.42, 0, 1, 1) forwards;
}