/**
 * Taxi Style Search Form CSS
 * Matches branding from Taxi Services page
 */

/* Wrapper Styling */
.mphb_sc_search-wrapper {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    max-width: 100%;
}

/* Form Layout */
.mphb_sc_search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end; /* Align inputs and button at bottom */
}

/* Paragraphs (Inputs wrappers) */
.mphb_sc_search-form p {
    margin-bottom: 0;
    flex: 1 1 200px; /* Responsive flex basis */
}

/* Labels */
.mphb_sc_search-form label {
    display: block;
    font-family: 'Roboto', sans-serif; /* Match Taxi font */
    font-weight: 500;
    color: #1a2b3c; /* Leading Dark Blue */
    margin-bottom: 8px;
    font-size: 14px;
}

/* Inputs & Selects */
.mphb_sc_search-form input[type="text"],
.mphb_sc_search-form input[type="date"],
.mphb_sc_search-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    color: #1a2b3c; /* Leading Dark Blue */
    background-color: #f9f9f9;
    transition: border-color 0.3s ease;
}

.mphb_sc_search-form input[type="text"]:focus,
.mphb_sc_search-form input[type="date"]:focus,
.mphb_sc_search-form select:focus {
    border-color: #0B0BA8; /* Leading Blue */
    outline: none;
    background-color: #fff;
}

/* Submit Button Wrapper */
.mphb_sc_search-submit-button-wrapper {
    flex: 0 0 auto; /* Don't stretch */
}

/* Submit Button */
.mphb_sc_search-form .button {
    background-color: #0B0BA8; /* Leading Blue */
    color: #ffffff !important; /* Force White Text */
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 16px;
    padding: 12px 30px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0; /* Align with inputs */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.mphb_sc_search-form .button:hover {
    background-color: #08087D; /* Darker Blue */
    color: #ffffff !important; /* Force White Text on Hover */
    transform: translateY(-1px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

/* Required Fields Tip - Hide or Style */
.mphb-required-fields-tip {
    width: 100%;
    font-size: 12px;
    color: #777;
    margin-bottom: 15px !important;
    order: -1; /* Move to top */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mphb_sc_search-form {
        flex-direction: column;
    }
    
    .mphb_sc_search-form p,
    .mphb_sc_search-submit-button-wrapper {
        width: 100%;
        flex: 1 1 100%;
    }
    
    .mphb_sc_search-form .button {
        width: 100%;
    }
}
