/* WordPress Taxi Booking Form Styles */

.taxi-booking-container {
    width: 100%;
    min-height: 800px;
    position: relative;
    background: #1f2937;
    border-radius: 8px;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.taxi-booking-container * {
    box-sizing: border-box;
}

/* Header dans WordPress */
.taxi-booking-header {
    background-color: #111827;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.taxi-booking-header img {
    height: 50px;
    border-radius: 8px;
}

.taxi-booking-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fbbf24 !important;
    margin: 0;
}

/* Layout Principal */
.taxi-booking-main {
    position: relative;
    height: 700px;
    display: flex;
}

#taxi-map {
    width: 100%;
    height: 100%;
}

/* Panneau de réservation flottant */
.taxi-booking-panel {
    position: absolute;
    top: 2rem;
    left: 2rem;
    width: 420px;
    max-height: calc(100% - 4rem);
    background: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    z-index: 100;
}

.taxi-booking-panel h3 {
    margin: 0 0 1.5rem 0;
    color: #fbbf24 !important;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

/* Groupes de formulaire */
.taxi-form-group {
    margin-bottom: 1.25rem;
}

.taxi-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #f3f4f6 !important;
    font-weight: 500;
}

.taxi-form-group input[type="text"],
.taxi-form-group input[type="email"],
.taxi-form-group input[type="tel"],
.taxi-form-group input[type="number"],
.taxi-form-group input[type="date"],
.taxi-form-group input[type="time"],
.taxi-form-group select,
.taxi-form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white !important;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.taxi-form-group input:focus,
.taxi-form-group select:focus,
.taxi-form-group textarea:focus {
    outline: none;
    border-color: #fbbf24 !important;
}

.taxi-form-group textarea {
    min-height: 80px;
    resize: vertical;
}

/* Sélection de véhicules */
.taxi-vehicle-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.vehicle-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.vehicle-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.vehicle-card.selected {
    border-color: #fbbf24 !important;
    background-color: rgba(251, 191, 36, 0.1);
}

.vehicle-info h4 {
    color: white !important;
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.vehicle-info p {
    font-size: 0.75rem;
    color: #9ca3af !important;
    margin: 0;
}

.vehicle-price {
    font-weight: 700;
    color: #fbbf24 !important;
    font-size: 1.1rem;
}

/* Info de trajet */
#taxi-trip-info {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
    color: #9ca3af !important;
}

#taxi-trip-info>div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

#taxi-trip-info strong {
    color: white !important;
}

/* Checkbox départ immédiat */
.taxi-checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.taxi-checkbox-container input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.taxi-checkbox-container label {
    color: #f3f4f6 !important;
    font-size: 1rem;
    cursor: pointer;
    margin: 0;
}

/* Schedule container */
#taxi-schedule-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

#taxi-schedule-container .taxi-form-group {
    flex: 1;
    margin-bottom: 0;
}

/* Options de paiement */
.taxi-payment-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.taxi-payment-option {
    cursor: pointer;
    position: relative;
}

.taxi-payment-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.taxi-payment-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.2s;
    min-height: 80px;
}

.taxi-payment-option input:checked+.taxi-payment-content {
    background-color: rgba(251, 191, 36, 0.15);
    border-color: #fbbf24 !important;
}

.taxi-payment-content span {
    font-size: 0.9rem;
    font-weight: 500;
    color: #f3f4f6 !important;
}

/* Bouton de réservation */
.taxi-btn-book {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: white !important;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.taxi-btn-book:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(251, 191, 36, 0.3);
}

.taxi-btn-book:active {
    transform: translateY(0);
}

/* Modal de confirmation */
.taxi-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.taxi-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.taxi-modal-content {
    background: linear-gradient(135deg, #1f2937, #111827);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.taxi-modal-overlay.show .taxi-modal-content {
    transform: scale(1);
}

.taxi-modal-header {
    text-align: center;
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.taxi-modal-header h2 {
    color: #fbbf24 !important;
    font-size: 1.2rem !important;
    margin: 1rem 0 0.5rem 0;
}

.taxi-modal-header .reassurance {
    color: #9ca3af;
    font-size: 0.95rem !important;
}

.taxi-modal-body {
    padding: 1.5rem 2rem;
}

.taxi-detail-section {
    margin-bottom: 1.25rem;
}

.taxi-detail-section h3 {
    color: #fbbf24 !important;
    font-size: 0.85rem !important;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.taxi-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #f3f4f6 !important;
}

.taxi-detail-row:last-child {
    border-bottom: none;
}

.taxi-detail-row .label {
    color: #9ca3af;
    font-size: 0.9rem;
}

.taxi-detail-row .value {
    color: white !important;
    font-weight: 500;
    text-align: right;
    max-width: 60%;
}

.taxi-price-row {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 2px solid rgba(251, 191, 36, 0.3);
}

.taxi-price-row .value.price {
    color: #fbbf24 !important;
    font-size: 1.25rem;
    font-weight: 700;
}

.taxi-modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.taxi-btn-close {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: white !important;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

.taxi-btn-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px -2px rgba(251, 191, 36, 0.4);
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .taxi-booking-main {
        height: auto;
        min-height: 600px;
        flex-direction: column;
        display: flex;
    }

    #taxi-map {
        width: 100%;
        height: 350px;
        order: 1;
    }

    .taxi-booking-panel {
        position: relative;
        bottom: auto;
        top: auto;
        left: auto;
        width: 100%;
        max-height: none;
        order: 2;
        border-radius: 0;
        background: #1f2937;
        box-shadow: none;
        padding: 1.5rem;
    }

    .taxi-modal-content {
        width: 95%;
    }
}