/* Chauffeur Booking Pro — Interface Client */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
    --cb-dark:    #0f0f1a;
    --cb-navy:    #1a1a2e;
    --cb-gold:    #f4c430;
    --cb-gold-lt: #ffd966;
    --cb-white:   #ffffff;
    --cb-gray-lt: #f8f9fa;
    --cb-gray:    #e9ecef;
    --cb-text:    #2d3436;
    --cb-muted:   #6c757d;
    --cb-success: #2ecc71;
    --cb-danger:  #e74c3c;
    --cb-radius:  14px;
    --cb-shadow:  0 8px 40px rgba(0,0,0,0.12);
    --cb-transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

#cb-booking-wrapper, #cb-tracking-wrapper, .cb-pricing-table {
    font-family: 'DM Sans', sans-serif;
    max-width: 780px;
    margin: 0 auto;
    color: var(--cb-text);
}

/* Steps */
.cb-step { display: none; }
.cb-step.active { display: block; animation: cbFadeIn 0.4s ease; }

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

.cb-form-header {
    background: linear-gradient(135deg, var(--cb-dark) 0%, var(--cb-navy) 100%);
    border-radius: var(--cb-radius) var(--cb-radius) 0 0;
    padding: 28px 32px;
}

.cb-steps-indicator {
    display: flex;
    align-items: center;
    gap: 0;
}

.cb-step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.cb-step-dot span {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.4);
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 14px;
    border: 2px solid rgba(255,255,255,0.1);
    transition: all var(--cb-transition);
}
.cb-step-dot label {
    color: rgba(255,255,255,0.3);
    font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px;
    cursor: default;
}
.cb-step-dot.active span {
    background: var(--cb-gold);
    color: var(--cb-dark);
    border-color: var(--cb-gold);
    box-shadow: 0 0 0 4px rgba(244,196,48,0.2);
}
.cb-step-dot.active label { color: var(--cb-gold); }
.cb-step-dot.done span { background: var(--cb-success); color: white; border-color: var(--cb-success); }
.cb-step-dot.done label { color: var(--cb-success); }

.cb-step-line {
    flex: 1;
    height: 2px;
    background: rgba(255,255,255,0.1);
    margin-bottom: 18px;
    transition: background var(--cb-transition);
}
.cb-step-line.active { background: var(--cb-gold); }

.cb-form-body {
    background: var(--cb-white);
    border: 1px solid var(--cb-gray);
    border-top: none;
    border-radius: 0 0 var(--cb-radius) var(--cb-radius);
    padding: 32px;
    box-shadow: var(--cb-shadow);
}

.cb-form-body h2 {
    font-family: 'Playfair Display', serif;
    font-size: 24px; font-weight: 700;
    color: var(--cb-dark);
    margin: 0 0 24px;
}

/* Fields */
.cb-field { margin-bottom: 20px; }
.cb-field label {
    display: block;
    font-weight: 500; font-size: 13px;
    color: var(--cb-muted);
    margin-bottom: 8px;
    text-transform: uppercase; letter-spacing: 0.4px;
}
.cb-field input, .cb-field select, .cb-field textarea {
    width: 100%; box-sizing: border-box;
    padding: 13px 16px;
    border: 2px solid var(--cb-gray);
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: var(--cb-text);
    transition: border-color var(--cb-transition), box-shadow var(--cb-transition);
    background: var(--cb-white);
}
.cb-field input:focus, .cb-field select:focus, .cb-field textarea:focus {
    outline: none;
    border-color: var(--cb-gold);
    box-shadow: 0 0 0 4px rgba(244,196,48,0.15);
}
.cb-field textarea { min-height: 90px; resize: vertical; }

.cb-field-group.cb-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .cb-field-group.cb-two-col { grid-template-columns: 1fr; } }

