/* ============================================
   VTC Booking - Thème neutre noir & blanc
   Indépendant des couleurs du thème WordPress
   ============================================ */

/* Variables et blindage : le formulaire impose ses couleurs, pas le thème */
.vtc-booking-container {
  --vtc-bg: #ffffff;
  --vtc-bg-alt: #f5f5f5;
  --vtc-text: #111111;
  --vtc-text-muted: #666666;
  --vtc-border: #e0e0e0;
  --vtc-border-focus: #333333;
  --vtc-btn-bg: #111111;
  --vtc-btn-text: #ffffff;
  --vtc-btn-hover: #333333;
  /* Seule couleur d'accent : réservée aux ronds des étapes (indicateur de progression) */
  --vtc-accent: #2563eb;
  /* Empêcher le thème d'écraser le fond et la couleur du formulaire */
  background-color: #ffffff !important;
  color: #111111 !important;
}

.vtc-booking-container *,
.vtc-booking-container *::before,
.vtc-booking-container *::after {
  box-sizing: border-box;
}

/* Container principal */
.vtc-booking-container {
  max-width: 640px;
  margin: 20px auto;
  padding: 20px;
  background: var(--vtc-bg);
  border-radius: 12px;
  border: 1px solid var(--vtc-border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  color: var(--vtc-text);
  animation: vtc-fadeIn 0.4s ease-out;
}

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

/* Titre */
.vtc-booking-container h2 {
  text-align: center;
  color: var(--vtc-text);
  margin-bottom: 18px;
  font-size: 22px;
  font-weight: 700;
}

/* Indicateur de progression */
.vtc-progress-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 10px 0;
  position: relative;
}

.vtc-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  z-index: 2;
}

.vtc-step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--vtc-bg-alt);
  color: var(--vtc-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.2s ease;
  border: 2px solid var(--vtc-border);
}

.vtc-step-label {
  margin-top: 5px;
  font-size: 10px;
  color: var(--vtc-text-muted);
  font-weight: 500;
  text-align: center;
  transition: all 0.2s ease;
}

.vtc-step-line {
  flex: 1;
  height: 2px;
  background: var(--vtc-border);
  margin: 0 8px;
  position: relative;
  top: -16px;
  z-index: 1;
  transition: all 0.2s ease;
}

/* Ronds uniquement : une seule couleur d'accent (dynamique) */
.vtc-step-active .vtc-step-number {
  background: var(--vtc-accent);
  color: #ffffff;
  border-color: var(--vtc-accent);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.vtc-step-active .vtc-step-label {
  color: var(--vtc-accent);
  font-weight: 600;
}

.vtc-step-completed .vtc-step-number {
  background: var(--vtc-accent);
  color: #ffffff;
  border-color: var(--vtc-accent);
}

.vtc-step-completed .vtc-step-label {
  color: var(--vtc-text-muted);
}

.vtc-step-completed ~ .vtc-step-line {
  background: var(--vtc-accent);
}


/* Sections du formulaire */
.vtc-form-section {
  animation: vtc-slideIn 0.4s ease-out;
}

@keyframes vtc-slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Layout */
.vtc-row {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}
.vtc-row .half {
  flex: 1;
}

.vtc-card {
  margin-bottom: 14px;
}

/* Labels */
.vtc-card label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--vtc-text);
  margin-bottom: 5px;
  margin-top: 0;
  font-size: 14px;
}
.vtc-card i {
  font-size: 16px;
  color: var(--vtc-text-muted);
}

/* Inputs */
.vtc-card input,
.vtc-card select,
.vtc-card textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--vtc-border);
  font-size: 15px;
  background: var(--vtc-bg);
  color: var(--vtc-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vtc-card input:focus,
.vtc-card select:focus,
.vtc-card textarea:focus {
  border-color: var(--vtc-border-focus);
  outline: none;
  background: var(--vtc-bg);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}

/* Textarea */
.vtc-card textarea {
  min-height: 70px;
  resize: vertical;
}

/* Sélecteur avec boutons + et - */
.vtc-counter-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--vtc-bg);
  border: 1px solid var(--vtc-border);
  border-radius: 10px;
  padding: 8px;
  transition: border-color 0.2s ease;
}

