/* Common Base Styles */
.jo-smart-search {
    position: relative;
    display: flex;
    align-items: center;
	height: 60px;
        padding: 70px 0px 0px 20px;
}

/* Wrapper for the search icon */
.jo-search-icon-wrapper {
    display: inline-block; /* Ensures proper sizing */
    position: relative; /* Establishes a positioning context */
    width: 1.5em; /* Fixed width to contain the icon */
    height: 1.5em; /* Fixed height to contain the icon */
    overflow: visible; /* Prevent clipping */
}

/* Search Icon Styles */
.jo-search-icon {
    cursor: pointer;
    font-size: 24px;
    color: #C0C0C0; /* Default icon color */
    transition: transform 0.3s ease, color 0.3s ease; /* Smooth transitions */
    display: flex; /* Center the icon */
    align-items: center;
    justify-content: center;
    width: 100%; /* Fill the wrapper */
    height: 100%; /* Fill the wrapper */
    transform-origin: center; /* Scale from the center */
    will-change: transform; /* Optimize rendering */
    position: absolute; /* Isolate from layout shifts */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Perfectly center the icon */
}

.jo-search-icon:hover {
    transform: translate(-50%, -50%) scale(1.1); /* Zoom effect */
}

.jo-search-form {
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s ease;
    z-index: 99999;
}

.jo-search-form.active {
    opacity: 1;
    visibility: visible;
}

.jo-search-input-wrapper {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 8px;
}

.jo-smart-search .js-finder-search-query {
    flex-grow: 1;
    border: none;
    outline: none;
    margin-right: 8px;
    font-size: 16px;
}

.jo-smart-search .btn-primary {
    padding: 5px 10px;
    font-size: 14px;
}

/* Style for the search icon button */
.jo-search-submit {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: #007bff; /* Bootstrap primary blue */
    padding: 0;
}

.jo-search-submit:hover {
    color: #0056b3; /* Darker blue on hover */
}

/* Adjust alignment of the search icon within the input wrapper */
.jo-search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px; /* Space between input and icon */
}

/* Ensure the search icon is vertically aligned with the input */
.jo-search-submit span.icon-search {
    vertical-align: middle;
}