/* Passengers */
.cb-passengers-selector {
    display: flex; align-items: center; gap: 16px;
    width: fit-content;
}
.cb-pax-btn {
    width: 42px; height: 42px;
    border: 2px solid var(--cb-gray);
    border-radius: 50%;
    background: white; cursor: pointer;
    font-size: 20px; line-height: 1;
    transition: all var(--cb-transition);
    display: flex; align-items: center; justify-content: center;
}
.cb-pax-btn:hover { border-color: var(--cb-gold); background: var(--cb-gold); color: var(--cb-dark); }
#cb_pax_display { font-size: 22px; font-weight: 700; min-width: 30px; text-align: center; }

/* Buttons */
.cb-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 13px 28px;
    border-radius: 10px; border: none; cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px; font-weight: 600;
    transition: all var(--cb-transition);
    gap: 8px;
}
.cb-btn-primary {
    background: linear-gradient(135deg, var(--cb-dark), var(--cb-navy));
    color: var(--cb-gold);
}
.cb-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15,15,26,0.3); }
.cb-btn-primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.cb-btn-secondary {
    background: var(--cb-gray-lt); border: 2px solid var(--cb-gray);
    color: var(--cb-muted);
}
.cb-btn-secondary:hover { border-color: var(--cb-muted); }
.cb-btn-success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}
.cb-btn-success:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(46,204,113,0.35); }
.cb-btn-group { display: flex; gap: 12px; justify-content: flex-end; margin-top: 8px; }

/* Vehicles */
#cb-vehicles-grid { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }

.cb-vehicle-card {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 16px; align-items: center;
    padding: 18px 20px;
    border: 2px solid var(--cb-gray);
    border-radius: var(--cb-radius);
    cursor: pointer;
    transition: all var(--cb-transition);
    background: var(--cb-white);
}
.cb-vehicle-card:hover { border-color: var(--cb-gold); box-shadow: 0 4px 20px rgba(244,196,48,0.15); }
.cb-vehicle-card.selected {
    border-color: var(--cb-gold);
    background: linear-gradient(135deg, rgba(244,196,48,0.05), rgba(244,196,48,0.02));
    box-shadow: 0 4px 20px rgba(244,196,48,0.2);
}
.cb-vehicle-card.unavailable { opacity: 0.4; cursor: not-allowed; }
.cb-vehicle-icon { font-size: 36px; text-align: center; }
.cb-vehicle-info h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.cb-vehicle-info p { margin: 0 0 6px; font-size: 13px; color: var(--cb-muted); }
.cb-vehicle-pax { font-size: 12px; color: var(--cb-muted); background: var(--cb-gray-lt); padding: 2px 8px; border-radius: 20px; }
.cb-vehicle-price { text-align: right; }
.cb-price-from { display: block; font-size: 11px; color: var(--cb-muted); }
.cb-price-amount { display: block; font-size: 20px; font-weight: 700; color: var(--cb-dark); }
.cb-price-km { display: block; font-size: 11px; color: var(--cb-muted); }

/* Info box */
.cb-info-box {
    background: linear-gradient(135deg, var(--cb-dark), var(--cb-navy));
    border-radius: 10px; padding: 16px 20px;
    display: flex; gap: 24px;
    color: white; margin-bottom: 16px;
}
.cb-info-box span { font-size: 14px; }
.cb-info-box strong { color: var(--cb-gold); }

/* Summary */
#cb-summary {
    background: var(--cb-gray-lt);
    border-radius: var(--cb-radius);
    padding: 20px; margin-bottom: 20px;
}
.cb-summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cb-summary-item { display: flex; flex-direction: column; gap: 2px; }
.cb-summary-item .cb-s-label { font-size: 11px; color: var(--cb-muted); text-transform: uppercase; letter-spacing: 0.4px; }
.cb-summary-item .cb-s-value { font-size: 15px; font-weight: 500; }
.cb-summary-total {
    border-top: 2px solid var(--cb-gray);
    margin-top: 16px; padding-top: 16px;
    display: flex; justify-content: space-between; align-items: center;
}
.cb-summary-total .cb-total-label { font-weight: 600; font-size: 16px; }
.cb-summary-total .cb-total-amount { font-size: 28px; font-weight: 700; color: var(--cb-dark); font-family: 'Playfair Display', serif; }

