/*
 * Fichier fusionné et nettoyé : styles essentiels pour le plugin VTC Booking Pro (public)
 * Contient les styles pour la carte, le formulaire, les suggestions, les véhicules, les POI, les alertes et la confirmation.
 */

/* ====== VARIABLES CSS GLOBALES ====== */
:root {
    --danger: #d63638;
    --warning: #ecc94b;
    --success: #48bb78;
    --background: #fff;
    --border: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* ====== DÉBUT DU CSS ISSU DE vtc-booking-pro-public.css ====== */

/* Animation fadeIn centralisée */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Style général du formulaire */
.vtc-booking-form-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    font-family: 'UberMove', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    color: var(--primary);
    background: #fff;

    border-radius: 0.75rem ;
    box-shadow: none;
}

/* Style pour l'étape 1 - Inspiration Uber */
#step-1 {
    margin: 0 auto;

    background: var(--background);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* En-tête de l'étape 1 */
#step-1 .step-header {
    text-align: center;
    margin-bottom: 10px;
}

#step-1 .step-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--secondary);
    margin: 0 0 8px;
}

#step-1 .step-header p {
    font-size: 16px;
    color: var(--gray);
    margin: 0;
}

/* Conteneur des champs de localisation */
.location-fields-container {
    position: relative;
    background: var(--background);
    border-radius: 12px;
    margin-bottom: 16px;

}

/* Style des champs de localisation */
.location-field {
    position: relative;
    padding: 0 16px;
    background: var(--background);
    transition: all 0.2s ease;
}

.location-field:first-child {
    border-radius: 12px 12px 0 0;
}

.location-field:last-child {
    border-radius: 0 0 12px 12px;
}

.location-field:only-child {
    border-radius: 12px;
}

/* Ligne de connexion entre les points */

.location-field:last-child::after {
    display: none;
}

/* Style des groupes d'entrée */
.location-field .input-group {
    position: relative;
    display: flex;
    align-items: center;
    padding: 16px 0;
}

/* Style des icônes */
.location-field .input-group-text {
    background: transparent;
    border: none;
    padding: 0 16px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.location-field .input-group-text .location-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Style des champs de saisie */
.location-field .form-control {
    border: none;
    border-radius: 0;
    padding: 0;
    height: auto;
    font-size: 16px;
    color: var(--primary);
    background: transparent;
    box-shadow: none;
    flex: 1;
    min-height: 24px;
}

.location-field .form-control:focus {
    box-shadow: none;
}

/* Style des étiquettes flottantes */
.location-field .form-floating > label {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    padding: 0 16px 0 0;
    margin-left: 40px;
    color: var(--gray);
    font-size: 16px;
    font-weight: 400;
    transition: all 0.2s ease;
    pointer-events: none;
    white-space: nowrap;
    max-width: calc(100% - 40px);
    text-overflow: ellipsis;
    overflow: hidden;
}

.location-field .form-floating > .form-control:focus ~ label,
.location-field .form-floating > .form-control:not(:placeholder-shown) ~ label,
.location-field .form-floating > .form-control-plaintext ~ label {
    transform: translateY(-180%) scale(0.85);
    transform-origin: left top;
    color: var(--gray);
    padding: 0 4px;
    background: var(--background);
    margin-left: 0;
    left: 40px;
}

/* Bouton d'échange */
#swap-locations {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--background);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: all 0.2s ease;
}

#swap-locations:hover {
    background: var(--background);
    transform: translateY(-50%) scale(1.05);
}

#swap-locations svg {
    width: 10px;
    height: 10px;

}

/* Conteneur date/heure */
.datetime-container {
    background: var(--background);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(var(--primary), 0.05);
}

.datetime-container .form-group {
    margin: 0;
}

/* Style du bouton de recherche */
#search-button {
    width: 100%;
    padding: 16px;
    background: var(--btn);
    color: var(--background);
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 16px;
}

#search-button:hover {
    background: var(--btn-hover);
    transform: translateY(-1px);
}

#search-button:active {
    transform: translateY(0);
}

#search-button:disabled {
    background: var(--border);
    color: var(--gray);
    cursor: not-allowed;
    transform: none;
}

/* Afficher les messages d'erreur uniquement quand nécessaire */
.invalid-feedback {
    display: none;
    margin-top: 4px;
    font-size: 13px;
    color: var(--danger);
    padding: 0 16px 12px;
}

.location-field.is-invalid .invalid-feedback {
    display: block;
}

