/* assets/css/ukride-styles.css */

.ukride-booking-container {
    font-family: 'Poppins', sans-serif;
}
.bookingform-heading {
    font-size: 14px;
    font-weight: 500;
    margin: auto;
    text-align: center !important;
    background: #000000;
    margin-bottom: -16px;
    /* padding-bottom: 10px; */
    padding-top: 10px;
    align-items: center;
    color: #fff;
    border-radius: 9px 9px 0px 0px;
    width: 87%;
    display: flex;
    justify-content: center;
}
/*this class need to be fixed later properly this is temp solution*/
.form-group.d-flex.align-items-center {
    justify-content: flex-end;
}
label {
    display: inline-block;
    margin-bottom: 0;
    font-size: 13px;
}

.vehicle-type-toggles {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: white;
    margin: 10px 0;
    justify-content: center;
}

.vehicle-type-toggles .toggle-vehicle-type {
    background-color: #fff;
    border: 1px solid #ccc;
    color: #333;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    padding: 8px 15px;
    font-size: 14px;
    flex: 0 1 auto;
    text-align: center;
    min-width: 100px;
    margin: 5px;
}

.vehicle-type-toggles .toggle-vehicle-type.active {
    background-color: #ff9800;
    color: #fff;
}

.vehicle-type-toggles .toggle-vehicle-type:hover {
    background-color: #ffb74d;
    color: #fff;
    cursor: pointer;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .vehicle-type-toggles {
        justify-content: flex-start;
        overflow-x: auto;
        padding: 10px 0;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        gap: 5px;
    }

    .vehicle-type-toggles .toggle-vehicle-type {
        font-size: 12px;
        padding: 6px 12px;
        min-width: auto;
        white-space: nowrap;
        margin: 2px;
        flex: 0 0 auto;
    }
}

/* Small Mobile Screens */
@media (max-width: 480px) {
    .vehicle-type-toggles {
        justify-content: flex-start;
        padding: 5px 0;
    }

    .vehicle-type-toggles .toggle-vehicle-type {
        font-size: 11px;
        padding: 5px 10px;
    }
}

/* Form Styles */
.form-background {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.form-group {
    position: relative;
    margin-bottom: 10px;
}

.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 10px 40px 10px 15px;
    transition: border-color 0.3s ease;
    height: auto !important;
    background: #e9ecef8f;
}

.form-control:focus {
    border-color: #ff9800;
    box-shadow: 0 0 0 0.2rem rgba(255, 152, 0, 0.25);
}

.icon, .icon_location, .icon_location_dropoff, .icon_location_via {
    position: absolute;
    right: 10px;
    top: 50%;
    /* transform: translateY(-50%); */
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.btn-get-quote {
    background: linear-gradient(45deg, #d7b65d, #b69847);
    border: none;
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-get-quote:hover {
   background: linear-gradient(45deg, #d7b65d, #b69847);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.4);
}

/* Selected Items Styles */
.selected-item, .selected-item-return, .selected-item-now {
    display: inline-flex;
    align-items: center;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    padding: 5px 15px;
    margin: 2px 5px 2px 0; /* Changed margin to prevent stacking */
    font-size: 12px;
    color: #495057;
    white-space: nowrap; /* Prevent text wrapping */
    max-width: 100%; /* Prevent overflow */
    overflow: hidden;
    text-overflow: ellipsis;
}

.selected-item .fa-times, 
.selected-item-return .fa-times, 
.selected-item-now .fa-times {
    margin-left: 8px;
    cursor: pointer;
    color: #dc3545;
    flex-shrink: 0; /* Prevent shrinking */
}

.selected-item .fa-times:hover, 
.selected-item-return .fa-times:hover, 
.selected-item-now .fa-times:hover {
    color: #c82333;
}


/* Container for selected items to prevent width issues */
.selected-items, #selected-items, #selected-items-return {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    max-width: 100%;
    overflow: hidden;
    margin-top: 5px;
}

/* Form container improvements */
.form-background {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    max-width: 100%;
    overflow: hidden; /* Prevent horizontal scroll */
}

/* Via Section Styles */
.via-input-container {
    position: relative;
}

/* Form row improvements */
/* .form-row {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
} */

.form-row .col,
.form-row .col-sm-12,
.form-row .col-md-6 {
    padding-left: 5px;
    padding-right: 5px;
    max-width: 100%;
}

/* Via section improvements */
.via-section, #via-section, #return-via-section {
    width: 100%;
    max-width: 100%;
}

.via-input-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-bottom: 15px;
}

.via-input-container .position-relative {
    width: 100%;
}

.via-input-container input[type="text"] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Form transition effects */
#booking-form {
    transition: opacity 0.3s ease-in-out;
}