.vtc-counter-wrapper:focus-within {
  border-color: var(--vtc-border-focus);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.06);
}

/* Version compacte pour passagers/bagages sur la même ligne */
.vtc-counter-compact .vtc-counter-wrapper {
  gap: 8px;
  padding: 6px;
  border-radius: 10px;
}

.vtc-counter-compact .vtc-card {
  margin-bottom: 0;
}

.vtc-counter-compact label {
  font-size: 13px;
  margin-bottom: 6px;
}

.vtc-counter-compact .vtc-counter-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border-width: 2px;
  font-size: 16px;
}

.vtc-counter-compact .vtc-counter-btn i {
  font-size: 18px;
  font-weight: 700;
}

.vtc-counter-compact .vtc-counter-display {
  min-width: 40px;
  padding: 0 8px;
}

.vtc-counter-compact .vtc-counter-value {
  font-size: 20px;
  min-width: 28px;
}

/* Boutons + / - : strictement neutres (aucune couleur du thème) */
.vtc-booking-container .vtc-counter-btn {
  width: 44px;
  height: 44px;
  border: 1px solid #e0e0e0 !important;
  border-radius: 8px;
  background: #ffffff !important;
  color: #111111 !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  position: relative;
}

/* Symboles + et − visibles dans les boutons */
.vtc-booking-container .vtc-counter-btn .vtc-counter-symbol {
  display: inline-block;
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
  color: inherit;
  user-select: none;
}

.vtc-booking-container .vtc-counter-btn:hover {
  background: #f5f5f5 !important;
  border-color: #666666 !important;
  color: #111111 !important;
}

.vtc-booking-container .vtc-counter-btn:active,
.vtc-booking-container .vtc-counter-btn:focus {
  border-color: #e0e0e0 !important;
  color: #111111 !important;
  outline: none;
}

.vtc-booking-container .vtc-counter-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f5f5f5 !important;
  border-color: #e0e0e0 !important;
  color: #666666 !important;
}

.vtc-booking-container .vtc-counter-btn:disabled:hover {
  background: #f5f5f5 !important;
  border-color: #e0e0e0 !important;
  color: #666666 !important;
}

.vtc-counter-display {
  min-width: 60px;
  text-align: center;
  padding: 0 12px;
}

.vtc-counter-value {
  display: inline-block;
  font-size: 24px;
  font-weight: 700;
  color: var(--vtc-text);
  min-width: 36px;
  transition: transform 0.2s ease;
  line-height: 1.2;
}

.vtc-counter-value.animate {
  animation: vtc-counterBounce 0.3s ease;
}

@keyframes vtc-counterBounce {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Options (passagers / bagages) - Ancien style (conservé pour compatibilité) */
.vtc-options {
  display: flex;
  gap: 8px;
}
.vtc-options button {
  flex: 1;
  padding: 10px 8px;
  border: 1px solid var(--vtc-border);
  border-radius: 8px;
  background: var(--vtc-bg);
  color: var(--vtc-text);
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.vtc-options button:hover {
  background: var(--vtc-bg-alt);
  border-color: var(--vtc-text-muted);
}
.vtc-options button.active {
  background: var(--vtc-text);
  color: var(--vtc-btn-text);
  border-color: var(--vtc-text);
}

/* Boutons principaux - neutres */
.vtc-button-gradient {
  display: block;
  width: 100%;
  border: none;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  color: var(--vtc-btn-text);
  background: var(--vtc-btn-bg);
  transition: background 0.2s ease, opacity 0.2s ease;
  margin-top: 4px;
}

.vtc-button-gradient:hover {
  background: var(--vtc-btn-hover);
}

.vtc-button-gradient:active {
  opacity: 0.9;
}

/* Bouton calcul */
#vtc-calc-button {
  background: var(--vtc-btn-bg);
  color: var(--vtc-btn-text);
}

#vtc-calc-button:hover {
  background: var(--vtc-btn-hover);
}

#vtc-calc-button:active {
  opacity: 0.9;
}

.vtc-booking-container #vtc-calc-button,
.vtc-booking-container .vtc-button-gradient {
  border: none !important;
  outline: none;
}
.vtc-booking-container #vtc-calc-button:focus,
.vtc-booking-container .vtc-button-gradient:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* Bouton réservation */
.vtc-button.vtc-reserve {
  margin-top: 12px;
  background: var(--vtc-btn-bg);
  color: var(--vtc-btn-text);
}

