/* =====================================================
   FASTPARK – Reservation page specific CSS
   ===================================================== */

/* ===== SINGLE PAGE CONTAINER ===== */
.reservation-container--single {
  max-width: 780px;
}

/* ===== SECTION LABEL ===== */
.res-section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid rgba(37,99,235,.15);
}
.res-section-label:first-of-type { margin-top: 0; }

/* ===== PAYMENT CHOICE ===== */
.payment-choice {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.payment-option {
  flex: 1;
  min-width: 200px;
  cursor: pointer;
}
.payment-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.payment-option-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1.25rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  transition: border-color .2s, background .2s, box-shadow .2s;
  text-align: center;
}
.payment-option-body svg {
  width: 28px; height: 28px;
  stroke: #94a3b8;
  transition: stroke .2s;
}
.payment-option-body span {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1e293b;
}
.payment-option-body small {
  font-size: 0.78rem;
  color: #64748b;
}
.payment-option input[type="radio"]:checked + .payment-option-body {
  border-color: var(--primary);
  background: rgba(37,99,235,.05);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.payment-option input[type="radio"]:checked + .payment-option-body svg {
  stroke: var(--primary);
}

/* ===== HERO SECTION ===== */
.reservation-hero {
  background: #080f1a;
  padding: 120px 28px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.reservation-hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(37,99,235,.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 80%, rgba(15,45,82,.8) 0%, transparent 60%),
    radial-gradient(ellipse 100% 100% at 50% 50%, #0a1929 0%, #080f1a 100%);
  animation: meshShift 12s ease-in-out infinite alternate;
}

.reservation-hero::after {
  content: '';
  position: absolute; bottom: -1px; left: 0; right: 0; height: 100px; z-index: 1;
  background: linear-gradient(to bottom, transparent, var(--white));
}

.res-hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); pointer-events: none; z-index: 0;
}
.res-hero-orb-1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(37,99,235,.2), transparent 70%);
  top: -100px; right: -50px;
  animation: orbFloat1 18s ease-in-out infinite;
}
.res-hero-orb-2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(245,158,11,.12), transparent 70%);
  bottom: 50px; left: -80px;
  animation: orbFloat2 14s ease-in-out infinite;
}

@keyframes meshShift {
  0%   { filter: hue-rotate(0deg) saturate(1); }
  100% { filter: hue-rotate(12deg) saturate(1.15); }
}
@keyframes orbFloat1 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-60px,40px) scale(1.1)} }
@keyframes orbFloat2 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(40px,-30px) scale(1.05)} }
@keyframes slideDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.res-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
  color: rgba(255,255,255,.85); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 8px 20px; border-radius: 100px; margin-bottom: 28px;
  position: relative; z-index: 2;
  opacity: 0;
  animation: slideDown 0.6s cubic-bezier(.16,1,.3,1) 0.2s forwards;
}
.res-hero-badge svg { width: 14px; height: 14px; }

.reservation-hero h1 {
  font-family: var(--font-heading); font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900; color: var(--white); margin-bottom: 16px;
  line-height: 1.1; letter-spacing: -0.03em;
  position: relative; z-index: 2;
  opacity: 0;
  animation: slideUp 0.8s cubic-bezier(.16,1,.3,1) 0.4s forwards;
}

.reservation-hero p { 
  color: rgba(255,255,255,.65); font-size: 1.05rem; max-width: 550px;
  position: relative; z-index: 2;
  opacity: 0;
  animation: slideUp 0.8s cubic-bezier(.16,1,.3,1) 0.55s forwards;
  line-height: 1.7;
}

/* ===== CRM ACCESS BADGE ===== */
.crm-access-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(16,185,129,.2), rgba(52,211,153,.15));
  border: 1px solid rgba(16,185,129,.4);
  color: rgba(255,255,255,.95);
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  position: relative;
  z-index: 2;
  margin-top: 20px;
  transition: all 0.3s cubic-bezier(.16,1,.3,1);
  opacity: 0;
  animation: slideUp 0.8s cubic-bezier(.16,1,.3,1) 0.7s forwards;
}

