/* -----custom scrollbar----- */
/* For WebKit browsers (Chrome, Safari) */
::-webkit-scrollbar {
    width: 10px; /* width of the scrollbar */
}
::-webkit-scrollbar-track {
    background: #f0ebeb; /* color of the track (the area behind the scrollbar) */
}
::-webkit-scrollbar-thumb {
    background: #222; /* color of the thumb (the draggable part of the scrollbar) */
    border-radius: 4px;
    border: 1px solid #f0ebeb;
}
::-webkit-scrollbar-thumb:hover {
    background: #555; /* color of the thumb on hover */
}
/* -----custom scrollbar----- */

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px #f8f8f8 inset !important;
}

/*Telephone input*/

/* Hide the increment/decrement arrows */
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}

/* -------modal login form------------ */
main#blur.blur {
    filter: blur(20px);
}
#modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 998;
    display: none;
}
#modal-overlay.modal-overlay-block {
    display: block;
}

form .fa-xmark {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 28px;
}
#popup-forgot-pass,
#popup-login,
#popup-login-tenant,
#popup-register,
#popup-login-business,
#popup-register-business {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 500px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    /* border-radius: 20px; */
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    visibility: hidden;
    opacity: 0;
    transition: 0.5s;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f8f8f8;
    padding: 1em 2em;
    z-index: 3000;
    overflow: auto;
    height: auto;
    max-height: 90vh;
    clip-path: inset(0 round 20px);
}
#popup-forgot-pass.visible,
#popup-login.visible,
#popup-register.visible,
#popup-login-tenant.visible,
#popup-login-business.visible,
#popup-register-business.visible {
    top: 50%;
    visibility: visible;
    opacity: 1;
    transition: 0.5s;
}

.login-register-title {
    font-size: 1.6rem;
    font-weight: 600;
    text-align: center;
    color: #222;
    margin-bottom: 1rem;
}

.input-box {
    position: relative;
    width: 95%;
    margin: 20px 0px;
    border-bottom: 2px solid #222;
}

.input-box input,
.input-box select {
    width: 100%;
    height: 50px;
    background: transparent;
    outline: none;
    border: none;
    font-size: 1rem;
    padding: 0 40px 0 5px;
    color: #222;
    overflow-x: auto;
}
#date-of-birth {
    padding: 0 0 0 5px;
}
.input-box label {
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    font-size: 1rem;
    color: #222;
    pointer-events: none;
    transition: 0.5s;
}

.input-box input:focus ~ label,
.input-box input:not(:placeholder-shown) ~ label {
    top: -5px;
}

.input-box i {
    position: absolute;
    right: 8px;
    font-size: 1rem;
    color: #222;
    line-height: 57px;
}
.input-box span {
    position: absolute;
    right: 8px;
    font-size: 1rem;
    color: #222;
    line-height: 57px;
}
.input-box input#website {
    width: calc(100% - 50px);
}
#website-tooltip {
    width: 95%;
    margin-top: -1rem;
}
.remember-forgot {
    width: 95%;
    margin: -15px 0 15px;
    font-size: 0.9rem;
    color: #222;
    display: flex;
    justify-content: space-between;
}

.remember-forgot label {
    display: flex;
    align-items: center;
    gap: 5px;
}
#popup-forgot-pass a,
#popup-login a,
#popup-register a,
#popup-login-tenant a,
#popup-login-business a,
#popup-register-business a {
    color: #222;
    font-weight: 600;
}
#popup-forgot-pass a:hover,
#popup-login a:hover,
#popup-register a:hover,
#popup-login-tenant a:hover,
#popup-login-business a:hover,
#popup-register-business a:hover {
    text-decoration: underline;
}
#popup-forgot-pass .btn,
#popup-login .btn,
#popup-register .btn,
#popup-login-tenant .btn,
#popup-login-business .btn,
#popup-register-business .btn {
    width: 95%;
    padding: 10px 0;
    background: #222;
    border: none;
    outline: none;
    border-radius: 40px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
    margin-top: 10px;
    transition: 0.5s;
}
#popup-forgot-pass .btn:hover,
#popup-login .btn:hover,
#popup-register .btn:hover,
#popup-login-tenant .btn:hover,
#popup-login-business .btn:hover,
#popup-register-business .btn:hover {
    opacity: 0.8;
}

#popup-login .signup-link,
#popup-register .signup-link,
#popup-login-tenant .signup-link,
#popup-login-business .signup-link,
#popup-register-business .signup-link {
    font-size: 1rem;
    color: #222;
    text-align: center;
    margin: 20px 0 10px;
}

@media (width <= 500px) {
    #popup-forgot-pass,
    #popup-login,
    #popup-register,
    #popup-login-tenant,
    #popup-login-business,
    #popup-register-business {
        width: 100vw;
        min-width: auto;
        height: 100%;
        max-height: 200vh;
        border: none;
        border-radius: 0px;
        clip-path: none;
        padding: 1em;
        overflow-y: scroll; /* Enable vertical scrolling */
        scrollbar-width: none; /* Hide scrollbar in Firefox */
        -ms-overflow-style: none; /* Hide scrollbar in Internet Explorer and Edge */
    }
    #popup-forgot-pass,
    #popup-login,
    #popup-login-tenant {
        height: auto;
        min-height: 50vh;
        justify-content: center;
    }
    #popup-forgot-pass::-webkit-scrollbar,
    #popup-login::-webkit-scrollbar,
    #popup-register::-webkit-scrollbar,
    #popup-login-tenant::-webkit-scrollbar,
    #popup-login-business::-webkit-scrollbar,
    #popup-register-business::-webkit-scrollbar {
        display: none;
    }
}

/* Hide the default checkbox */
input[type="checkbox"] {
    display: none;
}

/* Style the custom checkbox */
input[type="checkbox"] + label:before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: #000;
    text-align: center;
    line-height: 12px;
    font-size: 0.7em;
    font-weight: 800;
}

input[type="checkbox"]:checked + label:before {
    color: #fff;
    content: "\2713";
}

input[type="date"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-calendar-picker-indicator {
    display: none;
    -webkit-appearance: none;
    opacity: 0;
}

#predictionsContainer {
    position: relative;
}

#predictions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 1000;
    margin: 0;
    padding: 0;
    list-style: none;
    background-color: #fff;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#predictions li {
    padding: 10px;
    cursor: pointer;
    font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
    font-size: 1rem;
    list-style: none;
}

#predictions li:hover,
#predictions li.active {
    background-color: #f0f0f0;
}
