/* WP Taxi Booking Pro Styles */

:root {
    --wtbp-primary-color: #d8487b; /* Custom Pink from image */
    --wtbp-secondary-color: #6c757d;
    --wtbp-bg-color: #f7f7f7; /* Light background for form */
    --wtbp-border-color: #ddd;
    --wtbp-text-color: #333;
}

#wtbp-booking-form-wrapper {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* --- STEP 1: QUOTE (HORIZONTAL) --- */
#wtbp-quote-step {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    background: var(--wtbp-bg-color);
    border-radius: 8px;
}

.wtbp-input-group {
    padding: 5px 10px;
}

.wtbp-input-group label {
    display: block;
    font-size: 0.85em;
    font-weight: 600;
    color: var(--wtbp-secondary-color);
    margin-bottom: 5px;
}

/* Location Inputs (The largest block) */
.wtbp-location {
    flex-grow: 3; /* Allows it to take up most space */
    min-width: 300px; /* Minimum width before breaking */
    display: flex;
    gap: 10px;
}
.wtbp-location-from, .wtbp-location-to {
    flex-grow: 1;
}
.wtbp-location input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--wtbp-border-color);
    border-radius: 5px;
}

/* Trip Type Radios */
.wtbp-trip-type {
    flex-basis: 100px;
    padding-top: 25px; /* Align with input block */
    display: flex;
    flex-direction: column;
}
.wtbp-radio-label {
    font-weight: normal;
    font-size: 0.9em;
    cursor: pointer;
}
.wtbp-radio-label input[type="radio"] {
    margin-right: 5px;
}

/* Date & Time Inputs */
.wtbp-datetime {
    flex-basis: 200px;
}
.wtbp-datetime input {
    width: calc(50% - 5px);
    padding: 10px;
    border: 1px solid var(--wtbp-border-color);
    border-radius: 5px;
}
.wtbp-datetime input:first-child { margin-right: 5px; }

/* Select Inputs (Passengers/Luggage) */
.wtbp-passengers, .wtbp-luggage {
    flex-basis: 90px;
}
.wtbp-passengers select, .wtbp-luggage select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--wtbp-border-color);
    border-radius: 5px;
    min-height: 40px;
}

/* Get Quotes Button */
#wtbp-get-quotes-btn {
    flex-grow: 1;
    min-width: 150px;
    padding: 15px 20px;
    background-color: var(--wtbp-primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}
#wtbp-get-quotes-btn:hover:not(:disabled) {
    background-color: #b83d67;
}
#wtbp-get-quotes-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* --- STEP 2: DETAILS/BOOKING (COLLAPSIBLE) --- */

/* Vehicle Selection */
#wtbp-vehicle-selection {
    margin-top: 30px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
}
.wtbp-vehicle-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.wtbp-vehicle-card {
    flex: 1 1 250px; /* Responsive grid */
    min-width: 250px;
    cursor: pointer;
}
.wtbp-card-inner {
    border: 2px solid var(--wtbp-border-color);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.2s;
}
.wtbp-vehicle-card input[type="radio"]:checked + .wtbp-card-inner {
    border-color: var(--wtbp-primary-color);
    background: #fdf5f8;
}
.wtbp-vehicle-name { font-weight: bold; font-size: 1.1em; }
.wtbp-vehicle-details { font-size: 0.9em; color: #666; margin-top: 5px; }
.wtbp-vehicle-details span { margin-right: 15px; }
.wtbp-vehicle-price { font-weight: bold; color: var(--wtbp-primary-color); margin-top: 10px; }

/* Passenger Details */
.wtbp-section-passenger, .wtbp-section-payment {
    margin-top: 30px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
}
.wtbp-details-group input {
    width: calc(33.33% - 10px);
    margin-right: 15px;
    padding: 10px;
    border: 1px solid var(--wtbp-border-color);
    border-radius: 5px;
    box-sizing: border-box;
}

/* Payment */
.wtbp-final-fare-summary {
    font-size: 1.4em;
    font-weight: bold;
    color: var(--wtbp-primary-color);
}
.wtbp-payment-options { margin-top: 10px; }
.wtbp-card-element { border: 1px solid #ccc; padding: 10px; margin-top: 10px; }

/* Back/Confirm Buttons */
.wtbp-back-btn, #wtbp-submit-btn {
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s;
}
.wtbp-back-btn {
    background: #ccc;
    color: #333;
    border: none;
    margin-right: 10px;
}
#wtbp-submit-btn {
    background-color: var(--wtbp-primary-color);
    color: white;
    border: none;
}

/* Validation Styles */
input:invalid:not(:focus):not(:placeholder-shown) {
    border-color: red !important;
}

/* --- Responsiveness --- */
@media (max-width: 768px) {
    #wtbp-quote-step {
        display: block; /* Stack inputs vertically */
        padding: 0;
    }
    .wtbp-input-group {
        padding: 10px 0;
        width: 100%;
        box-sizing: border-box;
    }
    .wtbp-location {
        flex-direction: column;
        min-width: auto;
    }
    .wtbp-datetime input, .wtbp-details-group input {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
    .wtbp-trip-type {
        padding-top: 0;
        flex-direction: row;
        gap: 20px;
    }
    .wtbp-passengers, .wtbp-luggage {
        width: calc(50% - 10px);
        display: inline-block;
    }
    .wtbp-luggage { margin-left: 20px; }
    #wtbp-get-quotes-btn { width: 100%; }
    .wtbp-vehicle-list { justify-content: center; } /* Center cards on mobile */
    .wtbp-details-group input:last-child { margin-right: 0; }
}