.crm-access-badge svg {
  width: 16px;
  height: 16px;
  color: rgba(16,185,129,.9);
}

.crm-access-badge:hover {
  background: linear-gradient(135deg, rgba(16,185,129,.3), rgba(52,211,153,.25));
  border-color: rgba(16,185,129,.6);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(16,185,129,.25);
}

.crm-access-badge:hover svg {
  color: rgba(16,185,129,1);
}

/* ===== STEPS INDICATOR ===== */
.reservation-steps-indicator {
  display: flex; align-items: center; justify-content: center; gap: 0;
  margin-bottom: 50px; flex-wrap: wrap; gap: 12px;
  padding: 32px 28px;
  background: var(--gray-50);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-100);
}

.rs-step { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.rs-step-num {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem;
  background: var(--gray-200); color: var(--gray-400);
  transition: all 0.3s cubic-bezier(.16,1,.3,1);
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.rs-step-num.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(30,58,95,.25), 0 0 0 6px rgba(30,58,95,.08);
  transform: scale(1.08);
}

.rs-step-num.done {
  background: linear-gradient(135deg, var(--success), #34d399);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(16,185,129,.25);
}

.rs-step-label {
  font-size: 0.85rem; font-weight: 600; color: var(--gray-400);
  transition: color 0.3s; white-space: nowrap;
}

.rs-step-label.active { color: var(--primary); font-weight: 700; }
.rs-step-label.done { color: var(--success); }

.rs-connector {
  flex: 1; height: 2px; background: var(--gray-200);
  min-width: 32px; max-width: 100px;
  transition: background 0.3s cubic-bezier(.16,1,.3,1);
}

.rs-connector.done {
  background: linear-gradient(90deg, var(--success), #34d399);
}

/* ===== RESERVATION BODY ===== */
.reservation-body {
  background: var(--off-white);
  padding: 60px 28px;
}

.reservation-container {
  max-width: 900px; margin: 0 auto;
}

/* ===== PANEL ===== */
.reservation-panel {
  background: var(--white); border-radius: var(--radius-xl);
  box-shadow: 0 4px 20px rgba(10,30,60,.12), 0 1px 4px rgba(10,30,60,.06);
  padding: 46px 48px;
  animation: fadeInUp 0.5s cubic-bezier(.16,1,.3,1);
  border: 1px solid rgba(255,255,255,.5);
}

.reservation-panel h2 {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-heading); font-size: 1.35rem; font-weight: 800;
  color: var(--gray-900); margin-bottom: 32px;
  padding-bottom: 24px; border-bottom: 2px solid var(--gray-100);
  letter-spacing: -0.01em;
}

.reservation-panel h2 svg {
  width: 26px; height: 26px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}

.step-desc {
  font-size: 0.95rem; color: var(--gray-500); margin-bottom: 32px;
  line-height: 1.6;
}

.field-hint {
  font-size: 0.76rem; color: var(--gray-400); margin-top: 5px; display: block;
}

/* ===== FORM ELEMENTS ===== */
.res-form-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px;
  margin-bottom: 32px;
}

.res-form-group {
  display: flex; flex-direction: column; gap: 8px;
}

.res-form-group label {
  font-size: 0.9rem; font-weight: 600; color: var(--gray-700);
  display: flex; align-items: center; gap: 4px;
}

.res-form-group label::after {
  content: attr(data-required);
  color: #dc2626;
}

.res-form-group input,
.res-form-group select,
.res-form-group textarea {
  padding: 12px 16px; font-size: 0.95rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--white);
  color: var(--gray-700);
  font-family: inherit;
}

.res-form-group input:focus,
.res-form-group select:focus,
.res-form-group textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

