/* ==========================================================================
   Réservation taxi - UX Premium (Uber/Bolt/G7 style)
   Mobile-first, thème sombre, flow en 3 étapes
   ========================================================================== */

/* --- Variables locales --- */
.reservation-form-card {
  --rp-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --rp-duration: 0.35s;
  --rp-input-height: 52px;
  --rp-vehicle-img-w: 88px;
  --rp-vehicle-img-h: 66px;
}

/* --- Stepper premium --- */
.reservation-form-progress {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.reservation-form-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  margin-top: 0.5rem;
  overflow: hidden;
  transition: opacity var(--rp-duration) var(--rp-ease);
}

.reservation-form-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 999px;
  transition: width 0.5s var(--rp-ease);
  box-shadow: 0 0 12px var(--gold-glow);
}

.reservation-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: all var(--rp-duration) var(--rp-ease);
}

.reservation-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  opacity: 0.7;
  transition: all var(--rp-duration) var(--rp-ease);
}

.reservation-step.is-active {
  opacity: 1;
}

.reservation-step.is-active .reservation-step-circle {
  border-color: var(--gold);
  background: var(--gold-dim);
  color: var(--gold);
  box-shadow: 0 0 12px var(--gold-glow);
}

.reservation-step.is-active .reservation-step-label {
  color: var(--gold);
}

.reservation-step-circle {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.4);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  transition: all var(--rp-duration) var(--rp-ease);
}

@media (max-width: 480px) {
  .reservation-steps {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
}

/* --- Sections --- */
.form-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  transition: opacity var(--rp-duration) var(--rp-ease);
}

.form-section:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.form-section-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
}

.form-section-num {
  width: 1.75rem;
  height: 1.75rem;
  font-size: 0.8125rem;
}

/* --- Input icon wrapper (Uber style) --- */
.input-icon-wrap {
  display: flex;
  align-items: stretch;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.25s var(--rp-ease);
  overflow: hidden;
}

.input-icon-wrap:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold-dim), 0 0 16px var(--gold-glow);
}

.input-icon-wrap .input-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  min-width: 32px;
  padding: 0 0.5rem;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.input-icon-wrap .input-icon svg {
  width: 12px;
  height: 12px;
  max-width: 12px;
  max-height: 12px;
  flex-shrink: 0;
}

.input-icon-wrap.input-icon-pickup .input-icon { color: #4ade80; }
.input-icon-wrap.input-icon-dest .input-icon { color: #f87171; }

.input-icon-wrap input {
  flex: 1;
  min-width: 0;
  border: none !important;
  background: transparent !important;
  padding: 0 1rem 0 0.75rem !important;
  box-shadow: none !important;
  min-height: var(--rp-input-height);
}

.input-icon-wrap input:focus {
  outline: none;
}

/* --- Date / heure avec icônes --- */
.form-row .input-icon-wrap input {
  min-height: var(--rp-input-height);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
}

/* --- Form groups --- */
.reservation-form-card .form-group {
  margin-bottom: 1.5rem;
}

.reservation-form-card .form-group:last-child {
  margin-bottom: 0;
}

.reservation-form-card .form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
  display: block;
}

.reservation-form-card input,
.reservation-form-card select,
.reservation-form-card textarea {
  min-height: var(--rp-input-height);
  padding: 0 1rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: var(--radius);
  transition: all 0.2s var(--rp-ease);
}

@media (min-width: 769px) {
  .reservation-form-card input,
  .reservation-form-card select {
    font-size: 0.9375rem;
  }
}

/* --- Véhicules : cartes premium, sans radios visibles --- */
.vehicule-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.vehicule-option {
  display: grid;
  grid-template-columns: var(--rp-vehicle-img-w) 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0;
  background: var(--bg-dark);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all 0.3s var(--rp-ease);
  overflow: hidden;
}

.vehicule-option:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

.vehicule-option.selected {
  border-color: var(--gold);
  background: var(--gold-dim);
  box-shadow: 0 0 0 1px var(--gold-accent), 0 0 24px var(--gold-glow);
}

.vehicule-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.vehicule-option-img {
  width: var(--rp-vehicle-img-w);
  height: var(--rp-vehicle-img-h);
  object-fit: cover;
  border-radius: 0;
}

.vehicule-option-img.byd-black {
  filter: brightness(0.55) contrast(1.25) saturate(0.55);
}

.vehicule-option-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.25rem 1rem 0;
  min-width: 0;
}

.vehicule-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: 0.02em;
}

.vehicule-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.vehicule-option.selected .vehicule-name {
  color: var(--gold-light);
}

@media (max-width: 480px) {
  .vehicule-option {
    grid-template-columns: 72px 1fr;
    gap: 0.75rem;
  }
  .vehicule-option-img {
    width: 72px;
    height: 54px;
  }
}

/* --- Estimation --- */
.estimation-block {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-estimate {
  align-self: flex-start;
  padding: 0.6rem 1.25rem;
  font-size: 0.9375rem;
  min-height: 2.75rem;
}

.estimation-result {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--gold);
}

