/* Custom Pop-up Search Styles */

/* Trigger Icon */
.my-popup-search-trigger {
    cursor: pointer;
    font-size: 24px; /* Adjust as needed */
    color: #333; /* Adjust color */
    display: inline-block;
    padding: 10px;
}
.my-popup-search-trigger:hover {
    color: #0073aa; /* Hover effect */
}

/* Modal Overlay */
.my-popup-search-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 9999; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.7); /* Black w/ opacity */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
}

/* Modal Content/Box */
.my-popup-search-modal-content {
    background-color: #fefefe;
    margin: auto; /* Centered */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    max-width: 600px; /* Adjust max width as needed */
    width: 90%; /* Responsive width */
    box-sizing: border-box; /* Include padding in width */
    transform: translateY(-50px); /* Initial state for animation */
    opacity: 0; /* Initial state for animation */
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

/* Modal Active State */
.my-popup-search-modal.active {
    display: flex; /* Show with flexbox for centering */
}
.my-popup-search-modal.active .my-popup-search-modal-content {
    transform: translateY(0); /* Animate to center */
    opacity: 1; /* Fade in */
}


/* Close Button */
.my-popup-search-close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
}
.my-popup-search-close-button:hover,
.my-popup-search-close-button:focus {
    color: #333;
    text-decoration: none;
}

/* Form Styling */
.my-custom-search-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.my-custom-search-form .popup-search-title {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.my-custom-search-form .search-input-wrapper {
    position: relative;
}

.my-custom-search-form .search-field {
    width: 100%;
    padding: 12px 40px 12px 15px; /* Added left padding for icon */
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.my-custom-search-form .search-input-wrapper .search-icon-inside-input {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

/* Removed the .filter-group select styling as it's no longer needed */

.my-custom-search-form .search-submit-button {
    background-color: #0073aa; /* WordPress primary blue */
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.my-custom-search-form .search-submit-button:hover {
    background-color: #005a87;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .my-popup-search-modal-content {
        max-width: 95%;
        padding: 20px;
    }
}