/* Style des suggestions d'adresse */
.location-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--background);
    border-radius: 0 0 12px 12px;
    box-shadow: var(--shadow);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.location-suggestions.visible {
    display: block;
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.2s ease;
}

.suggestion-item:hover {
    background: var(--background);
}

.suggestion-item i {
    margin-right: 12px;
    color: var(--primary);
    width: 20px;
    text-align: center;
}

.suggestion-item .suggestion-text {
    flex: 1;
}

.suggestion-item .suggestion-main {
    font-weight: 500;
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 2px;
}

.suggestion-item .suggestion-secondary {
    font-size: 13px;
    padding-left:5px;
    color: var(--gray);
}

/* Style pour le bouton de planification */
#schedule-later {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 500;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

#schedule-later:hover {
    background: var(--border);
}

/* Style pour l'affichage du temps */
.pickup-time-display {
    font-weight: 500;
    color: var(--primary);
}

/* Style pour les écrans mobiles */
@media (max-width: 640px) {
    #step-1 {
        padding: 16px;
        border-radius: 0;
        margin: 0;
        min-height: 100vh;
    }
    
    .location-field .form-floating > label {
        font-size: 14px;
    }
    
    #search-button {
        position: fixed;
        bottom: 16px;
        left: 16px;
        right: 16px;
        max-width: calc(100% - 32px);
        margin: 0;
        z-index: 100;
    }
}

/* Étapes de la réservation */
.vtc-booking-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
    padding: 0 20px 40px;
    counter-reset: step;
}

.vtc-booking-steps::before {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 10%;
    right: 10%;
    height: 3px;
    background-color: var(--background);
    z-index: 1;
}

.step-nav-item {
    position: relative;
    text-align: center;
    z-index: 2;
    cursor: pointer;
    transition: all 0.3s ease;
}

.step-nav-item .step-number {
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background-color: var(--background);
    color: var(--gray);
    font-size: 16px;
    margin: 0 auto 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #e9ecef;
}

.step-nav-item .step-label {
    font-size: 14px;
    color: var(--gray);
    font-weight: 500;
    transition: all 0.3s ease;
}

.step-nav-item.active .step-number,
.step-nav-item.completed .step-number {
    background-color: var(--border);
    color: var(--background);
    box-shadow: 0 0 0 2px var(--info);
}

.step-nav-item.active .step-label,
.step-nav-item.completed .step-label {
    color: var(--info);
    font-weight: 600;
}

.step-nav-item.completed .step-number::after {
    content: '✓';
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
}

/* Ligne de progression */
.progress-line {
    position: absolute;
    bottom: 20px;
    left: 10%;
    height: 3px;
    background-color: var(--border);
    z-index: 2;
    transition: width 0.3s ease;
}

/* Styles pour les étapes du formulaire */
.vtc-booking-step {
    display: none;
    padding: 20px;
    background: var(--background);
    border-radius: 8px;
    margin-top: 20px;
}

.vtc-booking-step.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Styles pour les champs du formulaire */
.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    min-height: 65px;
    border-radius: 6px;
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    font-size: 16px;
    color: var(--primary);
    background: var(--background);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(51, 149, 130, 246, 0.1);
    outline: none;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: var(--danger);
    padding: 0 16px 12px;
}

.was-validated .form-control:invalid ~ .invalid-feedback,
.was-validated .form-control:invalid ~ .invalid-tooltip,
.form-control.is-invalid ~ .invalid-feedback,
.form-control.is-invalid ~ .invalid-tooltip {
    display: block;
}

.was-validated .form-control:invalid,
.form-control.is-invalid,
.location-field .form-control.is-invalid,
.location-field.is-invalid .form-control{

    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23d63638'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23d63638' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 35px) center;
    background-size: calc(0.75em + 8px) calc(0.75em + 8px);
}

.location-field .form-control.is-invalid,
.location-field.is-invalid .form-control {
    background-position: right calc(0.375em + 5px) center;
}

/* Styles pour les champs valides */
.was-validated .form-control:valid,
.form-control.is-valid, 
.location-field .form-control.is-valid,
.location-field.is-valid .form-control {

    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2348bb78' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 35px) center;
    background-size: calc(0.75em + 8px) calc(0.75em + 8px);
    border-color: var(--success);
}

.location-field .form-control.is-valid,
.location-field.is-valid .form-control {
    background-position: right calc(0.375em + 5px) center;
}