#return-form {
    transition: opacity 0.3s ease-in-out;
}

#return-form.hidden {
    display: none !important;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .form-background {
        padding: 20px;
        margin: 10px;
    }
    
    .selected-item, .selected-item-return, .selected-item-now {
        font-size: 11px;
        padding: 4px 12px;
        margin: 2px 3px 2px 0;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .col-md-6.col-lg-4 {
        max-width: 100%;
        flex: 0 0 100%;
    }
   
}

@media (max-width: 576px) {
    .selected-item, .selected-item-return, .selected-item-now {
        font-size: 10px;
        padding: 3px 10px;
        margin: 1px 2px 1px 0;
    }
    
    .form-background {
        padding: 15px;
        margin: 5px;
    }
}

/* Button improvements */
#open-booking-form {
    transition: all 0.3s ease;
    max-width: 200px;
    white-space: nowrap;
}

#return-journey-toggle {
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
}

#return-journey-toggle:hover {
    color: #f57c00 !important;
}

/* Via toggle improvements */
#via-toggle, #return-via-toggle {
    cursor: pointer;
    user-select: none;
    transition: color 0.3s ease;
}

#via-toggle:hover, #return-via-toggle:hover {
    color: #f57c00 !important;
}

/* Prevent form overflow */
.ukride-booking-container {
    max-width: 100%;
    overflow-x: hidden;
}

.ukride-booking-container * {
    box-sizing: border-box;
}

/* Enhanced via close button */
.via-close-btn {
    right: 30px;
    cursor: pointer;
    color: #dc3545;
    font-weight: bold;
    font-size: 18px;
    z-index: 10;
    transition: color 0.3s ease;
}

.via-close-btn:hover {
    color: #c82333;
    /* transform: scale(1.1); */
}

.input-addon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.via-close-btn {
    right: 30px;
    cursor: pointer;
    color: #dc3545;
    font-weight: bold;
    font-size: 18px;
}

.via-close-btn:hover {
    color: #c82333;
}

/* Hidden Class */
.hidden {
    display: none !important;
}

/* Loading Spinner */
.circle-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.circle {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #ff9800;
    margin: 0 5px;
    animation: bounce 1.4s ease-in-out infinite both;
}

.circle:nth-child(1) { animation-delay: -0.32s; }
.circle:nth-child(2) { animation-delay: -0.16s; }
.circle:nth-child(3) { animation-delay: 0s; }
.circle:nth-child(4) { animation-delay: 0.16s; }

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    } 40% {
        transform: scale(1);
    }
}

/* Address Autocomplete Styles */
.search-results {
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    max-height: 280px;
    overflow-y: auto;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
    margin-top: 4px;
    z-index: 9999;
    width: 110%;
    position: absolute;
    left: -5%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.suggestion-header {
    padding: 6px 12px;
    font-size: 10px;
    color: #6b7280;
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
    font-size: 11px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    position: relative;
}

.suggestion-item:hover, .suggestion-item.active {
    background-color: #f9fafb;
}

.suggestion-address {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 24px;
}

.suggestion-postcode {
    margin-left: 8px;
    color: #4a5568;
    font-weight: 600;
    background-color: #f0f4f8;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 10px;
}

/* Type indicators */
.suggestion-item::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px;
}

.suggestion-item.airport-item::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%236B7280" viewBox="0 0 24 24"><path d="M21 16v-2l-8-5V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z"/></svg>');
}

.suggestion-item.postcode-area-item::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%236B7280" viewBox="0 0 24 24"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>');
}

.suggestion-item.here-maps-item::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%236B7280" viewBox="0 0 24 24"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"/></svg>');
}

.suggestion-empty, .suggestion-error, .suggestion-prompt, .suggestion-loading {
    padding: 10px 12px;
    color: #6b7280;
    text-align: center;
    font-size: 11px;
}

.suggestion-loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    margin-right: 8px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-background {
        padding: 20px;
        margin: 10px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .col-md-6.col-lg-4 {
        max-width: 100%;
        flex: 0 0 100%;
    }
}

/* Text Link Styles */
.text-link {
    color: #ff9800;
    text-decoration: none;
}

