/* Job Search Form Styles */
#job-search-form {
    max-width: 1200px; /* Keep for desktop */
    margin: 20px auto;
    padding: 20px;
    background-color: #FFFFFF0F;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Base input styles (Job Title) */
#job-search-form input[type="text"] {
    padding-left: 40px;
    background-image: url('https://corporategh.com/wp-content/uploads/2025/03/search-icon1-2.png'); /* New search icon */
    background-repeat: no-repeat;
    background-position: 10px center;
    background-size: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    height: 50px;
    font-size: 16px;
    background-color: #fff;
    transition: border-color 0.3s ease;
}

/* Base select styles (Location) */
#job-search-form select {
    padding-left: 40px;
    background-image: url('https://corporategh.com/wp-content/uploads/2025/02/location-icon.png'); /* Existing location icon */
    background-repeat: no-repeat;
    background-position: 10px center;
    background-size: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    height: 50px;
    font-size: 16px;
    background-color: #fff;
    transition: border-color 0.3s ease;
}

/* Focus styles for input */
#job-search-form input[type="text"]:focus {
    outline: none;
    border-color: #DC4811;
    box-shadow: 0 0 5px rgba(220, 72, 17, 0.3);
}

/* Focus styles for select */
#job-search-form select:focus {
    outline: none;
    border-color: #DC4811;
    box-shadow: 0 0 5px rgba(220, 72, 17, 0.3);
}

/* Submit button styles */
#job-search-form input[type="submit"] {
    height: 50px;
    padding: 0 20px;
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    background-size: 200%;
    background-image: linear-gradient(to left, #DC4811, #FF8558, #DC4811);
    cursor: pointer;
    transition: background-position 0.3s ease;
}

#job-search-form input[type="submit"]:hover {
    background-position: right;
}

/* Match location field font color to placeholder */
#job-search-form select,
#job-search-form select option {
    color: #757575;
}

#job-search-form select option:checked {
    color: #000;
}

/* Mobile (up to 767px) */
@media only screen and (max-width: 767px) {
    #job-search-form {
        display: block;
        width: 90vw;
    }

    #job-search-form input[type="text"],
    #job-search-form select,
    #job-search-form input[type="submit"] {
        width: 100%;
        margin: 10px 0;
    }
}

/* Tablet (768px to 1024px) */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
    #job-search-form {
        display: flex;
        flex-wrap: wrap; /* Allow wrapping if needed */
        gap: 15px;
        max-width: 90vw; /* Restrict to viewport width */
    }

    #job-search-form input[type="text"],
    #job-search-form select {
        width: calc(32vw - 15px); /* Two fields per row, accounting for gap */
        margin: 0;
    }

    #job-search-form input[type="submit"] {
        width: 150px; /* Keep fixed for submit button */
    }
}

/* Desktop (1025px and up) */
@media only screen and (min-width: 1025px) {
    #job-search-form {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    #job-search-form input[type="text"],
    #job-search-form select {
        width: 400px;
        margin: 0;
    }

    #job-search-form input[type="submit"] {
        width: 150px;
    }

    #job-search-form > div {
        flex: 1;
    }
}