/* Style pour le sélecteur de date/heure */
#pickup-datetime {
    width: 96%;
    padding:  20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    color: var(--primary);
    margin: 8px 2% 20px 2%;
    box-sizing: border-box;
}

#pickup-datetime:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(var(--primary), 0.1);
}

/* Style pour le formulaire client */
#customer-form-container, #paypal-booking-form {
    margin: 20px auto;
    padding: 24px 0;
    background: var(--background);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(var(--primary), 0.08);
}

#customer-form-container h4, #paypal-booking-form h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 20px 0;
    text-align: center;
}

#customer-form-container .form-group, #paypal-booking-form .form-group {
    margin-bottom: 20px;
}

#customer-form-container label, #paypal-booking-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

#customer-form-container .form-control, #paypal-booking-form .form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    color: var(--primary);
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

#customer-form-container .form-control:focus, #paypal-booking-form .form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(var(--primary), 0.1);
}

#customer-form-container textarea.form-control, #paypal-booking-form textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* Styles pour les états de validation */
#customer-form-container .form-control.is-valid, #paypal-booking-form .form-control.is-valid {

    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2348bb78' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

#customer-form-container .form-control.is-invalid, #paypal-booking-form .form-control.is-invalid {

    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23e53e3e' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23e53e3e' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Style pour la case à cocher */
#customer-form-container .form-check, #paypal-booking-form .form-check {
    display: flex;
    align-items: flex-start;
    margin: 24px 0;
}

#customer-form-container .form-check-input, #paypal-booking-form .form-check-input {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 2px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
}

#customer-form-container .form-check-input:checked, #paypal-booking-form .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

#customer-form-container .form-check-label, #paypal-booking-form .form-check-label {
    font-size: 14px;
    color: var(--primary);
    cursor: pointer;
}

#customer-form-container .form-check-label a, #paypal-booking-form .form-check-label a {
    color: var(--info);
    text-decoration: underline;
}

/* Style pour les boutons d'action */
#customer-form-container .form-actions, #paypal-booking-form .form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
}

#customer-form-container .btn, #paypal-booking-form .btn {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    border: none;
}


 .btn-success {
    background-color: var(--btn);
    color: var(--background);
}
.btn-success:hover {
    background-color: var(--btn-hover);
}

.btn-danger {
    background-color: var(--danger);
    color: var(--background);
}

/* Boutons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--background);
}

.btn-outline-secondary {
    background-color: var(--background);
    color: var(--gray);
    border: 1px solid var(--background);
}

.btn-outline-secondary:hover {
    background-color: var(--background);
    border-color: var(--gray);
}

.btn-confirm {
    background-color: var(--primary);
    color: var(--background);
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
    text-align: center;
    width: 100%;
    margin-top: 10px;
}

.btn-confirm:hover {
    background-color: var(--info);
}

/* Grille responsive */
.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}
.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

/* Styles pour les messages de validation */
.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: var(--danger);
}

.was-validated .form-control:invalid ~ .invalid-feedback {
    display: block;
}



/* Styles pour la carte */
#route-map {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

/* Styles pour les informations d'itinéraire */

/* Route info */
.route-info {
    background: rgba(248, 250, 252, 0.9) !important;
    backdrop-filter: blur(4px);
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

.route-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1e293b;
    font-weight: 500;
}

.route-info-item i {
    color: #2563eb;
}

.leaflet-routing-container-hide{
    display: none;
}

/* Styles pour les champs de localisation */
.location-field {
    position: relative;
}

.location-field i {
    position: absolute;
    left: 7px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    z-index: 2;
}

.location-field .form-control {
    padding-left: 30px;
    padding-right: 45px;

}

/* Styles pour le sélecteur de date/heure */
.input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.input-group-append {
    margin-left: -1px;
    display: flex;
}

.input-group-append .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    position: relative;
    z-index: 2;
}

/* Styles pour les boutons de navigation */
.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* Styles pour les écrans mobiles */
@media (max-width: 768px) {
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    #route-map {
        height: 300px;
    }
    
    .route-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .vehicle-card {
        flex-direction: row;
        text-align: center;
    }
    
}

.vtc-booking-steps .step.active {
    color: var(--info);
    font-weight: 600;
}

.vtc-booking-steps .step.active::after {
    background-color: var(--info);
    width: 14px;
    height: 14px;
    bottom: -16px;
}

/* Conteneur des étapes */
.vtc-booking-step {
    display: none;
    padding: 20px;
   
}