/* --- CTA final --- */
.form-actions {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.btn-submit {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  min-height: 56px;
  border-radius: var(--radius);
  letter-spacing: 0.04em;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s var(--rp-ease);
}

.btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.form-actions-note {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
}

/* --- Mobile : zones tactiles --- */
@media (max-width: 768px) {
  .reservation-form-card {
    padding: 1.5rem 1.25rem;
  }
  .vehicule-option {
    min-height: 88px;
  }
  .btn-submit {
    min-height: 52px;
  }
}

/* ==========================================================================
   Page réservation — rendu premium (fond, typo, carte, FAQ)
   ========================================================================== */

.page-reservation .app-main {
  background:
    radial-gradient(ellipse 120% 75% at 50% -18%, rgba(228, 228, 231, 0.085), transparent 58%),
    radial-gradient(ellipse 55% 45% at 100% 18%, rgba(120, 120, 135, 0.06), transparent 52%),
    radial-gradient(ellipse 40% 35% at 0% 55%, rgba(100, 100, 115, 0.04), transparent 50%),
    var(--bg-dark);
}

.page-reservation .reservation-page {
  position: relative;
}

.page-reservation .reservation-intro {
  padding-top: clamp(2.25rem, 6vw, 3.5rem);
  padding-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.page-reservation .reservation-intro h1 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 38rem;
}

.page-reservation .reservation-intro h1::after {
  width: 4rem;
  height: 2px;
  opacity: 0.9;
}

.page-reservation .reservation-intro::after {
  display: none;
}

.page-reservation .reservation-intro .reservation-urgency-banner {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.02) 50%,
    transparent 100%
  );
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.35rem;
}

.page-reservation .reservation-intro > p:not(.reservation-intro-trust) {
  font-size: 1.05rem;
  line-height: 1.75;
}

.page-reservation .reservation-intro-meta {
  max-width: 38rem;
  gap: 0;
}

.page-reservation .reservation-intro-card {
  padding: 1rem 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.28);
}

.page-reservation .reservation-intro-trust {
  max-width: none;
  font-size: 0.8125rem;
  color: var(--gold-light);
}

.page-reservation .reservation-see-also {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  margin: 0;
  padding: 0.85rem 0 0;
  text-align: center;
  background: none;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  align-self: stretch;
}

.page-reservation .reservation-see-also-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(181, 175, 166, 0.95);
}

.page-reservation .reservation-see-also-nav {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
}

.page-reservation .reservation-see-also-dot {
  display: none;
}

.page-reservation .reservation-see-also-nav a {
  color: var(--gold-light);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  border-bottom: 1px solid rgba(228, 228, 231, 0.22);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.page-reservation .reservation-see-also-nav a:hover {
  color: #fafafa;
  border-bottom-color: rgba(250, 250, 250, 0.45);
}

.page-reservation .reservation-call-strip {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.page-reservation .reservation-form {
  max-width: 580px;
}

.page-reservation .reservation-form-card {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid var(--gold);
  background: linear-gradient(180deg, rgba(22, 23, 28, 0.97) 0%, rgba(10, 11, 14, 0.99) 100%);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.4),
    0 28px 64px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: clamp(1.85rem, 4.5vw, 2.65rem) clamp(1.5rem, 4vw, 2.15rem);
}

.page-reservation .reservation-steps {
  background: rgba(0, 0, 0, 0.38);
  border-color: rgba(255, 255, 255, 0.1);
  padding: 0.85rem 1.1rem;
}

.page-reservation .faq-section {
  background: linear-gradient(180deg, rgba(12, 13, 16, 0.65) 0%, var(--bg-card) 28%);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: clamp(2.75rem, 7vw, 4rem);
  padding-bottom: clamp(2.75rem, 7vw, 4rem);
}

.page-reservation .faq-section .section-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(1.45rem, 3.8vw, 2rem);
  letter-spacing: -0.025em;
  text-align: center;
  margin-bottom: 2rem;
  line-height: 1.2;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.page-reservation .seo-content-section {
  background: linear-gradient(180deg, rgba(7, 8, 10, 0.4) 0%, var(--bg-dark) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.page-reservation .seo-content-section .seo-content h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(1.3rem, 3vw, 1.65rem);
  letter-spacing: -0.02em;
  color: var(--text);
  margin-top: 2.25rem;
  margin-bottom: 0.85rem;
  line-height: 1.25;
}

.page-reservation .seo-content-section .seo-content > h2:first-child {
  margin-top: 0;
}

.page-reservation .seo-content-section .seo-content h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: rgba(228, 228, 231, 0.95);
  margin-top: 1.85rem;
  margin-bottom: 0.55rem;
  letter-spacing: 0.01em;
}

.page-reservation .seo-content-section .seo-content p {
  line-height: 1.78;
  color: var(--text-muted);
}

@media (max-width: 480px) {
  .page-reservation .faq-section .section-title {
    margin-bottom: 1.5rem;
  }

  .page-reservation .reservation-intro-card {
    padding: 0.85rem 1.1rem;
  }

  .page-reservation .reservation-intro-trust {
    font-size: 0.78rem;
  }

  .page-reservation .reservation-see-also {
    padding-top: 0.75rem;
  }

  .page-reservation .reservation-see-also-nav a {
    font-size: 0.8125rem;
  }
}

/* Reservation already exposes strong above-the-fold CTAs on mobile.
   Hide the global sticky bar on this template to prevent CTA overlap. */
@media (max-width: 900px) {
  body.page-reservation .call-button,
  body.page-reservation .whatsapp-button,
  .page-reservation .call-button,
  .page-reservation .whatsapp-button,
  body.page-reservation #stickyBarMobile,
  .page-reservation .sticky-bar-mobile {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .page-reservation .reservation-call-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.65rem !important;
    width: 100% !important;
    margin-top: 0.75rem !important;
  }

  .page-reservation .reservation-call-actions .btn {
    width: 100% !important;
    max-width: none !important;
    min-height: 50px !important;
    position: static !important;
    transform: none !important;
  }

  .page-reservation .reservation-call-number {
    display: block !important;
    position: static !important;
    margin-top: 0.6rem !important;
  }
}