.text-link:hover {
    color: #f57c00;
    text-decoration: none;
}

/* Alert Styles */
.alert {
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Custom Dropdown */
.custom-dropdown select {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23666"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    padding-right: 40px;
}






/* Vehicle Quotes Page Styles */
.ukride-quotes-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Journey Summary */
.journey-summary {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.journey-info h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.journey-info p {
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.journey-details {
    margin-top: 15px;
}

.journey-details .badge {
    margin-right: 8px;
    padding: 6px 12px;
    font-size: 12px;
}

.return-journey-info {
    border-left: 4px solid #007bff;
}

/* Route Map */
.route-map {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

#map-content {
    width: 100%;
    height: 300px;
}

/* Vehicle Filter Tabs */
.vehicle-filter-tabs .nav-pills .nav-link {
    border-radius: 25px;
    margin: 0 5px;
    padding: 8px 20px;
    color: #6c757d;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.vehicle-filter-tabs .nav-pills .nav-link:hover,
.vehicle-filter-tabs .nav-pills .nav-link.active {
    background: #ff6b35;
    color: white;
    border-color: #ff6b35;
}

/* Vehicles Grid */
.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Vehicle Card */
.vehicle-card {
    transition: all 0.3s ease;
}

.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.vehicle-option {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.vehicle-option:hover {
    border-color: #ff6b35;
}

.vehicle-option.selected {
    border-color: #28a745;
    background: #f8fff8;
}

/* Card Header */
.vehicle-option .card-header {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 15px;
    position: relative;
}

.vehicle-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.discount-badge {
    position: absolute;
    top: -1px;
    right: -1px;
    background: #dc3545;
    color: white;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: bold;
    border-radius: 0 12px 0 8px;
}

/* Vehicle Icon */
.vehicle-icon {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vehicle-image {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
}

/* Vehicle Specs */
.vehicle-specs {
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.spec-item i {
    color: #6c757d;
    font-size: 18px;
}

.spec-item span {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* Pricing */
.pricing {
    text-align: center;
}

.original-price {
    font-size: 14px;
    color: #dc3545;
    text-decoration: line-through;
    margin-bottom: 5px;
}

.current-price {
    font-size: 24px;
    font-weight: bold;
    color: #28a745;
}

.return-pricing {
    font-size: 12px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
}

/* Book Button */
.btn-book-vehicle {
    background: #ff6b35;
    border: none;
    color: white;
    font-weight: 600;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-book-vehicle:hover {
    background: #e55a2e;
    color: white;
    transform: translateY(-2px);
}

.btn-book-vehicle:active {
    transform: translateY(0);
}

/* Loading Spinner */
.circle-loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    display: flex;
    gap: 10px;
}

.circle {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #ff6b35;
    animation: bounce 1.4s ease-in-out infinite both;
}

.circle:nth-child(1) { animation-delay: -0.32s; }
.circle:nth-child(2) { animation-delay: -0.16s; }
.circle:nth-child(3) { animation-delay: 0s; }
.circle:nth-child(4) { animation-delay: 0.16s; }

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* Modal Styling */
.modal-header {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.modal-title {
    color: #333;
    font-weight: 600;
}

#modalVehicleDetails {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

#modalJourneyDetails {
    border: 1px solid #dee2e6;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

#modalPricingBreakdown {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 15px;
    border-radius: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ukride-quotes-container {
        padding: 15px;
    }
    
    .vehicles-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .journey-summary {
        padding: 15px;
    }
    
    .vehicle-filter-tabs .nav-pills {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .vehicle-filter-tabs .nav-pills .nav-link {
        margin: 2px;
        padding: 6px 15px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .vehicle-specs {
        flex-direction: column;
        gap: 10px;
    }
    
    .spec-item {
        flex-direction: row;
        justify-content: space-between;
        padding: 0 20px;
    }
    
    .current-price {
        font-size: 20px;
    }
}

/* Animation for filtering */
.vehicle-card {
    transition: all 0.3s ease;
}

.vehicle-card.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

/* Success States */
.alert-info {
    border-left: 4px solid #17a2b8;
}

.badge-info {
    background-color: #17a2b8;
}

.badge-secondary {
    background-color: #6c757d;
}

.ukride-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.7);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ukride-loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.ukride-loader-text {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
    max-width: 90vw;
}

/* Hide default arrow for select fields */
.no-arrow-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: none !important;
}