.vtc-booking-step.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Champs du formulaire */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.2);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.btn-confirm {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
    text-align: center;
    width: 100%;
    margin-top: 10px;
}

.btn-confirm:hover {
    background-color: var(--info);
}

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    margin: 20px 0;
}

.terms-checkbox input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
}

.terms-checkbox label {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.5;
}

.terms-checkbox a {
    color: var(--info);
    text-decoration: none;
}

.terms-checkbox a:hover {
    text-decoration: underline;
}

/* Responsive pour la page de confirmation */
@media (max-width: 768px) {
    .booking-details {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .booking-vehicle {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .booking-vehicle-image {
        margin: 0 auto 15px;
        width: 100%;
        height: 180px;
    }
    
    .booking-vehicle-price {
        margin: 15px 0 0;
        text-align: center;
    }
}

/* Animation de chargement */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--background);
    border-radius: 50%;
    border-top-color: var(--info);
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}

/* Messages d'erreur */
.invalid-feedback {
    color: var(--danger);
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

.was-validated .form-control:invalid ~ .invalid-feedback,
.was-validated .form-control:invalid ~ .invalid-tooltip,
.form-control.is-invalid ~ .invalid-feedback,
.form-control.is-invalid ~ .invalid-tooltip {
    display: block;
}


/* Carte */
#route-map {
    width: 100%;
    height: 300px;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(var(--primary), 0.1);
}

/* POI Dropdown Styles */
.poi-dropdown {
    position: static; /* Changé de relative à static pour éviter un nouveau contexte d'empilement */
    display: flex;
    align-items: stretch;
    margin-right: -1px;
    transition: all 0.2s ease;
}

.poi-dropdown .poi-icons {
    display: flex;
    align-items: center;
    padding: 0 0.5rem;

    border-right: none;
    border-radius: 0.375rem 0 0 0.375rem;
    position: relative; /* Pour s'assurer que z-index fonctionne */
    z-index: 1; /* Moins élevé que le menu déroulant */
}

.poi-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-right: none;
    border-radius: 0.375rem 0 0 0.375rem;
    color: var(--gray);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
    z-index: 2;
    height: 100%;
    margin: 0;
    position: relative;
}
.poi-toggle:hover {
    background-color: var(--background);
    color: var(--primary);
    z-index: 3;
}
.poi-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    z-index: 3;
}
.poi-toggle::after {
    display: none;
}

.poi-icons {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
    margin-right: -1px;
    position: relative;
    z-index: 1;
}

.poi-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 29px;
    border-radius: 50%;
    transition: all 0.15s;
    cursor: pointer;
    color: var(--gray);
    font-size: 14px;
    margin: 0 2px;
    position: relative;
    background: transparent;
    border: 1px solid transparent;
}
.poi-icon i {
    font-size: 14px;
    transition: transform 0.2s;
}
.poi-icon:hover {
    color: var(--primary);
    background-color: rgba(var(--primary), 0.1);
}
.poi-icon.active {
    color: var(--primary);
    background-color: rgba(var(--primary), 0.15);
    border-color: rgba(var(--primary), 0.2);
}

.poi-icon.active i {
    color:#fff;
}
.poi-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--danger);
    color: var(--background);
    border-radius: 10px;
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    padding: 0 4px;
    font-weight: bold;
    border: 2px solid var(--background);
}

/* POI Dropdown Menu */
.poi-dropdown-menu {
    position: absolute;
    top: calc(100% + 5px); /* Ajout d'un petit espace */
    left: 0;
    z-index: 1060;
    display: none;
    min-width: 280px;
    max-height: 70vh;
    overflow-y: auto;
    margin: 0.25rem 0 0;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: var(--primary);
    text-align: left;
    background-color: var(--background);
    background-clip: padding-box;
    border: 1px solid rgba(var(--primary), 0.15);
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(var(--primary), 0.15);
    transform: translateY(5px);
    opacity: 0;
    transition: opacity 0.15s, transform 0.15s;
    scrollbar-width: thin;
    scrollbar-color: var(--border) var(--background);
}
.poi-dropdown-menu.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeIn 0.2s ease-out;
}
/* ====== POPUP D'ERREUR ====== */
.vtc-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

.vtc-popup-content {
    background-color: white;
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: vtc-popup-fadeIn 0.3s ease-out;
}