.res-form-group select {
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%232e4a65" stroke-width="2"><polyline points="6 9 12 15 18 9"></polyline></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
}

.res-form-group input::placeholder {
  color: var(--gray-400);
}

/* ===== VEHICLE DETAILS SECTION ===== */
.vehicle-details-section {
  background: linear-gradient(135deg, rgba(37,99,235,.04), rgba(245,158,11,.02));
  border: 2px solid rgba(37,99,235,.15);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin: 32px 0;
  transition: all 0.3s ease;
}

.vehicle-details-section:hover {
  border-color: rgba(37,99,235,.25);
  background: linear-gradient(135deg, rgba(37,99,235,.06), rgba(245,158,11,.03));
}

.section-header-optional {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid rgba(37,99,235,.1);
  gap: 16px;
}

.section-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.section-header-title svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
  flex-shrink: 0;
}

.section-header-title span {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-800);
}

.section-header-title em {
  font-style: normal;
  color: var(--gray-500);
  font-weight: 500;
  font-size: 0.9rem;
  margin-left: 4px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(16,185,129,.12), rgba(52,211,153,.08));
  color: var(--success);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid rgba(16,185,129,.2);
  white-space: nowrap;
  flex-shrink: 0;
}

.section-badge::before {
  content: '💡';
  font-size: 0.85rem;
}

.vehicle-details-section .res-form-grid {
  margin-bottom: 0;
}

/* ===== DATES SUMMARY BOX ===== */
.dates-summary {
  background: linear-gradient(135deg, rgba(37,99,235,.06) 0%, rgba(245,158,11,.04) 100%);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  margin: 32px 0;
  transition: all 0.3s ease;
}

.dates-summary:hover {
  box-shadow: 0 4px 20px rgba(37,99,235,.15);
  border-color: var(--primary-light);
}

.dates-summary-grid {
  display: flex; gap: 48px; flex-wrap: wrap;
}

.dsummary-item {
  display: flex; flex-direction: column; gap: 6px;
}

.dsummary-label {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--gray-400); font-weight: 700;
}

.dsummary-value {
  font-family: var(--font-heading); font-size: 1.2rem; font-weight: 800;
  color: var(--primary);
}

.dsummary-total .dsummary-value {
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--accent), #fb923c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== OPTIONS GRID ===== */
.options-grid {
  display: grid; grid-template-columns: 1fr; gap: 16px;
  margin-bottom: 32px;
}

/* ===== OPTION CARDS ===== */
.option-card {
  border: 2px solid var(--gray-200); border-radius: var(--radius-lg);
  padding: 20px; cursor: pointer;
  transition: all 0.25s cubic-bezier(.16,1,.3,1);
  display: flex; align-items: center; gap: 16px;
  user-select: none;
  background: var(--white);
}

.option-card:hover {
  border-color: var(--primary-light);
  background: linear-gradient(135deg, rgba(37,99,235,.03), rgba(245,158,11,.02));
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(37,99,235,.1);
}

.option-card:has(input:checked) {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(37,99,235,.08), rgba(245,158,11,.04));
  box-shadow: 0 4px 20px rgba(37,99,235,.15), 0 0 0 1px var(--primary);
}

.option-card input[type="checkbox"] {
  width: 22px; height: 22px; accent-color: var(--primary);
  flex-shrink: 0; cursor: pointer;
  border-radius: var(--radius-xs);
}

.option-card-visual {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1.4rem;
}

.option-card-visual svg {
  width: 24px; height: 24px;
}