.vtc-button.vtc-reserve:hover {
  background: var(--vtc-btn-hover);
}

.vtc-button.vtc-reserve:active {
  opacity: 0.9;
}

/* Bouton "Continuer vers les informations" - même style que les autres CTA (visible, cliquable) */
.vtc-booking-container #vtc-continue-button {
  display: block !important;
  width: 100%;
  margin-top: 20px;
  padding: 14px 20px;
  background: #111111 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.vtc-booking-container #vtc-continue-button:hover {
  background: #333333 !important;
  color: #ffffff !important;
}

.vtc-booking-container #vtc-continue-button:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* Résultat */
#resultat {
  margin-top: 12px;
  text-align: center;
  font-weight: 600;
  font-size: 16px;
  color: var(--vtc-text);
  animation: vtc-fadeIn 0.4s ease-out;
}

/* Carte tarif - neutre */
.vtc-tarif-card {
  margin-top: 16px;
  padding: 20px;
  background: var(--vtc-bg-alt);
  border: 1px solid var(--vtc-border);
  border-radius: 10px;
  text-align: center;
  color: var(--vtc-text);
  animation: vtc-tarifAppear 0.4s ease-out;
}

@keyframes vtc-tarifAppear {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.vtc-tarif-badge {
  display: inline-block;
  padding: 5px 12px;
  background: var(--vtc-border);
  color: var(--vtc-text-muted);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.vtc-tarif-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin: 12px 0;
}

.vtc-tarif-value {
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  color: var(--vtc-text);
  animation: vtc-pulseNumber 0.4s ease-out;
}

@keyframes vtc-pulseNumber {
  0% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}

.vtc-tarif-currency {
  font-size: 18px;
  font-weight: 600;
  color: var(--vtc-text-muted);
}

.vtc-tarif-label {
  font-size: 13px;
  color: var(--vtc-text-muted);
  margin-top: 8px;
}

.vtc-tarif {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--vtc-text);
}
.vtc-distance {
  font-size: 15px;
  color: var(--vtc-text-muted);
}

/* Résumé */
.vtc-summary {
  margin-top: 16px;
  padding: 16px;
  background: var(--vtc-bg-alt);
  border: 1px solid var(--vtc-border);
  border-radius: 10px;
  animation: vtc-slideIn 0.3s ease-out;
}
.vtc-summary h3 {
  margin-top: 0;
  margin-bottom: 12px;
  color: var(--vtc-text);
  font-size: 16px;
}
.vtc-summary-line {
  margin: 4px 0;
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 14px;
  color: var(--vtc-text);
}
.vtc-summary-price,
.vtc-summary-distance,
.vtc-summary-duration {
  margin-top: 10px;
}

/* Carte itinéraire (section Détails) */
.vtc-route-map {
  width: 100%;
  height: 280px;
  margin-top: 16px;
  border-radius: 8px;
  border: 1px solid var(--vtc-border);
  background: var(--vtc-bg-alt);
}

/* Autocomplete BAN (Stack gratuite) */
.vtc-ban-autocomplete-list {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--vtc-border);
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 1000;
  max-height: 220px;
  overflow-y: auto;
}
.vtc-ban-autocomplete-item {
  padding: 10px 12px;
  font-size: 14px;
  color: var(--vtc-text);
  cursor: pointer;
  border-bottom: 1px solid #eee;
}
.vtc-ban-autocomplete-item:last-child { border-bottom: none; }
.vtc-ban-autocomplete-item:hover { background: var(--vtc-bg-alt); }

/* Espacement bloc client */
#vtc-client-info {
  margin-top: 16px;
}

/* Loader */
.vtc-loader {
  border: 3px solid var(--vtc-border);
  border-top-color: var(--vtc-text);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  animation: vtc-spin 0.8s linear infinite;
  margin: 10px auto;
}
@keyframes vtc-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Messages - neutres avec léger contraste sémantique */
.vtc-success {
  padding: 12px 16px;
  background: var(--vtc-bg-alt);
  border: 1px solid var(--vtc-border);
  color: var(--vtc-text);
  border-radius: 8px;
  font-weight: 600;
  margin-top: 20px;
  text-align: center;
}