@keyframes vtc-popup-fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.vtc-popup-header {
    background-color: var(--danger);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vtc-popup-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.vtc-popup-close {
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.vtc-popup-close:hover {
    opacity: 1;
}

.vtc-popup-body {
    padding: 20px;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

.vtc-popup-footer {
    padding: 15px 20px;
    text-align: right;
    border-top: 1px solid #eee;
}

.vtc-popup-button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.vtc-popup-button:hover {
    background-color: #333;
}

/* Responsive pour la popup */
@media (max-width: 576px) {
    .vtc-popup-content {
        width: 95%;
        margin: 0 10px;
    }
    
    .vtc-popup-body {
        padding: 15px;
        font-size: 15px;
    }
}

/* Styles existants */
.poi-dropdown-menu .dropdown-header {
    display: block;
    padding: 0.5rem 1.5rem 0.25rem;
    margin: 0;
    font-size: 0.7rem;
    color: var(--gray);
    white-space: nowrap;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    background-color: var(--background);
    position: sticky;
    top: 0;
    z-index: 1;
    border-bottom: 1px solid var(--border);
}
.poi-dropdown-menu .dropdown-item {
    display: block;
    padding: 0.5rem 1.5rem;
    clear: both;
    text-decoration:none;
    font-weight: 400;
    color: var(--primary);
    text-align: inherit;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    background-color: transparent;
    border: 0;
    transition: all 0.15s;
    cursor: pointer;
    position: relative;
    border-left: 3px solid transparent;
}
.poi-dropdown-menu .dropdown-item:hover {
    color: var(--primary);
    background-color: var(--background);
    padding-left: 1.75rem;
    border-left-color: var(--primary);
}
.poi-dropdown-menu .dropdown-item:active {
    background-color: var(--background);
}
.poi-dropdown-menu .dropdown-divider {
    height: 0;
    margin: 0.5rem 0;
    overflow: hidden;
    border-top: 1px solid var(--border);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    #route-map { height: 300px; }
    .route-info { flex-direction: column; gap: 0.5rem; }
    .vehicles-list { flex-direction: column; }
    .vehicle-card { max-width: 100%; min-width: 0; }
    .col-md-6 { flex: 0 0 100%; max-width: 100%; }
    .booking-details { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .booking-vehicle { flex-direction: column; text-align: center; padding: 15px; }
    .booking-vehicle-image { margin: 0 auto 15px; width: 100%; height: 180px; }
    .booking-vehicle-price { margin: 15px 0 0; text-align: center; }
    #route-map { height: 300px; }
    .route-info { flex-direction: column; gap: 10px; }
    .vehicle-card { flex-direction: row; text-align: center; }
    .vehicle-image { width: 100%; height: 120px; }
}
@media (max-width: 640px) {
    .booking-step { padding: 12px 4px; }
    .step-header h2 { font-size: 1.1rem; }
    .btn-lg { font-size: 1rem; padding: 0.5rem 1rem; }
    #step-1 { padding: 16px; border-radius: 0; margin: 0; min-height: 100vh; }
    .location-field .form-floating > label { font-size: 14px; }
    #search-button { position: fixed; bottom: 16px; left: 16px; right: 16px; max-width: calc(100% - 32px); margin: 0; z-index: 100; }
}
@media (max-width: 767.98px) {
    .poi-dropdown { 
        flex-direction: column; 
        width: 100%; 
        position: relative;
        margin-bottom: 0;
    }
    
    .poi-dropdown .poi-toggle { 
        display: none; 
    }
    
    .poi-dropdown .poi-icons { 
        width: 100%; 
        justify-content: center; 
        border: none; 
        padding: 0.5rem 0; 
        margin: 0 0 0.5rem 0; 
        background: transparent; 
        flex-wrap: wrap;
    }
    
    .poi-dropdown .poi-icon { 
        width: 40px; 
        height: 40px; 
        margin: 0 0.5rem 0.5rem; 
    }
    
    .poi-dropdown-menu { 
        position: fixed; 
        top: auto !important; 
        bottom: 80px; /* Espace pour le bouton "Voir les véhicules" */
        left: 0 !important; 
        right: 0; 
        width: 100%; 
        max-height: 50vh; /* Réduit la hauteur maximale */
        margin: 0; 
        border-radius: 0.5rem 0.5rem 0 0; 
        transform: translateY(100%); 
        padding-bottom: 15px; /* Espace en bas */
        overflow-y: auto;
        z-index: 1050;
        box-shadow: 0 -4px 20px rgba(var(--primary), 0.1);
    }
    
    .poi-dropdown-menu.show { 
        transform: translateY(0); 
    }
    
    .poi-dropdown-menu:before { 
        content: ''; 
        display: block; 
        width: 40px; 
        height: 4px; 
        background-color: var(--border); 
        border-radius: 2px; 
        margin: 0.5rem auto;
        cursor: pointer;
    }
    
    /* Overlay pour fermer le menu en cliquant à l'extérieur */
    .poi-dropdown-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(var(--primary), 0.5);
        z-index: 1040;
    }
    
    .poi-dropdown-menu.show + .poi-dropdown-overlay {
        display: block;
    }
    
    .input-group > .form-control { 
        width: 100%; 
    }
}


/* ====== FIN DU CSS ISSU DE vtc-booking-pro-public.css ====== */




@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* Booking Card - Same style as index.html cards */
.booking-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: none;
    overflow: hidden;
}

.booking-step {
    width: 100%;
}

.step-content {
    padding: 1.5rem;
}

/* Step header - Same as card header in index.html */
.step-header {
    background: linear-gradient(90deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 1.5rem;
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
    border-radius: 0.75rem 0.75rem 0 0;
}

.step-header h2 {
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step-header h2:before {
    content: "";
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'%3E%3C/path%3E%3Ccircle cx='12' cy='10' r='3'%3E%3C/circle%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* Location fields container */
.location-fields-container {
    position: relative;
    margin: 1.5rem 0;
}

/* Swap button - Same style as buttons in index.html */
#swap-locations {
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: #2563eb;
    border: none;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.4);
}

#swap-locations:hover {
    background: #1d4ed8;
    transform: translateY(-50%) scale(1.05);
}

#swap-locations svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Location fields */
.location-field {
    margin-bottom: 1rem;
    position: relative;
}

.location-field:first-child::before {
    content: "Point de prise en charge";
    position: absolute;
    top: -25px;
    left: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    background: #f8fafc;
    padding: 0 0.5rem;
    z-index: 5;
}



.location-field:first-child::after {
    content: "";
    position: absolute;
    left: 15px;
    top: 20px;
    width: 0.75rem;
    height: 0.75rem;
    background-color: #10b981;
    border-radius: 50%;
    z-index: 5;
}

.location-field:last-child::after {
    content: "";
    position: absolute;
    left: 15px;
    top: 20px;
    width: 0.75rem;
    height: 0.75rem;
    background-color: #ef4444;
    border-radius: 50%;
    z-index: 5;
}

/* Input group */
.input-group {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 3rem;
}

.input-group:focus-visible {
    border:none;
}


.input-group:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* POI Icons */
.poi-dropdown {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.poi-icons {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.poi-icon {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #718096;
    display: flex;
    align-items: center;
    justify-content: center;
}

.poi-icon:hover {
    background: #f7fafc;
    color: #2563eb;
    transform: scale(1.05);
}

.poi-icon.active {
    background: #2563eb;
    color: white;
}

#geolocate-btn {
    color: #16a34a;
}

#geolocate-btn:hover {
    color: #15803d;
    background: #f0fff4;
}

/* Form control - Same style as inputs in index.html */
.form-control {
    flex: 1;
    border: none;
    padding: 0.75rem;
    font-size: 1rem;
    background: transparent;
    outline: none;
    color: #1e293b;
}

.form-control::placeholder {
    color: #94a3b8;
}

/* POI Dropdown Menu */
.poi-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 20;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.poi-dropdown-menu.show {
    display: block;
}

.poi-dropdown-menu li {
    list-style: none;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f7fafc;
}

.poi-dropdown-menu li:hover {
    background: #f7fafc;
}

.poi-dropdown-menu li:last-child {
    border-bottom: none;
}

/* Suggestions */
.location-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 20;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.location-suggestions.show {
    display: block;
}

.suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f7fafc;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.suggestion-item:hover {
    background: #f7fafc;
}

.suggestion-item:last-child {
    border-bottom: none;
}

/* Form group */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group input[type="datetime-local"] {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: #1e293b;
    font-weight: 500;
    background: #f8fafc;
}

.form-group input[type="datetime-local"]:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: white;
}

/* Search button - Same style as confirm button in index.html */
.btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.4);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn:hover:not(:disabled) {
    background: #1d4ed8;
    transform: translateY(-2px) scale(1.02);
}

.btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

/* Results card - Same as booking card */
.results-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: none;
    overflow: hidden;
    padding: 1.5rem;
    border-left: 4px solid #16a34a;
    animation: slideUp 0.4s ease-out;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.results-header h3 {
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.results-header button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #718096;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: color 0.2s ease;
}

.results-header button:hover {
    color: #e53e3e;
}

/* Journey summary - Same style as location items in index.html */
.journey-summary {
    margin-bottom: 1.5rem;
}

.journey-route {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.route-point {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: #1e293b;
}

.route-point.pickup i {
    color: #10b981;
}

.route-point.dropoff i {
    color: #ef4444;
}

.route-line {
    width: 2px;
    height: 20px;
    background: linear-gradient(to bottom, #10b981, #ef4444);
    margin-left: 0.5rem;
}

.journey-datetime {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #4a5568;
    font-weight: 500;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 0.5rem;
}

.journey-datetime i {
    color: #2563eb;
}

.results-message {
    color: #718096;
    font-style: italic;
    text-align: center;
    margin: 0;
    padding: 1rem;
    background: #eff6ff;
    border-radius: 0.5rem;
    border: 1px solid #dbeafe;
}


.back-to-step1, .back-to-step2{
    width:50%;
    background-color: var(--border);
}
/* Toast - Same as index.html */
.toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    border-left: 4px solid #10b981;
    max-width: 300px;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.toast-icon {
    flex-shrink: 0;
}

.toast-icon i {
    font-size: 1.25rem;
    color: #10b981;
}

.toast-text {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.toast-description {
    font-size: 0.875rem;
    color: #64748b;
}

/* Styles pour l'étape 4 - Récapitulatif */
.booking-summary {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.booking-summary .step-header {
    margin-bottom: 1.5rem;
}

.booking-summary h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 500;
    color: #fff;

}

.booking-summary .icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #fff;
}

.datetime-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background-color: #f8fafc;
    border-radius: 0.5rem;
}

.booking-price{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(90deg, #fef3c7 0%, #fed7aa 100%);
    border-radius: 0.5rem;
    border: 1px solid #f59e0b;
}

.price-value{

    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
}
/* Location sections */
.location-section {
    width: 100%;
    margin: 0 1rem 1.5rem 1rem;
}

.location-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
}

.location-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-top: 8px;
    flex-shrink: 0;
}