.option-visual--blue {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}
.option-visual--blue svg { color: #2563eb; }

.option-visual--green {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
}
.option-visual--green svg { color: #16a34a; }

.option-visual--gold {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
}
.option-visual--gold svg { color: #d97706; }

.option-visual--purple {
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
}
.option-visual--purple svg { color: #9333ea; }

.option-card-info {
  flex: 1; min-width: 0;
}

.option-card-info h4 {
  font-size: 0.95rem; font-weight: 700; color: var(--gray-800);
  margin-bottom: 3px;
}

.option-card-info p {
  font-size: 0.8rem; color: var(--gray-500); line-height: 1.5;
}

.option-card-price {
  font-weight: 800; color: var(--primary); font-size: 0.95rem;
  white-space: nowrap; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.option-card-price--free {
  color: var(--success);
  background: none;
  -webkit-text-fill-color: var(--success);
}

/* Baby count */
.baby-count-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px; background: #faf5ff; border-radius: var(--radius-md);
  margin-bottom: 20px; font-size: 0.9rem; font-weight: 600; color: var(--gray-700);
}
.baby-count-row select { padding: 6px 12px; border: 2px solid #e9d5ff; border-radius: var(--radius-sm); font-size: 0.9rem; accent-color: #a855f7; }

/* ===== BUTTONS ===== */
.step-nav {
  display: flex; gap: 16px; margin-top: 40px; padding-top: 32px;
  border-top: 1px solid var(--gray-100);
}

.btn-back {
  padding: 14px 32px; background: var(--gray-100); color: var(--gray-600);
  font-weight: 700; font-size: 0.95rem; border-radius: var(--radius-md);
  transition: all 0.25s cubic-bezier(.16,1,.3,1);
  border: 2px solid var(--gray-200);
}

.btn-back:hover {
  background: var(--gray-200); color: var(--gray-800);
  border-color: var(--gray-300);
  transform: translateY(-2px);
}

.btn-next {
  flex: 1; padding: 16px 28px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white); font-size: 0.98rem; font-weight: 700; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: all 0.25s cubic-bezier(.16,1,.3,1);
  box-shadow: 0 8px 32px rgba(37,99,235,.35);
  border: 2px solid transparent;
}

.btn-next:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 48px rgba(37,99,235,.45);
  filter: brightness(1.08);
}

.btn-next:active {
  transform: translateY(-1px);
}

.btn-next svg { width: 18px; height: 18px; }

.btn-reserve-main {
  width: 100%; padding: 18px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: var(--white); font-weight: 800; font-size: 1.05rem;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: all 0.25s cubic-bezier(.16,1,.3,1);
  box-shadow: 0 8px 32px rgba(245,158,11,.4);
  border: none; cursor: pointer;
}

.btn-reserve-main:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 48px rgba(245,158,11,.5);
  filter: brightness(1.08);
}

.btn-reserve-main svg { width: 22px; height: 22px; }

/* ===== SUMMARY ===== */
.res-summary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-lg); padding: 28px 32px;
  color: var(--white); margin: 32px 0;
  box-shadow: 0 4px 20px rgba(37,99,235,.25);
  border: 1px solid rgba(255,255,255,.1);
}

.res-summary h3 {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em;
  opacity: .7; margin-bottom: 18px; font-weight: 700;
}

.res-summary-line {
  display: flex; justify-content: space-between; font-size: 0.95rem;
  margin-bottom: 12px; opacity: .9; line-height: 1.5;
}

.res-summary-total {
  display: flex; justify-content: space-between;
  font-size: 1.15rem; font-weight: 800;
  padding-top: 16px; border-top: 1px solid rgba(255,255,255,.2);
  margin-top: 6px;
}

/* ===== PAYMENT & CGV ===== */
.res-payment-note {
  display: flex; align-items: flex-start; gap: 12px;
  background: #fff7ed; border: 1px solid #fed7aa; border-radius: var(--radius-md);
  padding: 14px 18px; margin-bottom: 24px;
}

.res-payment-note svg {
  width: 18px; height: 18px; color: #ea580c; flex-shrink: 0; margin-top: 1px;
}

.res-payment-note p {
  font-size: 0.88rem; color: #7c2d12; line-height: 1.6;
}

.res-cgv-check {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 28px;
}

