/**
 * UBER-STYLE NATIVE RESERVATION MODULE - TAXI VTC PARIS
 * Direct Integration with RideBookingSystem REST API (No iframe, No Widget)
 * Ultra-fast loading, real-time Google Places suggestions, dynamic quotes & Stripe checkout
 */

/* ==========================================================================
   CONTAINER & SHELL
   ========================================================================== */

.uber-booking-widget {
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    background: #0d0f14;
    border: 1.5px solid rgba(197, 168, 128, 0.45);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(197, 168, 128, 0.12);
    overflow: hidden;
    font-family: var(--font-body, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif);
    color: var(--text-primary, #F4E3C1);
    position: relative;
    transition: all 0.3s ease;
}

body.light-mode .uber-booking-widget {
    background: #ffffff !important;
    border: 1.5px solid rgba(155, 113, 38, 0.35) !important;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.12), 0 0 25px rgba(212, 178, 117, 0.15) !important;
    color: #0f172a !important;
}

/* Header & Progress Stepper */
.uber-header {
    padding: 18px 20px 14px 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.light-mode .uber-header {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%) !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.uber-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.uber-header-title {
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--accent-gold, #D4B275);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

body.light-mode .uber-header-title {
    color: #0f172a !important;
}

.uber-badge-live {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #10B981;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.uber-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 0 4px;
}

.uber-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
    z-index: 2;
    flex: 1;
}

.uber-step-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted, #A89068);
    transition: all 0.3s ease;
}

body.light-mode .uber-step-dot {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #64748b !important;
}

.uber-step-item.active .uber-step-dot {
    background: var(--accent-gold, #D4B275);
    border-color: #ffffff;
    color: #08080A;
    box-shadow: 0 0 12px rgba(212, 178, 117, 0.6);
}

body.light-mode .uber-step-item.active .uber-step-dot {
    background: #0f172a !important;
    border-color: #0f172a !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(15, 23, 42, 0.3) !important;
}

.uber-step-item.completed .uber-step-dot {
    background: #10B981;
    border-color: #10B981;
    color: #ffffff;
}

.uber-step-label {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted, #A89068);
    white-space: nowrap;
}

body.light-mode .uber-step-label {
    color: #64748b !important;
}

.uber-step-item.active .uber-step-label {
    color: var(--accent-gold, #D4B275);
    font-weight: 700;
}

body.light-mode .uber-step-item.active .uber-step-label {
    color: #0f172a !important;
}

/* Body / Step Containers */
.uber-body {
    padding: 18px 20px 22px 20px;
}

.uber-step-view {
    display: none;
    animation: uberFadeIn 0.25s ease-out;
}

.uber-step-view.active {
    display: block;
}

@keyframes uberFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   STEP 1: Téléphone, Type de trajet & Adresses
   ========================================================================== */

/* Boîte Téléphone Proéminente en haut de l'étape 1 */
.uber-phone-box {
    background: rgba(212, 178, 117, 0.07);
    border: 1.5px solid rgba(212, 178, 117, 0.35);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 14px;
    transition: all 0.2s ease;
}

body.light-mode .uber-phone-box {
    background: #fffbeb !important;
    border-color: #fde68a !important;
}

.uber-phone-box:focus-within {
    border-color: var(--accent-gold, #D4B275);
    box-shadow: 0 0 14px rgba(212, 178, 117, 0.25);
}

.uber-phone-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.uber-phone-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-gold, #D4B275);
    display: flex;
    align-items: center;
    gap: 6px;
}

body.light-mode .uber-phone-label {
    color: #b45309 !important;
}

.uber-phone-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 4px 10px;
}

body.light-mode .uber-phone-input-wrap {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
}

.uber-phone-prefix {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary, #F4E3C1);
    display: flex;
    align-items: center;
    gap: 6px;
    padding-right: 6px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

body.light-mode .uber-phone-prefix {
    color: #0f172a !important;
    border-right-color: #cbd5e1 !important;
}

.uber-phone-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: inherit;
    padding: 8px 4px;
}

body.light-mode .uber-phone-input {
    color: #0f172a !important;
}

.uber-phone-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
    font-weight: 400;
}