.pickup-dot {
    background-color: #10b981;
}

.destination-dot {
    background-color: #ef4444;
}

.location-info {
    flex: 1;
}

.location-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.location-text {
    color: #1e293b;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
}

/* Date & Time Section */
.datetime-section {
    width: 100%;
    margin-bottom: 1.5rem;
}


.datetime-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background-color: #f8fafc;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}

.datetime-item .icon {
    color: #2563eb;
    margin-top: 2px;
}

.datetime-label {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 0.25rem 0;
}

.datetime-value {
    font-weight: 500;
    color: #1e293b;
    margin: 0;
}


.number-section {
    width: 100%;
    margin: 1rem;
    font-size: 16px;
}

.d-block{
    display: block !important;
}
/* Price Section */
.price-section {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(90deg, #fef3c7 0%, #fed7aa 100%);
    border-radius: 0.5rem;
    border: 1px solid #f59e0b;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    align-content: flex-start;
    flex-wrap: wrap;
    justify-content: space-between;
}

.price-label {
    font-size: 1rem;
    font-weight: 500;
    color:#b45309;
}

.price-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #166534;
}

/* Compatibilité avec les classes existantes */
.booking-summary .summary-item {
    margin-bottom: 1.25rem;
}

/* Styles pour les options de paiement */
.booking-method-selector {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.payment-option:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.payment-option.is-selected {
    border-color: #3b82f6;
    background-color: #f8fafc;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.payment-option[data-payment="onboard"].is-selected, .payment-option[data-payment="stripe"].is-selected, .payment-option[data-payment="paypal"].is-selected {
    border-color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.payment-option[data-payment="phone"] {
    border-left: 4px solid #3b82f6;
}

.payment-option[data-payment="onboard"] {
    border-left: 4px solid #10b981;
}

.payment-option[data-payment="stripe"] {
    border-left: 4px solid #10b981;
}

.payment-option[data-payment="paypal"] {
    border-left: 4px solid #10b981;
}



.payment-option[data-payment="stripe"] .payment-icon {
    background-color: #dcfce7;
    color: #10b981;

}

.payment-option[data-payment="paypal"] .payment-icon {
    background-color: #dcfce7;
    color: #10b981;

}



.payment-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #eff6ff;
    margin-right: 1rem;
    flex-shrink: 0;
}

.payment-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 1rem;
    flex-shrink: 0;
}

