/* --- VARIABLES DE LUXE (PREMIUM) --- */
:root {
    --lux-gold-gradient: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    --lux-black-gradient: linear-gradient(145deg, #1a1a1a, #000000);
    --lux-white: #ffffff;
    --lux-light-grey: #f8f8f8;
    --lux-border: #e1e1e1;
    --lux-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* --- CONTENEUR PRINCIPAL --- */
#lux-booking-wrapper {
    max-width: 800px;
    margin: 40px auto;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: var(--lux-white);
    box-shadow: var(--lux-shadow);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    box-sizing: border-box;
}

/* --- BARRE DE PROGRESSION --- */
.lux-progress-bar {
    display: flex;
    justify-content: space-between;
    background: var(--lux-black-gradient);
    padding: 25px 40px;
    position: relative;
    border-bottom: 1px solid #333;
}

.lux-step-indicator {
    opacity: 0.5;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    color: #fff; 
    transition: all 0.4s ease;
}

.lux-step-indicator.active {
    opacity: 1;
    background: var(--lux-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    text-shadow: 0px 2px 10px rgba(191, 149, 63, 0.2);
}

/* --- CONTENU DES ÉTAPES --- */
.lux-step-content {
    display: none;
    padding: 40px 50px;
    animation: fadeIn 0.6s ease-out;
    box-sizing: border-box;
}

.lux-step-content.active {
    display: block;
}

.lux-step-content h3 {
    font-size: 1.8em;
    margin-bottom: 25px;
    background: var(--lux-black-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border-left: 4px solid #b38728;
    padding-left: 15px;
}

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

/* --- CHAMPS DE FORMULAIRE --- */
.lux-form-group {
    margin-bottom: 12px;
    box-sizing: border-box;
    width: 100%;
}

.lux-date-container {
    display: flex;
    gap: 20px;
    width: 100%;
}

.lux-date-container .lux-form-group {
    flex: 1; 
}

.lux-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #333;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lux-form-control {
    width: 100%; 
    padding: 14px 18px;
    border: 1px solid var(--lux-border);
    border-radius: 6px;
    font-size: 16px;
    background: var(--lux-light-grey);
    box-sizing: border-box;
    max-width: 100%;
    min-height: 48px;
    line-height: normal;
}

select.lux-form-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%23333" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 30px;
}

.lux-form-control:focus {
    border-color: #b38728;
    background: #fff;
    outline: none;
}

/* --- RÉSUMÉ DE COMMANDE (ÉTAPE 5) --- */
.lux-summary-box {
    background: #fdfdfd;
    border: 1px solid var(--lux-border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    font-size: 0.9em;
    color: #333;
}

.lux-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #eee;
}

.lux-summary-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.lux-summary-label {
    font-weight: 700;
    color: #111;
    width: 35%;
    text-transform: uppercase;
    font-size: 0.85em;
    padding-top: 2px;
}

.lux-summary-value {
    width: 65%;
    text-align: right;
    line-height: 1.4;
}

.lux-summary-vehicle {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.lux-summary-vehicle img {
    max-width: 70px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* --- VÉHICULES --- */
.lux-vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.lux-vehicle-card {
    border: 1px solid var(--lux-border);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    background: #fff;
    box-sizing: border-box;
}

.lux-vehicle-card.selected {
    background: linear-gradient(#fff, #fff) padding-box, var(--lux-gold-gradient) border-box;
    border: 2px solid transparent;
}

.lux-vehicle-card img { max-width: 100%; height: auto; margin-bottom: 15px; }
.lux-vehicle-title { font-size: 1.1em; font-weight: 700; margin-bottom: 5px; color: #111; }
.lux-vehicle-price {
    background: var(--lux-black-gradient);
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: bold;
    display: inline-block;
    font-size: 0.9em;
    margin-top: 10px;
}
.lux-vehicle-card.selected .lux-vehicle-price {
    background: var(--lux-gold-gradient);
    color: #000;
}

/* --- BOUTONS (RÉDUITS SUR ORDINATEUR) --- */
.lux-form-actions {
    padding: 15px 30px; /* Conteneur réduit */
    background: #fff;
    border-top: 1px solid var(--lux-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.lux-btn {
    padding: 6px 15px;
    border: none;
    border-radius: 50px;
    cursor: pointer !important;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    user-select: none;
    -webkit-user-select: none;
    text-align: center;
}

.lux-btn-prev { background: #fff; color: #888; border: 1px solid #ddd; }
.lux-btn-next { background: var(--lux-black-gradient); color: #fcf6ba; }

/* --- CHAMP TÉLÉPHONE (INDICATIF + NUMÉRO) --- */
.lux-phone-group {
    display: flex;
    gap: 10px;
    width: 100%;
}

.lux-phone-code {
    width: 40%;
    flex-shrink: 0;
    padding-right: 25px !important; /* Laisse de la place pour la flèche du select */
}

.lux-phone-number {
    width: 60%;
}


/* --- ARRÊT INTERMÉDIAIRE --- */

/* Cache le champ au chargement - JS prend le relais */
.lux-hidden {
    display: none;
}

.lux-stopover-toggle {
    margin-bottom: 8px !important;
}
.lux-stopover-toggle label {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    font-size: 0.75em;
    color: #7a6020;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: 1px dashed #b38728;
    border-radius: 6px;
    padding: 7px 14px;
    background: #fffdf5;
    transition: background 0.2s;
    width: auto !important;
}
.lux-stopover-toggle label:hover {
    background: #fff8e6;
}

/* Masquer les prix véhicules si option activée dans réglages */
.lux-hide-prices .lux-vehicle-price {
    display: none !important;
}

/* --- CRÉDIT BAS DE FORMULAIRE --- */
.lux-footer-credit {
    text-align: center;
    font-size: 0.72em;
    color: #111;
    padding: 10px 20px 14px;
    letter-spacing: 0.3px;
    border-top: 1px solid var(--lux-border);
}

/* --- CHECKBOXES DORÉES --- */
#lux-booking-form input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #b38728;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    vertical-align: middle;
    margin-right: 8px;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s;
}

#lux-booking-form input[type="checkbox"]:checked {
    background: var(--lux-gold-gradient);
    border-color: #b38728;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpolyline points='1,5 4.5,8.5 11,1' stroke='%23000' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 65%;
}

#lux-booking-form .lux-form-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
}
@media (max-width: 600px) {
    
    #lux-booking-wrapper {
        margin: 10px;
        width: calc(100% - 20px); 
    }

    /* Barre du haut */
    .lux-progress-bar {
        padding: 15px;
        justify-content: center;
        gap: 8px;
        align-items: center;
    }
    
    /* Toutes les étapes (Base : Cercle gris sans texte) */
    .lux-step-indicator { 
        font-size: 0; 
        width: 24px; 
        height: 24px; 
        background: #444; 
        border-radius: 50%; 
        margin: 0 4px; 
        padding: 0; 
        display: flex;
        align-items: center;
        justify-content: center;
        color: transparent;
    }
    
    .lux-step-indicator::before {
        content: attr(data-step);
        font-size: 12px;
        color: #fff;
        font-weight: bold;
    }

    /* Étapes passées (Cercle doré sans texte) */
    .lux-step-indicator.active { 
        background: var(--lux-gold-gradient);
    }
    .lux-step-indicator.active::before {
        color: #000;
    }

    /* ÉTAPE COURANTE UNIQUEMENT (Texte complet doré) */
    /* Utilise une règle d'exclusion pour cibler la dernière étape active */
    .lux-step-indicator.active:not(:has(~ .lux-step-indicator.active)) {
        font-size: 12px; 
        width: auto; 
        height: auto; 
        background: var(--lux-gold-gradient); 
        -webkit-background-clip: text; 
        -webkit-text-fill-color: transparent; 
        border-radius: 0; 
        margin: 0 8px; 
        border-bottom: 2px solid #b38728; 
        padding-bottom: 4px; 
        display: block;
    }
    
    .lux-step-indicator.active:not(:has(~ .lux-step-indicator.active))::before {
        display: none;
    }

    .lux-step-content {
        padding: 25px 20px;
    }

/* Date/Heure Mobile (Sur la même ligne) */
.lux-date-container {
    display: flex !important;
    gap: 15px !important;
    width: 90% !important;
}
  
.lux-date-container .lux-form-group {
    width: 50% !important; 
    margin-right: 0 !important; 
    margin-bottom: 12px !important;
    flex: 1 !important; /* Force la taille identique */
}


    /* Boutons Mobile */
    .lux-form-actions { 
        flex-direction: row; 
        justify-content: center;
        padding: 15px 10px; 
        gap: 10px; 
    }
    
    .lux-btn { 
        width: auto; 
        padding: 8px 12px; 
        font-size: 10px; 
        flex: 1; 
        text-align: center;
    }
}
