/* CSS file sc_search_form.php */

.search-form {
    display: flex;
    align-items: center;
    margin: -10px; /* Reset any margins */
    padding: 0; /* Reset any padding */
    flex-wrap: nowrap; /* Prevent wrapping of form and icon */
}

.search-field {
    padding: 5px; /* Adjust padding inside the input field */
    font-size: 16px;
    flex: 1; /* Allow the input to take up the remaining space */
}

.search-submit {
    margin-left: 10px;
    background: none; /* Remove default button background */
    border: none;
    padding: 5px; /* Add padding to the button container */
    cursor: pointer;
    transition: background-color 0.3s ease; /* Smooth transition for background color */
    flex-shrink: 0; /* Prevent the button from shrinking */
}

.search-submit img {
    width: 24px; /* Set width for the SVG icon */
    height: 24px; /* Set height for the SVG icon */
}

/* Hover effect for changing the background color of the button */
.search-submit:hover {
    background-color: #f85033; /* Set desired hover background color */
}

.search-submit:hover img {
    opacity: 0.9; /* Optional: Adjust the opacity of the SVG during hover */
}

/* Focus state for accessibility */
.search-submit:focus {
    outline: 2px solid #ff8844; /* Focus outline */
}

.search-submit:focus img {
    outline: none; /* Prevent outline on the SVG itself */
}

/* Mobile responsiveness - Reducing height for cellphones */
@media (max-width: 600px) {
    .search-form {
        padding: 5px; /* Reduce padding to shrink overall height */
        flex-wrap: nowrap; /* Prevent wrapping on very small screens */
    }
    .search-field {
        font-size: 14px; /* Reduce font size */
        padding: 3px; /* Reduce padding inside the input field */
        margin-bottom: 0; /* Remove any space between input and button */
    }
    .search-submit {
        padding: 3px; /* Reduce padding for the button */
    }
    .search-submit img {
        width: 20px; /* Reduce SVG icon size */
        height: 20px; /* Reduce SVG icon size */
    }
}