.payment-icon.phone-icon {
    background-color: #dbeafe;
    color: #3b82f6;
}

.payment-icon.card-icon {
    background-color: #dcfce7;
    color: #10b981;
}

.payment-icon .icon {
    width: 24px;
    height: 24px;
}

.payment-icon .icon {
    width: 24px;
    height: 24px;
}

.payment-info {
    flex-grow: 1;
    margin-right: 1rem;
}

.payment-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.25rem 0;
}

.payment-desc {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 0.5rem 0;
}

.phone-number {
    font-weight: 500;
    color: #3b82f6;
}

.phone-number a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.phone-number a:hover {
    text-decoration: underline;
}

.payment-radio {
    position: relative;
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
    margin-left: auto;
}

.payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.payment-radio .radio-inner {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: transparent;
    transition: all 0.2s ease;
}

.payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.payment-option input[type="radio"]:checked + .radio-inner {
    background-color: #3b82f6;
}

.payment-option[data-payment="onboard"] input[type="radio"]:checked + .radio-inner, .payment-option[data-payment="stripe"] input[type="radio"]:checked + .radio-inner, .payment-option[data-payment="paypal"] input[type="radio"]:checked + .radio-inner {
    background-color: #10b981;
}

.payment-option input[type="radio"]:checked ~ .payment-radio {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

/* Style pour le bouton de soumission */
#submit-booking {
    width: 100%;
    margin-top: 1.5rem;
}

.booking-summary .summary-item:last-child {
    margin-bottom: 0;
}

.booking-summary strong {
    display: block;
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.booking-summary p {
    color: #1e293b;
    font-weight: 500;
    line-height: 1.6;
    font-size:16px;
    margin: 0;
}

.booking-method-selector {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.booking-method-selector h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.booking-method-selector label {
    display: inline-flex;
    align-items: center;
    margin-right: 1.5rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    font-weight: 500;
    color: #334155;
    transition: color 0.2s;
}

.booking-method-selector label:hover {
    color: #2563eb;
}

.booking-method-selector input[type="radio"] {
    margin-right: 0.5rem;
    width: 1.1em;
    height: 1.1em;
}

/* Styles pour les formulaires de paiement */
.booking-method-form {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.booking-method-form h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #1e293b;
    font-size: 1.1rem;
}

.booking-method-form p {
    margin-bottom: 1.5rem;
    color: #475569;
    line-height: 1.6;
}

/* Badge de référence */
.booking-badge {
    display: inline-block;
    font-size: 1rem;
    padding: 0.4rem 0.8rem;
    background: #2563eb;
    color: white;
    border-radius: 0.375rem;
    font-weight: 500;
    margin-left: 0.5rem;
    border: 2px solid #2563eb;
}

/* Spinner */
.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: text-bottom;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

.spinner-border-sm {
    width: 0.875rem;
    height: 0.875rem;
    border-width: 0.2em;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utility classes */
.text-center { text-align: center; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.text-muted { color: #6c757d; }
.visually-hidden { 
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem 0.5rem;
    }
    
    .title {
        font-size: 1.5rem;
    }
    
    #swap-locations {
        position: static;
        transform: none;
        margin: 0.5rem auto;
        display: block;
    }
    
    .toast {
        right: 1rem;
        left: 1rem;
        top: 1rem;
        max-width: none;
    }
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}






.vehicle-selection h4 {
    color: #1e293b;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.vehicles-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.vehicle-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vehicle-item:hover {
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.vehicle-item.selected {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.vehicle-radio {
    flex-shrink: 0;
}

.vehicle-radio input[type="radio"] {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: #2563eb;
}

.vehicle-image {
    flex-shrink: 0;
    width: 250px;
    height: 100px;
}

.vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
}

.vehicle-details {
    flex: 1;
    min-width: 0;
}

.vehicle-name {
    color: #1e293b;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.vehicle-features {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.4;
}

.vehicle-features i {
    color: #2563eb;
    margin-right: 0.25rem;
}

.vehicle-multiplier {
    color: #f59e0b;
    font-weight: 600;
}

.price-details {
    margin-top: 0.5rem;
}

.price-details small {
    color: #64748b;
    line-height: 1.4;
}

.vehicle-price {
    flex-shrink: 0;
    text-align: right;
    color: #1e293b;
    font-weight: 600;
}

.price-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: #16a34a;
}