.vtc-error {
  padding: 12px 16px;
  background: var(--vtc-bg-alt);
  border: 1px solid var(--vtc-text-muted);
  color: var(--vtc-text);
  border-radius: 8px;
  font-weight: 600;
  margin-top: 20px;
  text-align: center;
}


/* Champs d'erreur et validation - neutres */
.vtc-error-field,
.vtc-field-invalid {
  border-color: var(--vtc-text-muted) !important;
  background: var(--vtc-bg-alt) !important;
}

.vtc-field-valid {
  border-color: var(--vtc-border-focus) !important;
}

.vtc-field-error {
  display: block;
  color: var(--vtc-text);
  font-size: 13px;
  margin-top: 4px;
  font-weight: 500;
}

/* Feedback de validation en temps réel */
.vtc-field-feedback {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  margin-top: 4px;
  margin-left: 8px;
  animation: vtc-fadeIn 0.2s ease-out;
}

.vtc-field-feedback i {
  font-size: 14px;
}

.vtc-field-success {
  color: var(--vtc-text-muted);
}

.vtc-field-error {
  color: var(--vtc-text);
}

/* Wrapper pour inputs avec boutons */
.vtc-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.vtc-input-wrapper input {
  padding-right: 45px;
}

/* Boutons géoloc : strictement neutres (aucune couleur du thème) */
.vtc-booking-container .vtc-geoloc-btn {
  position: absolute;
  right: 8px;
  width: 36px;
  height: 36px;
  border: 1px solid #e0e0e0 !important;
  background: #ffffff !important;
  color: #111111 !important;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
  z-index: 10;
}

/* Icône géoloc (SVG) - hérite de la couleur du bouton */
.vtc-booking-container .vtc-geoloc-btn .vtc-icon-geoloc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.vtc-booking-container .vtc-geoloc-btn .vtc-icon-geoloc svg {
  display: block;
  width: 18px;
  height: 18px;
}

.vtc-booking-container .vtc-geoloc-btn:hover {
  background: #f5f5f5 !important;
  border-color: #666666 !important;
  color: #111111 !important;
}

.vtc-booking-container .vtc-geoloc-btn:active,
.vtc-booking-container .vtc-geoloc-btn:focus {
  border-color: #e0e0e0 !important;
  color: #111111 !important;
  outline: none;
}

.vtc-booking-container .vtc-geoloc-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.vtc-geoloc-loading {
  animation: vtc-spin 1s linear infinite;
}

.vtc-booking-container .vtc-geoloc-success {
  background: #111111 !important;
  border-color: #111111 !important;
  color: #ffffff !important;
}

/* Indicateur de recherche autocomplete */
.vtc-autocomplete-searching {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px !important;
}

/* Message de sauvegarde automatique */
.vtc-autosave-message {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--vtc-text);
  color: var(--vtc-btn-text);
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  animation: vtc-slideInRight 0.3s ease-out;
}

@keyframes vtc-slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Confirmation améliorée */
.vtc-confirmation-success {
  text-align: center;
  animation: vtc-scaleIn 0.5s ease-out;
}

@keyframes vtc-scaleIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* État désactivé / loading */
.vtc-loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Responsive - Tablette */
@media (max-width: 768px) {
  .vtc-booking-container {
    max-width: 90%;
    padding: 25px;
  }

  .vtc-booking-container h2 {
    font-size: 24px;
  }

  .vtc-progress-steps {
    padding: 15px 0;
    margin-bottom: 30px;
  }

  .vtc-step-label {
    font-size: 11px;
  }
}