/* RGPD */
.cb-rgpd { margin-bottom: 20px; font-size: 13px; color: var(--cb-muted); }
.cb-rgpd label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.cb-rgpd input { margin-top: 2px; }

/* Success */
.cb-success-screen {
    background: white; border: 1px solid var(--cb-gray);
    border-radius: var(--cb-radius);
    padding: 60px 40px; text-align: center;
    box-shadow: var(--cb-shadow);
}
.cb-success-icon { font-size: 64px; margin-bottom: 16px; }
.cb-success-screen h2 { font-family: 'Playfair Display', serif; font-size: 28px; margin-bottom: 12px; }
.cb-success-screen p { color: var(--cb-muted); margin-bottom: 24px; }
.cb-booking-number-box {
    display: inline-flex; flex-direction: column; align-items: center;
    background: linear-gradient(135deg, var(--cb-dark), var(--cb-navy));
    color: white; padding: 20px 40px; border-radius: var(--cb-radius);
    margin-bottom: 16px;
}
.cb-booking-number-box span { font-size: 12px; color: rgba(255,255,255,0.6); margin-bottom: 8px; }
.cb-booking-number-box strong { font-family: 'Playfair Display', serif; font-size: 26px; color: var(--cb-gold); letter-spacing: 2px; }
.cb-success-note { font-size: 13px; color: var(--cb-muted); }

/* Loading */
.cb-overlay {
    position: fixed; inset: 0;
    background: rgba(15,15,26,0.7); backdrop-filter: blur(4px);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    z-index: 9999; color: white; gap: 16px;
}
.cb-spinner {
    width: 48px; height: 48px;
    border: 4px solid rgba(255,255,255,0.2);
    border-top-color: var(--cb-gold);
    border-radius: 50%;
    animation: cbSpin 0.8s linear infinite;
}
@keyframes cbSpin { to { transform: rotate(360deg); } }

/* Tracking */
.cb-tracking-search {
    background: white; border: 1px solid var(--cb-gray);
    border-radius: var(--cb-radius); padding: 28px;
    box-shadow: var(--cb-shadow); margin-bottom: 20px;
}
.cb-tracking-search h3 { font-family: 'Playfair Display', serif; margin-bottom: 20px; }

.cb-tracking-result-card {
    background: white; border: 1px solid var(--cb-gray);
    border-radius: var(--cb-radius); padding: 28px;
    box-shadow: var(--cb-shadow);
    animation: cbFadeIn 0.3s ease;
}

/* Status badge */
.cb-status-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px; border-radius: 50px;
    font-weight: 600; font-size: 14px;
    margin-bottom: 20px;
}
.cb-status-badge.pending   { background: #fff3cd; color: #856404; }
.cb-status-badge.confirmed { background: #d1e7dd; color: #0a3622; }
.cb-status-badge.progress  { background: #cce5ff; color: #004085; }
.cb-status-badge.completed { background: #d1e7dd; color: #0a3622; }
.cb-status-badge.cancelled { background: #f8d7da; color: #58151c; }

/* Pricing table */
.cb-pricing-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.cb-pricing-card {
    background: white; border: 1px solid var(--cb-gray);
    border-radius: var(--cb-radius); padding: 24px;
    text-align: center; box-shadow: var(--cb-shadow);
    transition: transform var(--cb-transition);
}
.cb-pricing-card:hover { transform: translateY(-4px); }
.cb-pricing-icon { font-size: 40px; margin-bottom: 12px; }
.cb-pricing-card h3 { margin: 0 0 8px; font-family: 'Playfair Display', serif; }
.cb-pricing-card p { font-size: 13px; color: var(--cb-muted); margin-bottom: 16px; }
.cb-pricing-card ul { list-style: none; padding: 0; margin: 0; font-size: 14px; text-align: left; }
.cb-pricing-card ul li { padding: 6px 0; border-bottom: 1px solid var(--cb-gray); }
.cb-pricing-card ul li:last-child { border: none; }