body.light-mode .uber-phone-input::placeholder {
    color: #94a3b8 !important;
}

.uber-phone-subtext {
    font-size: 0.72rem;
    color: var(--text-muted, #A89068);
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

body.light-mode .uber-phone-subtext {
    color: #64748b !important;
}

/* Sélecteur Départ Immédiat vs Planifier */
.uber-when-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}

.uber-when-btn {
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--text-primary, #F4E3C1);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: all 0.2s ease;
}

body.light-mode .uber-when-btn {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #334155 !important;
}

.uber-when-btn.active {
    background: rgba(212, 178, 117, 0.15);
    border-color: var(--accent-gold, #D4B275);
    color: var(--accent-gold, #D4B275);
}

body.light-mode .uber-when-btn.active {
    background: #0f172a !important;
    border-color: #0f172a !important;
    color: #ffffff !important;
}

/* Grille Date & Heure (affichée si planifier plus tard) */
.uber-datetime-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
    animation: uberFadeIn 0.2s ease-out;
}

.uber-field-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.uber-field-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted, #A89068);
}

body.light-mode .uber-field-label {
    color: #64748b !important;
}

.uber-input-control {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.92rem;
    outline: none;
    transition: border 0.2s;
}

body.light-mode .uber-input-control {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

.uber-input-control:focus {
    border-color: var(--accent-gold, #D4B275);
}

/* Boîte Trajet Uber (Point A, Barre verticale, Point B) */
.uber-route-box {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 12px 14px 12px 42px;
    margin-bottom: 14px;
}

body.light-mode .uber-route-box {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

.uber-route-line {
    position: absolute;
    left: 21px;
    top: 32px;
    bottom: 32px;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-gold, #D4B275) 0%, rgba(212, 178, 117, 0.2) 50%, #10B981 100%);
    border-radius: 2px;
}

.uber-pin-dot {
    position: absolute;
    left: 17px;
    top: 24px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-gold, #D4B275);
    box-shadow: 0 0 8px rgba(212, 178, 117, 0.8);
}

.uber-pin-square {
    position: absolute;
    left: 17px;
    bottom: 24px;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: #10B981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}

.uber-addr-row {
    position: relative;
}

.uber-addr-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 8px 0;
}

body.light-mode .uber-addr-divider {
    background: #e2e8f0 !important;
}

.uber-addr-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: inherit;
    padding: 8px 28px 8px 0;
}

body.light-mode .uber-addr-input {
    color: #0f172a !important;
}

.uber-addr-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

body.light-mode .uber-addr-input::placeholder {
    color: #94a3b8 !important;
}

.uber-swap-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--accent-gold, #D4B275);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 5;
}

body.light-mode .uber-swap-btn {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06) !important;
}

.uber-swap-btn:hover {
    background: var(--accent-gold, #D4B275);
    color: #08080A;
    transform: translateY(-50%) rotate(180deg);
}

.uber-clear-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 4px;
    display: none;
}

body.light-mode .uber-clear-btn {
    color: #94a3b8 !important;
}

.uber-clear-btn.visible {
    display: block;
}

/* Autocomplete Dropdown Google Places */
.uber-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #141721;
    border: 1px solid rgba(197, 168, 128, 0.4);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 4px;
    display: none;
}

body.light-mode .uber-suggestions {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.15) !important;
}

.uber-suggestions.active {
    display: block;
}

.uber-sugg-item {
    padding: 10px 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.15s ease;
}

body.light-mode .uber-sugg-item {
    border-bottom-color: #f1f5f9 !important;
}

.uber-sugg-item:hover,
.uber-sugg-item.highlighted {
    background: rgba(212, 178, 117, 0.15);
}

body.light-mode .uber-sugg-item:hover,
body.light-mode .uber-sugg-item.highlighted {
    background: #f1f5f9 !important;
}

