/* Modal Styles */
.jo-smart-search.modal .jo-search-form {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    border-radius: 8px;
    padding: 20px;
}

.jo-smart-search.modal .jo-search-input-wrapper {
    background: transparent;
    border: none;
    box-shadow: none;
}

.jo-smart-search.modal .js-finder-search-query {
    background: transparent none repeat scroll 0% 0%;
    border: 1px solid #fff;
    border-style: none none solid;
    border-radius: 0px;
    max-width: 100%;
    font-size: 30px;
    padding: 5px 0px;
    color: #ffffff;
}
.jo-smart-search.modal .js-finder-search-query::placeholder {
    color: #ffffff;
}

/* Close Button */
.jo-smart-search.modal .jo-search-close {
    position: absolute;
    top: 10px; /* Adjusted for better spacing */
    right: 10px; /* Adjusted for better spacing */
    cursor: pointer;
    font-size: 16px; /* Reduced font size for smaller icon */
    color: #999;
    transition: color 0.3s ease, background 0.3s ease;
    border-radius: 50%; /* Maintains circular shape */
    width: 30px; /* Reduced width */
    height: 30px; /* Reduced height */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #fff;
}

.jo-smart-search.modal .jo-search-close:hover {
    color: #333;
    background: #fff;
}

/* Overlay */
.jo-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(41, 20, 117, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.jo-search-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Disable scrolling when modal is active */
body.no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
}