/* Responsive - Mobile */
@media (max-width: 600px) {
  .vtc-booking-container {
    padding: 18px;
    margin: 15px auto;
    max-width: 100%;
    border-radius: 16px;
  }

  /* Touch targets minimum 44px (recommandation accessibilité) */
  .vtc-booking-container .vtc-button,
  .vtc-booking-container button[type="submit"],
  .vtc-booking-container #vtc-calc-button,
  .vtc-booking-container #vtc-continue-button,
  .vtc-booking-container #vtc-stripe-submit,
  .vtc-booking-container #vtc-stripe-pay-at-board-btn,
  .vtc-booking-container .vtc-link-new-booking {
    min-height: 44px;
    padding: 12px 20px;
    font-size: 16px;
  }

  .vtc-booking-container input[type="text"],
  .vtc-booking-container input[type="tel"],
  .vtc-booking-container input[type="email"],
  .vtc-booking-container select {
    min-height: 44px;
    font-size: 16px;
  }

  .vtc-booking-container textarea {
    min-height: 80px;
    font-size: 16px;
  }

  .vtc-booking-container .vtc-geoloc-btn {
    min-height: 44px;
    min-width: 44px;
  }

  .vtc-booking-container .vtc-counter-btn {
    min-width: 44px;
    min-height: 44px;
  }

  .vtc-confirmation-block {
    padding: 24px 18px;
  }

  .vtc-confirmation-desc .vtc-link-new-booking {
    min-height: 44px;
    line-height: 44px;
    padding: 0 24px;
  }

  .vtc-tabs-bar {
    padding: 3px;
  }
  .vtc-tab-label {
    padding: 10px 20px;
    min-height: 44px;
    line-height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .vtc-autosave-message {
    top: 10px;
    right: 10px;
    left: 10px;
    font-size: 13px;
    padding: 10px 15px;
  }

  .vtc-geoloc-btn {
    width: 32px;
    height: 32px;
    right: 6px;
    border-width: 2px;
  }

  .vtc-geoloc-btn i {
    font-size: 16px;
  }

  .vtc-input-wrapper input {
    padding-right: 45px;
  }

  .vtc-geoloc-btn {
    min-width: 90px;
    height: 32px;
    padding: 0 10px;
    font-size: 11px;
  }

  .vtc-geoloc-btn-text {
    font-size: 10px;
  }

  .vtc-geoloc-btn i {
    font-size: 12px;
  }

  .vtc-booking-container h2 {
    font-size: 22px;
    margin-bottom: 25px;
  }

  /* Indicateur de progression mobile */
  .vtc-progress-steps {
    padding: 12px 0;
    margin-bottom: 25px;
    gap: 5px;
  }

  .vtc-step-number {
    width: 32px;
    height: 32px;
    font-size: 13px;
    border-width: 2px;
  }

  .vtc-step-label {
    font-size: 9px;
    margin-top: 5px;
    line-height: 1.2;
  }

  .vtc-step-line {
    margin: 0 3px;
    height: 2px;
  }

  /* Layout - Les lignes avec .half (passagers/bagages) restent en row même sur mobile */
  .vtc-row {
    gap: 10px;
    margin-bottom: 14px;
  }
  
  /* Les autres lignes (sans .half) passent en column sur mobile */
  .vtc-row:first-of-type {
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
  }

  /* Garder passagers et bagages côte à côte même sur mobile */
  .vtc-row .vtc-counter-compact {
    flex: 1;
    min-width: 0; /* Permet au flex de fonctionner correctement */
  }
  
  /* Forcer le row pour les lignes avec des éléments half (passagers/bagages) */
  .vtc-row .half {
    flex: 1;
  }

  .vtc-card {
    margin-bottom: 16px;
  }

  .vtc-card label {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .vtc-card i {
    font-size: 16px;
  }

  /* Inputs */
  .vtc-card input,
  .vtc-card select,
  .vtc-card textarea {
    padding: 12px;
    font-size: 16px; /* Évite le zoom sur iOS */
    border-radius: 10px;
  }

  /* Sélecteur avec boutons + et - */
  .vtc-counter-wrapper {
    gap: 10px;
    padding: 6px;
  }

  .vtc-counter-compact .vtc-counter-wrapper {
    gap: 6px;
    padding: 5px;
  }

  .vtc-counter-compact .vtc-counter-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
    min-width: 40px; /* Touch-friendly */
    border-width: 2px;
  }

  .vtc-counter-compact .vtc-counter-btn i {
    font-size: 18px;
    font-weight: 700;
  }

  .vtc-counter-compact .vtc-counter-value {
    font-size: 22px;
  }

  .vtc-counter-compact .vtc-counter-display {
    min-width: 45px;
    padding: 0 10px;
  }

  .vtc-counter-btn {
    width: 48px;
    height: 48px;
    font-size: 20px;
    min-width: 48px; /* Touch-friendly */
  }

  .vtc-counter-value {
    font-size: 28px;
  }

  .vtc-counter-display {
    min-width: 70px;
    padding: 0 16px;
  }

  /* Options (passagers / bagages) - Ancien style */
  .vtc-options {
    gap: 8px;
  }

  .vtc-options button {
    padding: 14px 10px;
    font-size: 15px;
    min-height: 44px; /* Touch-friendly */
  }

  /* Boutons */
  #vtc-calc-button,
  .vtc-button.vtc-reserve,
  #vtc-continue-button {
    padding: 14px;
    font-size: 16px;
    min-height: 48px; /* Touch-friendly */
    border-radius: 10px;
  }

  /* Résumé */
  .vtc-summary {
    padding: 18px;
    border-radius: 12px;
  }

  .vtc-summary h3 {
    font-size: 18px;
  }

  /* Carte tarif mobile */
  .vtc-tarif-card {
    padding: 20px 18px;
    border-radius: 12px;
  }

  .vtc-tarif-badge {
    font-size: 11px;
    padding: 5px 12px;
  }

  .vtc-tarif-value {
    font-size: 36px;
  }

  .vtc-tarif-currency {
    font-size: 18px;
  }

  .vtc-tarif-label {
    font-size: 13px;
  }

  /* Messages */
  .vtc-success,
  .vtc-error {
    padding: 14px;
    font-size: 15px;
  }
}