.res-cgv-check input {
  width: 18px; height: 18px; accent-color: var(--primary);
  flex-shrink: 0; margin-top: 2px; cursor: pointer;
  border-radius: var(--radius-xs);
  border: 2px solid var(--gray-300);
  transition: all 0.2s;
}

.res-cgv-check input:checked {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-color: var(--primary-light);
}

.res-cgv-check label {
  font-size: 0.85rem; color: var(--gray-600); line-height: 1.7;
  cursor: pointer;
}

.res-cgv-check a {
  color: var(--primary); font-weight: 700;
  transition: color 0.2s;
}

.res-cgv-check a:hover { color: var(--primary-light); }

/* ===== ERROR ===== */
.form-error {
  color: #dc2626; font-size: 0.85rem; background: #fee2e2;
  border: 1px solid #fca5a5; border-radius: var(--radius-md);
  padding: 12px 16px; margin-bottom: 16px; display: none;
}

.form-error.visible { display: block; animation: slideDown 0.3s cubic-bezier(.16,1,.3,1); }

/* ===== CONFIRMATION ===== */
.confirmation-box {
  text-align: center; padding: 56px 40px;
  animation: fadeInUp 0.6s cubic-bezier(.16,1,.3,1);
}

.confirmation-icon {
  width: 90px; height: 90px;
  background: linear-gradient(135deg, rgba(16,185,129,.15), rgba(52,211,153,.1));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 32px;
  box-shadow: 0 4px 20px rgba(16,185,129,.2);
}

.confirmation-icon svg {
  width: 44px; height: 44px; color: var(--success);
}

.confirmation-box h2 {
  font-family: var(--font-heading); font-size: 2.2rem; font-weight: 900;
  color: var(--gray-900); margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.confirmation-box > p {
  font-size: 0.98rem; color: var(--gray-500);
  max-width: 520px; margin: 0 auto 36px; line-height: 1.8;
}

.confirmation-details {
  background: linear-gradient(135deg, var(--gray-50), var(--off-white));
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 28px 32px;
  text-align: left; max-width: 520px; margin: 0 auto 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}

.confirmation-details h4 {
  font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--gray-400); margin-bottom: 18px; font-weight: 800;
}

.confirmation-detail-line {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.92rem; color: var(--gray-700);
  padding: 12px 0; border-bottom: 1px solid var(--gray-200); gap: 16px;
}

.confirmation-detail-line:last-child {
  border-bottom: none; font-weight: 800; color: var(--accent);
  font-size: 1.1rem; padding-top: 16px; margin-top: 6px;
}

.confirmation-detail-line span:first-child {
  color: var(--gray-500); font-size: 0.84rem; white-space: nowrap;
}

.confirmation-reminder {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1px solid #fbbf24; border-radius: var(--radius-lg);
  padding: 24px 28px; text-align: left; max-width: 520px;
  margin: 0 auto 36px;
  box-shadow: 0 2px 12px rgba(251, 191, 36, .15);
}

.confirmation-reminder h4 {
  font-size: 0.93rem; font-weight: 800; color: #b45309;
  margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}

.confirmation-reminder h4 svg { width: 18px; height: 18px; }

.confirmation-reminder ul {
  display: flex; flex-direction: column; gap: 10px;
}

.confirmation-reminder li {
  font-size: 0.87rem; color: #78350f; display: flex; gap: 10px; line-height: 1.6;
}

.confirmation-reminder li::before {
  content: '✓'; color: #92400e; font-weight: 800; flex-shrink: 0; font-size: 1rem;
}

/* ===== CONFIRMATION ACTIONS ===== */
.conf-actions {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}

.btn-print, .btn-home, .btn-crm-access {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; font-weight: 700; font-size: 0.93rem;
  border-radius: var(--radius-md); border: none; cursor: pointer;
  transition: all 0.25s cubic-bezier(.16,1,.3,1);
}

.btn-print {
  background: var(--gray-100); color: var(--gray-700);
  border: 2px solid var(--gray-200);
}

