/* ========================================
   BOOKING STEPS - STYLES
   ======================================== */

/* Container */
.booking-steps-container {
    background: #f8f9fa;
    min-height: 100vh;
    padding: 40px 0 80px 0; /* Ajout de padding-bottom pour éviter que le footer cache les boutons */
}

/* Stepper Wrapper */
.booking-stepper-wrapper {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

/* Stepper */
.booking-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e9ecef;
    border: 3px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    z-index: 2;
}

.step-number {
    font-size: 18px;
    font-weight: 700;
    color: #6c757d;
}

.step-check {
    display: none;
    font-size: 20px;
    color: white;
}

.step-label {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #6c757d;
    text-align: center;
    max-width: 120px;
}

.step-line {
    flex: 1;
    height: 3px;
    background: #e9ecef;
    margin: 0 10px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

/* Active Step */
.step.active .step-circle {
    background: #667eea;
    border-color: #667eea;
}

.step.active .step-number {
    color: white;
}

.step.active .step-label {
    color: #667eea;
}

/* Completed Step */
.step.completed .step-circle {
    background: #28a745;
    border-color: #28a745;
}

.step.completed .step-number {
    display: none;
}

.step.completed .step-check {
    display: block;
}

.step.completed .step-label {
    color: #28a745;
}

.step.completed + .step-line {
    background: #28a745;
}

/* Content */
.booking-steps-content {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 40px;
    margin-bottom: 40px; /* Espace avant le footer */
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Step Content Card */
.step-content-card {
    margin-bottom: 30px;
}

.step-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f3f4;
}

.step-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.step-header h3 i {
    color: #667eea;
    margin-right: 10px;
}

.step-description {
    color: #6c757d;
    font-size: 15px;
    margin: 0;
}

.step-body {
    padding: 20px 0;
}

/* Booking Type Cards */
.booking-type-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.booking-type-card {
    border: 3px solid #e9ecef;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.booking-type-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.2);
}

.booking-type-card.selected {
    border-color: #667eea;
    background: #f8f9ff;
}

.booking-type-card input[type="radio"] {
    display: none;
}

.booking-type-card .card-icon {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 15px;
}

.booking-type-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.booking-type-card p {
    color: #6c757d;
    font-size: 14px;
    margin: 0;
}

.booking-type-card .card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #28a745;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Passenger Cards */
.passenger-card {
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.passenger-card:hover {
    border-color: #667eea;
    box-shadow: 0 3px 15px rgba(102, 126, 234, 0.1);
}

.passenger-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f3f4;
}

.passenger-card-header h5 {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.passenger-card-header h5 i {
    color: #667eea;
    margin-right: 8px;
}

.passenger-type-badge {
    background: #667eea;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.passenger-card-body .row {
    margin-bottom: 15px;
}

/* Passport Cards */
.passport-card {
    border: 2px solid #ffc107;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    background: #fffbf0;
}

.passport-card-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ffc107;
}

.passport-card-header h5 {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.passport-card-header h5 i {
    color: #ffc107;
    margin-right: 8px;
}

.passport-info-box {
    background: white;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin-top: 20px;
    border-radius: 5px;
}

.passport-info-box i {
    color: #ffc107;
    margin-right: 10px;
}

.passport-info-box p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.service-card {
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.service-card:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.15);
}

.service-card.selected {
    border-color: #28a745;
    background: #f0fff4;
}

.service-card input[type="checkbox"] {
    display: none;
}

.service-icon {
    font-size: 36px;
    color: #667eea;
    margin-bottom: 15px;
}

.service-content h5 {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.service-content p {
    color: #6c757d;
    font-size: 13px;
    margin-bottom: 15px;
}

.service-price {
    display: flex;
    flex-direction: column;
}

.price-fcfa {
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
}

.price-original {
    font-size: 12px;
    color: #6c757d;
}

.service-check {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: #28a745;
    display: none;
}

.service-card.selected .service-check {
    display: block;
}

/* Review Section */
.review-section {
    margin-bottom: 30px;
}

.review-section h4 {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f3f4;
}

.review-section h4 i {
    color: #667eea;
    margin-right: 10px;
}

.review-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.review-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.review-item:last-child {
    border-bottom: none;
}

.review-item .label {
    font-weight: 600;
    color: #6c757d;
}

.review-item .value {
    font-weight: 700;
    color: #2c3e50;
}

/* Price Summary */
.price-summary-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.price-item:last-child {
    border-bottom: none;
}

.price-item.total {
    background: #1e3889;
    color: white;
    margin: 15px -20px -20px;
    padding: 20px;
    border-radius: 0 0 10px 10px;
}

.price-item.total .label,
.price-item.total .value {
    color: white;
}

/* Navigation Buttons */
.step-navigation {
    display: flex !important; /* Force l'affichage */
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    padding-bottom: 20px; /* Espace en bas */
    border-top: 2px solid #f1f3f4;
    position: relative;
    z-index: 10; /* Au-dessus des autres éléments */
}

.step-navigation .btn {
    min-width: 150px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.step-navigation .btn-secondary {
    background: #6c757d;
    color: white;
}

.step-navigation .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.step-navigation .btn-primary {
    background: #667eea;
    color: white;
}

.step-navigation .btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.step-navigation .btn-success {
    background: #28a745;
    color: white;
}

.step-navigation .btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.step-navigation .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.step-navigation .btn-lg {
    padding: 15px 40px;
    font-size: 18px;
}

/* Form Elements */
.form-label.required::after,
.form-label.passport-required::after {
    content: " *";
    color: #dc3545;
}

.form-control,
.form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

.phone-input-group {
    display: flex;
    gap: 10px;
}

.phone-input-group .country-code-select {
    flex: 0 0 200px;
}

.phone-input-group .form-control {
    flex: 1;
}

/* Security Note */
.security-note {
    background: #e7f3ff;
    border-left: 4px solid #667eea;
    padding: 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.security-note i {
    font-size: 24px;
    color: #667eea;
}

.security-note p {
    margin: 0;
    color: #2c3e50;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 991px) {
    .booking-stepper-wrapper {
        padding: 16px 12px;
        overflow: hidden;
    }

    .booking-stepper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        justify-content: flex-start;
        scrollbar-width: none;
    }

    .booking-stepper::-webkit-scrollbar {
        display: none;
    }

    .booking-stepper .step {
        flex: 0 0 auto;
        min-width: 70px;
    }

    .step-line {
        flex: 0 0 24px;
        min-width: 16px;
    }

    .step-label {
        font-size: 0.68rem;
        max-width: 72px;
    }
}

@media (max-width: 768px) {
    .booking-stepper {
        flex-direction: row;
    }
    
    .step-line {
        width: auto;
        height: 3px;
        margin: 0 6px;
        margin-bottom: 30px;
    }
    
    .booking-type-selection {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .step-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .step-navigation .btn {
        width: 100%;
    }
}