/* Responsive - Petit mobile */
@media (max-width: 400px) {
  .vtc-booking-container {
    padding: 15px;
    margin: 10px auto;
  }

  .vtc-tab-label {
    padding: 8px 14px;
    font-size: 13px;
  }
  .vtc-summary-return {
    padding: 6px 10px;
    font-size: 12px;
  }

  .vtc-booking-container h2 {
    font-size: 20px;
  }

  .vtc-step-number {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .vtc-step-label {
    font-size: 8px;
  }

  .vtc-counter-compact .vtc-counter-btn {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .vtc-counter-compact .vtc-counter-value {
    font-size: 20px;
  }

  .vtc-counter-compact .vtc-counter-display {
    min-width: 40px;
    padding: 0 8px;
  }

  .vtc-counter-btn {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .vtc-counter-value {
    font-size: 24px;
  }

  .vtc-options button {
    padding: 12px 8px;
    font-size: 14px;
  }

  .vtc-tarif-value {
    font-size: 32px;
  }
}

/* --- Paiement Stripe (préautorisation) - neutre --- */
.vtc-stripe-container {
  background: var(--vtc-bg-alt);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid var(--vtc-border);
}

.vtc-stripe-card-wrapper {
  margin-bottom: 12px;
}

.vtc-stripe-card-wrapper label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--vtc-text);
}

#vtc-stripe-card-element {
  padding: 12px 14px;
  background: var(--vtc-bg);
  border: 1px solid var(--vtc-border);
  border-radius: 8px;
}

.vtc-stripe-errors {
  color: var(--vtc-text);
  font-size: 13px;
  margin-top: 8px;
  min-height: 20px;
}

.vtc-stripe-hint {
  font-size: 13px;
  color: var(--vtc-text-muted);
  margin: 12px 0 16px;
  line-height: 1.5;
}

/* Bouton "Valider le paiement" - même style que les autres CTA (bien visible) */
.vtc-booking-container #vtc-stripe-submit {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 14px 20px;
  background: #111111 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.vtc-booking-container #vtc-stripe-submit:hover {
  background: #333333 !important;
  color: #ffffff !important;
}

.vtc-booking-container #vtc-stripe-submit:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* Payer à bord en cas d'échec Stripe */
.vtc-stripe-pay-at-board {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--vtc-border);
}