.btn-print:hover {
  background: var(--gray-200);
  border-color: var(--gray-300);
  transform: translateY(-2px);
}

.btn-crm-access {
  background: linear-gradient(135deg, #10b981, #34d399);
  color: var(--white); box-shadow: 0 4px 20px rgba(16,185,129,.3);
}

.btn-crm-access:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(16,185,129,.4);
}

.btn-home {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white); box-shadow: 0 4px 20px rgba(37,99,235,.3);
}

.btn-home:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37,99,235,.4);
}

.btn-print svg, .btn-home svg, .btn-crm-access svg { width: 18px; height: 18px; }

/* Footer mini */
.footer--mini { padding: 32px 0; }
.footer--mini .footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding-top: 0; }

/* Print styles */
@media print {
  .navbar, .reservation-hero, .reservation-steps-indicator, .step-nav, .conf-actions, .footer { display: none !important; }
  .reservation-body { padding: 0 !important; background: white !important; }
  .reservation-panel { box-shadow: none !important; border: 1px solid #ccc; }
  .confirmation-box { padding: 20px !important; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .reservation-hero {
    padding: 90px 24px 50px;
  }

  .reservation-hero h1 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  }

  .reservation-panel {
    padding: 32px 24px;
    border-radius: var(--radius-lg);
  }

  .res-form-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .reservation-steps-indicator {
    flex-wrap: wrap;
    padding: 24px 20px;
    gap: 6px;
  }

  .rs-step-label {
    display: none;
  }

  .rs-connector {
    display: none;
  }
}

@media (max-width: 600px) {
  .reservation-hero p {
    font-size: 0.95rem;
  }

  .reservation-panel {
    padding: 24px 18px;
    box-shadow: 0 2px 12px rgba(10,30,60,.08);
  }

  .reservation-panel h2 {
    font-size: 1.15rem;
    margin-bottom: 24px;
    padding-bottom: 16px;
  }

  .res-form-group {
    gap: 6px;
  }

  .dates-summary {
    padding: 20px 24px;
  }

  .dates-summary-grid {
    flex-direction: column;
    gap: 16px;
  }

  .dsummary-item {
    gap: 4px;
  }

  .dsummary-value, .dsummary-total .dsummary-value {
    font-size: 1.1rem;
  }

  .step-nav {
    flex-direction: column-reverse;
    gap: 12px;
    margin-top: 28px;
    padding-top: 24px;
  }

  .btn-back, .btn-next {
    padding: 14px 20px;
    font-size: 0.9rem;
  }

  .btn-back {
    border-radius: var(--radius-md);
  }

  .option-card {
    padding: 16px;
    gap: 12px;
  }

  .option-card-visual {
    width: 44px;
    height: 44px;
  }

  .option-card-price {
    font-size: 0.88rem;
  }

  .res-summary {
    padding: 20px 24px;
  }

  .res-cgv-check {
    gap: 10px;
    margin-bottom: 24px;
  }

  .conf-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-print, .btn-home {
    width: 100%;
    justify-content: center;
  }

  .confirmation-details,
  .confirmation-reminder {
    max-width: 100%;
  }

  .confirmation-box {
    padding: 40px 24px;
  }

  .confirmation-box h2 {
    font-size: 1.8rem;
  }

  .reservation-steps-indicator {
    margin-bottom: 32px;
  }
}

@media (max-width: 400px) {
  .reservation-hero {
    padding: 70px 16px 40px;
  }

  .reservation-hero h1 {
    font-size: 1.4rem;
    letter-spacing: -0.02em;
  }

  .res-hero-badge {
    font-size: 0.7rem;
    padding: 6px 14px;
  }

  .reservation-panel {
    padding: 20px 16px;
  }

  .res-form-grid {
    gap: 16px;
  }

  .option-card {
    padding: 14px;
  }

  .option-card-info h4 {
    font-size: 0.88rem;
  }

  .option-card-info p {
    font-size: 0.75rem;
  }

  .confirmation-box {
    padding: 32px 18px;
  }

  .confirmation-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
  }

  .confirmation-details h4 {
    font-size: 0.72rem;
  }
}