.uber-sugg-icon {
    font-size: 0.95rem;
    color: var(--accent-gold, #D4B275);
    margin-top: 3px;
    flex-shrink: 0;
}

body.light-mode .uber-sugg-icon {
    color: #64748b !important;
}

.uber-sugg-content {
    flex: 1;
    min-width: 0;
}

.uber-sugg-main {
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.light-mode .uber-sugg-main {
    color: #0f172a !important;
}

.uber-sugg-sub {
    font-size: 0.75rem;
    color: var(--text-muted, #A89068);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.light-mode .uber-sugg-sub {
    color: #64748b !important;
}

/* Compteurs Passagers et Bagages */
.uber-counters-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.uber-counter-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

body.light-mode .uber-counter-box {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

.uber-counter-label {
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-primary, #F4E3C1);
}

body.light-mode .uber-counter-label {
    color: #334155 !important;
}

.uber-counter-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.uber-counter-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

body.light-mode .uber-counter-btn {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

.uber-counter-btn:hover {
    background: var(--accent-gold, #D4B275);
    color: #08080A;
}

.uber-counter-val {
    font-size: 0.95rem;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
    color: var(--accent-gold, #D4B275);
}

body.light-mode .uber-counter-val {
    color: #0f172a !important;
}

/* Bouton Principal CTA */
.uber-btn-cta {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #F5B72E 0%, #D49C1C 100%);
    border: none;
    border-radius: 12px;
    color: #08080A;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(245, 183, 46, 0.35);
    transition: all 0.25s ease;
}

.uber-btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(245, 183, 46, 0.5);
}

.uber-btn-cta:active {
    transform: translateY(0);
}

.uber-btn-cta:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ==========================================================================
   STEP 2: Véhicules & Tarifs Dynamiques
   ========================================================================== */

.uber-route-summary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
}

body.light-mode .uber-route-summary {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

.uber-summary-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-gold, #D4B275);
    font-weight: 700;
}

body.light-mode .uber-summary-pill {
    color: #b45309 !important;
}

.uber-vehicles-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.uber-vehicle-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

body.light-mode .uber-vehicle-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
}

.uber-vehicle-card:hover {
    border-color: rgba(212, 178, 117, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

body.light-mode .uber-vehicle-card:hover {
    border-color: #cbd5e1 !important;
    background: #f8fafc !important;
}

.uber-vehicle-card.selected {
    border-color: var(--accent-gold, #D4B275);
    background: rgba(212, 178, 117, 0.1);
    box-shadow: 0 0 16px rgba(212, 178, 117, 0.2);
}

body.light-mode .uber-vehicle-card.selected {
    border-color: #0f172a !important;
    background: #ffffff !important;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.08) !important;
}

.uber-vehicle-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.uber-vehicle-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--accent-gold, #D4B275);
}

body.light-mode .uber-vehicle-icon-box {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

.uber-vehicle-info h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

body.light-mode .uber-vehicle-info h4 {
    color: #0f172a !important;
}

.uber-vehicle-desc {
    font-size: 0.76rem;
    color: var(--text-muted, #A89068);
    margin: 2px 0;
}

body.light-mode .uber-vehicle-desc {
    color: #64748b !important;
}

.uber-vehicle-capacity {
    display: flex;
    gap: 8px;
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.6);
}

body.light-mode .uber-vehicle-capacity {
    color: #64748b !important;
}

.uber-vehicle-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    background: linear-gradient(135deg, #F5B72E, #D49C1C);
    color: #08080A;
    margin-top: 3px;
}

.uber-vehicle-right {
    text-align: right;
}

.uber-price-tag {
    font-size: 1.38rem;
    font-weight: 800;
    color: var(--accent-gold, #D4B275);
    line-height: 1.1;
}

body.light-mode .uber-price-tag {
    color: #0f172a !important;
}

.uber-price-sub {
    font-size: 0.7rem;
    color: var(--text-muted, #A89068);
}

body.light-mode .uber-price-sub {
    color: #64748b !important;
}

/* Service Options Box */
.uber-extras-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

body.light-mode .uber-extras-box {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

.uber-extras-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-gold, #D4B275);
    margin-bottom: 8px;
}

body.light-mode .uber-extras-title {
    color: #b45309 !important;
}

.uber-extra-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.84rem;
    cursor: pointer;
}

.uber-extra-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.uber-extra-price {
    font-weight: 700;
    color: var(--accent-gold, #D4B275);
}

body.light-mode .uber-extra-price {
    color: #0f172a !important;
}

.uber-step-actions {
    display: flex;
    gap: 10px;
}

.uber-btn-back {
    padding: 12px 16px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

body.light-mode .uber-btn-back {
    border-color: #cbd5e1 !important;
    color: #334155 !important;
}

.uber-btn-back:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-gold, #D4B275);
}

/* ==========================================================================
   STEP 3: Coordonnées & Paiement
   ========================================================================== */

.uber-trip-recap {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
}

body.light-mode .uber-trip-recap {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

.uber-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.uber-payment-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 14px 0 16px 0;
}

.uber-pay-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

body.light-mode .uber-pay-option {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

.uber-pay-option.selected {
    border-color: var(--accent-gold, #D4B275);
    background: rgba(212, 178, 117, 0.12);
}

body.light-mode .uber-pay-option.selected {
    border-color: #0f172a !important;
    background: #ffffff !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
}

.uber-pay-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 600;
}

/* ==========================================================================
   STEP 4: Succès & Confirmation
   ========================================================================== */

.uber-success-view {
    text-align: center;
    padding: 16px 8px;
}

.uber-success-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10B981, #059669);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 14px auto;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.4);
    animation: uberPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes uberPop {
    0% { transform: scale(0.3); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.uber-success-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-gold, #D4B275);
    margin-bottom: 6px;
}

body.light-mode .uber-success-title {
    color: #0f172a !important;
}

.uber-booking-id-pill {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(212, 178, 117, 0.4);
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 14px;
}

body.light-mode .uber-booking-id-pill {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

.uber-success-recap {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px;
    text-align: left;
    margin-bottom: 18px;
    font-size: 0.88rem;
    line-height: 1.6;
}

body.light-mode .uber-success-recap {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

/* Spinner */
.uber-spinner {
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(0, 0, 0, 0.2);
    border-top-color: #08080A;
    border-radius: 50%;
    animation: uberSpin 0.7s linear infinite;
    display: inline-block;
}

@keyframes uberSpin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE FIRST)
   ========================================================================== */

@media (max-width: 600px) {
    .uber-body {
        padding: 14px 14px 18px 14px;
    }
    .uber-contact-grid {
        grid-template-columns: 1fr;
    }
    .uber-datetime-grid {
        grid-template-columns: 1fr;
    }
    .uber-counters-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   RTL Layout Support (Hebrew)
   ========================================================================== */
html[dir="rtl"] .uber-route-box {
    padding: 12px 42px 12px 14px;
}
html[dir="rtl"] .uber-route-line {
    left: auto;
    right: 21px;
}
html[dir="rtl"] .uber-pin-dot,
html[dir="rtl"] .uber-pin-square {
    left: auto;
    right: 17px;
}
html[dir="rtl"] .uber-addr-input {
    padding: 8px 0 8px 28px;
    text-align: right;
}
html[dir="rtl"] .uber-swap-btn {
    right: auto;
    left: 10px;
}
html[dir="rtl"] .uber-clear-btn {
    right: auto;
    left: 4px;
}
html[dir="rtl"] .uber-vehicle-right {
    text-align: left;
}
html[dir="rtl"] .uber-price-tag {
    direction: ltr;
    display: inline-block;
}
html[dir="rtl"] .uber-success-recap {
    text-align: right;
}

/* Promo Code Box */
.uber-promo-box {
    margin: 12px 0 16px 0;
}
.uber-promo-toggle {
    background: transparent;
    border: none;
    color: var(--accent-gold, #D4B275);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
}
.uber-promo-input-row {
    display: none;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}
.uber-promo-input-row.active {
    display: flex;
}
.uber-promo-input {
    flex: 1;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.88rem;
    text-transform: uppercase;
}
body.light-mode .uber-promo-input {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}
.uber-promo-btn {
    padding: 8px 14px;
    background: var(--accent-gold, #D4B275);
    border: none;
    border-radius: 8px;
    color: #08080A;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
}
.uber-promo-feedback {
    font-size: 0.78rem;
    margin-top: 4px;
    display: none;
}