.vtc-button-outline {
  display: block;
  width: 100%;
  padding: 12px 20px;
  background: transparent !important;
  color: var(--vtc-text) !important;
  border: 2px solid var(--vtc-border) !important;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.vtc-button-outline:hover {
  background: var(--vtc-bg-alt) !important;
  border-color: var(--vtc-text-muted) !important;
}

/* Bloc confirmation (succès réservation / paiement) */
.vtc-confirmation-block {
  padding: 30px 24px;
  font-size: 18px;
}

.vtc-confirmation-icon {
  font-size: 48px;
  margin-bottom: 15px;
  line-height: 1;
}

.vtc-confirmation-title {
  margin-bottom: 20px;
  font-weight: 600;
  color: var(--vtc-text);
}

.vtc-confirmation-desc {
  font-size: 14px;
  color: var(--vtc-text-muted);
  margin-top: 20px;
  line-height: 1.6;
}

.vtc-confirmation-desc p {
  margin: 0 0 10px;
}

.vtc-link-new-booking {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 24px;
  background: var(--vtc-btn-bg) !important;
  color: var(--vtc-btn-text) !important;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.2s ease;
}

.vtc-link-new-booking:hover {
  background: var(--vtc-btn-hover) !important;
  color: var(--vtc-btn-text) !important;
}

/* ============================================
   Onglets type de trajet (au-dessus du titre)
   ============================================ */

.vtc-tabs-bar {
  display: inline-flex;
  gap: 0;
  margin-bottom: 14px;
  padding: 4px;
  background: var(--vtc-bg-alt);
  border: 1px solid var(--vtc-border);
  border-radius: 10px;
  font-size: 0;
}

.vtc-tab {
  margin: 0;
  cursor: pointer;
}

.vtc-tab input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
}

.vtc-tab-label {
  display: inline-block;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--vtc-text-muted);
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.vtc-tab:hover .vtc-tab-label {
  color: var(--vtc-text);
}

.vtc-tab input:focus-visible + .vtc-tab-label {
  outline: 2px solid var(--vtc-accent);
  outline-offset: 2px;
}

.vtc-tab:has(input:checked) .vtc-tab-label {
  background: #fff;
  color: var(--vtc-text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Onglets désactivés à partir de l'étape Détails */
.vtc-tabs-bar-disabled {
  pointer-events: none;
  opacity: 0.6;
  cursor: not-allowed;
}

/* Sélecteur de véhicule (menu déroulant) */
.vtc-vehicle-selector {
  margin-bottom: 16px;
}
.vtc-vehicle-selector .vtc-label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--vtc-text);
}
.vtc-vehicle-select-wrapper {
  position: relative;
}
.vtc-vehicle-select {
  width: 100%;
  max-width: 100%;
  padding: 12px 40px 12px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--vtc-text);
  background: var(--vtc-bg-alt);
  border: 1px solid var(--vtc-border);
  border-radius: 8px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.vtc-vehicle-select:hover {
  border-color: var(--vtc-border-focus);
}
.vtc-vehicle-select:focus {
  outline: none;
  border-color: var(--vtc-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.vtc-vehicle-select option {
  padding: 8px;
  font-weight: 500;
}

/* Heure de retour : compact, même style que les autres champs */
.vtc-return-time-wrapper {
  margin-bottom: 14px;
}

.vtc-return-time-wrapper .vtc-return-time-label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--vtc-text);
}

.vtc-return-time-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--vtc-border);
  border-radius: 8px;
  font-size: 15px;
  color: var(--vtc-text);
  background: #fff;
  transition: border-color 0.2s ease;
}

.vtc-return-time-input:focus {
  border-color: var(--vtc-border-focus);
  outline: none;
}

.vtc-return-time-wrapper .vtc-field-hint {
  margin-top: 4px;
  font-size: 12px;
  color: var(--vtc-text-muted);
  line-height: 1.3;
}

/* Hint générique */
.vtc-field-hint {
  margin-top: 6px;
  font-size: 12px;
  color: var(--vtc-text-muted);
  line-height: 1.4;
}

/* Résumé aller-retour : compact */
.vtc-summary-return {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  padding: 8px 12px;
  background: #e8f5e9;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #1b5e20;
}

.vtc-summary-return-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: #2e7d32;
}

/* Crédit plugin - tout en bas à droite du formulaire */
.vtc-booking-credit {
  text-align: right;
  margin: 12px 0 0;
  padding: 0;
  font-size: 10px;
  line-height: 1.4;
  color: var(--vtc-text-muted);
}

.vtc-booking-credit a {
  color: var(--vtc-text-muted);
  text-decoration: none;
}

.vtc-booking-credit a:hover {
  color: var(--vtc-text);
  text-decoration: underline;
}