/* ===== PLATE LOOKUP ===== */
.plate-lookup-section { margin-bottom: 28px; }
.plate-lookup-header {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--blue-600, #2563eb); margin-bottom: 8px; display: flex; align-items: center; gap: 6px;
}
.plate-lookup-header svg { width: 18px; height: 18px; flex-shrink: 0; }
.plate-input-row { display: flex; gap: 10px; align-items: center; }
.plate-input-wrap { position: relative; flex: 1; }
.plate-input {
  width: 100%; padding: 12px 14px; font-size: 1rem; font-family: monospace;
  text-transform: uppercase; letter-spacing: 0.1em; border: 2px solid var(--gray-200, #e5e7eb);
  border-radius: 10px; background: #f8faff; font-weight: 700; color: #1e3a5f;
  transition: border-color 0.2s;
}
.plate-input:focus { outline: none; border-color: var(--blue-500, #3b82f6); background: #fff; }
.btn-plate-search {
  display: flex; align-items: center; gap: 8px; padding: 12px 18px;
  background: var(--blue-500, #3b82f6); color: #fff; border: none; border-radius: 10px;
  font-size: 0.9rem; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background 0.2s;
}
.btn-plate-search:hover { background: var(--blue-600, #2563eb); }
.btn-plate-search:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-plate-loader { display: none; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== VEHICLE CONFIRM CARD ===== */
.vehicle-confirm-card {
  display: none; margin-top: 14px; background: #f0f7ff; border: 1.5px solid #bfdbfe;
  border-radius: 12px; padding: 16px 18px; transition: background 0.3s, border-color 0.3s;
}
.vcc-header {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: #2563eb; margin-bottom: 12px;
}
.vcc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-bottom: 14px; }
.vcc-field { background: #fff; border-radius: 8px; padding: 8px 10px; border: 1px solid #dbeafe; }
.vcc-label { font-size: 0.68rem; text-transform: uppercase; color: #64748b; letter-spacing: 0.04em; display: block; margin-bottom: 2px; }
.vcc-value { font-size: 0.9rem; font-weight: 600; color: #1e3a5f; }
.vcc-actions { display: flex; gap: 10px; }
.vcc-btn-confirm {
  padding: 8px 16px; background: #10b981; color: #fff; border: none; border-radius: 8px;
  font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: background 0.2s;
}
.vcc-btn-confirm:hover { background: #059669; }
.vcc-btn-reject {
  padding: 8px 16px; background: transparent; color: #ef4444; border: 1.5px solid #ef4444;
  border-radius: 8px; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: background 0.2s;
}
.vcc-btn-reject:hover { background: #fef2f2; }

/* ===== PLATE API ERROR ===== */
.plate-api-error {
  display: none; margin-top: 10px; background: #fef2f2; border: 1px solid #fca5a5;
  border-radius: 8px; padding: 10px 14px; font-size: 0.85rem; color: #b91c1c; font-weight: 500;
}

/* ============================================================
   MOBILE — PAGE RÉSERVATION
   ============================================================ */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; }

  /* Hero réservation */
  .reservation-hero { padding: 80px 14px 30px !important; }
  .reservation-hero h1 { font-size: 1.7rem !important; line-height: 1.2; }
  .reservation-hero p { font-size: .9rem !important; }
  .res-hero-orb { display: none; }

  /* Body */
  .reservation-body { padding: 24px 12px !important; }
  .reservation-container,
  .reservation-container--single { max-width: 100% !important; padding: 0 !important; }
  .reservation-panel { padding: 20px 16px !important; border-radius: 14px; }
  .reservation-panel h2 { font-size: 1.25rem !important; }

  /* Form grids : 1 colonne */
  .res-form-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
  .res-form-group input, .res-form-group select, .res-form-group textarea {
    font-size: 16px !important; /* anti zoom iOS */
    padding: 12px 14px !important;
  }
  .res-section-label { font-size: .8rem; margin-top: 16px; }

  /* Options nettoyage : 1 colonne */
  .options-grid { grid-template-columns: 1fr !important; gap: 10px !important; }
  .option-card { padding: 14px !important; }

  /* Mode de paiement */
  .payment-choice { grid-template-columns: 1fr !important; gap: 10px !important; }
  .payment-option { padding: 14px !important; }

  /* Récap prix */
  .dates-summary { padding: 14px !important; }
  .dates-summary-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .dsummary-total { grid-column: 1 / -1; }
  .dsummary-value { font-size: 1rem !important; }

  /* Bouton submit large */
  .btn-reserve-main { width: 100% !important; padding: 16px !important; font-size: .95rem !important; }

  /* Confirmation page */
  .confirmation-box { padding: 20px 16px !important; border-radius: 14px; }
  .confirmation-box h2 { font-size: 1.5rem !important; }
  .confirmation-details { padding: 14px !important; }
  .confirmation-detail-line { font-size: .85rem; }
  .conf-actions { flex-direction: column; gap: 10px; }
  .btn-print, .btn-home { width: 100%; justify-content: center; }

  /* CGV */
  .res-cgv-check { font-size: .82rem; }

  /* Footer mini */
  .footer--mini { padding: 20px 14px !important; font-size: .78rem; }
  .footer--mini .container { text-align: center; }
}


/* ===== FIX MEDIUM/typography: Flight reminder box (rappel 2h avant le vol) =====
   Sortie des inline styles, contraste WCAG AA respecte sur le gradient orange/rouge */
.flight-reminder-box {
  background: linear-gradient(135deg, rgba(249,115,22,.15), rgba(239,68,68,.10));
  border: 1px solid rgba(249,115,22,.4);
  border-radius: 14px;
  padding: 18px 22px;
  margin: 18px 0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.flight-reminder-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #dc2626);
  display: flex;
  align-items: center;
  justify-content: center;
}
.flight-reminder-icon svg { width: 24px; height: 24px; }
.flight-reminder-text { min-width: 0; }
.flight-reminder-title {
  display: block;
  color: #fed7aa; /* tone clair orange : meilleur contraste sur gradient fonce */
  font-size: 1.05rem;
  margin-bottom: 6px;
  font-weight: 700;
}
.flight-reminder-desc {
  display: block;
  font-size: .95rem;
  font-weight: 500;
  color: rgba(255,255,255,.92); /* contraste WCAG AA >= 4.5:1 sur le gradient */
  line-height: 1.55;
}
.flight-reminder-desc strong { color: #fff; }

/* ===== FIX MEDIUM/click: Cibles tactiles checkbox/radio >= 44px =====
   Conformite WCAG/Apple/Google : touch target minimal 44x44 */
.res-form-group input[type='checkbox'],
.res-cgv-check input[type='checkbox'],
input[name='payment'] {
  min-width: 22px;
  min-height: 22px;
  transform: scale(1.15);
  cursor: pointer;
}
.res-form-group label[for='r-return-open'],
.res-cgv-check {
  min-height: 44px;
  padding: 10px 0;
  align-items: center;
}
.res-cgv-check {
  display: flex;
  gap: 10px;
}

/* ===== FIX LOW/ux: Etat 'loading' du bouton submit =====
   Empeche les double-clics pendant l'insert Supabase + Stripe */
.btn-reserve-main.btn-loading {
  pointer-events: none;
  opacity: 0.75;
  cursor: wait;
}
.btn-reserve-main .spinner {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: fp-spin .8s linear infinite;
}
@keyframes fp-spin {
  to { transform: rotate(360deg); }
}
