/* ============================================
   HUB International — FPQ #5
   Wizard / Soumission Styles
   ============================================ */

/* ── Layout principal ── */
.wizard-body {
  background: var(--hub-navy-3);
  min-height: 100vh;
}

/* ── Header wizard ── */
.wizard-header {
  background: linear-gradient(135deg, var(--hub-navy-3) 0%, #1e2d3a 60%, var(--hub-navy-3) 100%);
  padding: 28px 40px 0;
  position: relative;
  overflow: hidden;
}
.wizard-header::before {
  content: '';
  position: absolute; top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,160,225,.15) 0%, transparent 70%);
  pointer-events: none;
}
.wizard-header-inner { max-width: 880px; margin: 0 auto; }
.wiz-logo { margin-bottom: 32px; }
.wiz-logo img { height: 38px; width: auto; }
.wiz-title { font-family: var(--font-display); font-size: clamp(22px,4vw,34px); color: var(--white); line-height: 1.2; margin-bottom: 8px; font-weight: 900; }
.wiz-title em { font-style: italic; color: var(--hub-blue); }
.wiz-sub { color: rgba(255,255,255,.55); font-size: 14px; margin-bottom: 32px; font-weight: 300; }
.wiz-badges { display: flex; gap: 20px; margin-bottom: 0; flex-wrap: wrap; }
.wiz-badge { display: flex; align-items: center; gap: 7px; color: rgba(255,255,255,.7); font-size: 12px; font-weight: 500; }
.wiz-badge-icon { width: 26px; height: 26px; background: rgba(0,160,225,.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--hub-blue); }

/* ── Step tabs ── */
.steps-bar { background: rgba(255,255,255,.05); border-top: 1px solid rgba(255,255,255,.07); margin-top: 28px; }
.steps-inner { max-width: 880px; margin: 0 auto; display: flex; align-items: stretch; }
.step-tab { flex: 1; padding: 16px 20px; display: flex; align-items: center; gap: 10px; position: relative; transition: all .3s; opacity: .38; }
.step-tab.active { opacity: 1; }
.step-tab.done { opacity: .72; }
.step-tab.active::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--hub-gradient-h); border-radius: 3px 3px 0 0; }
.step-tab.done::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: #2E7D32; border-radius: 3px 3px 0 0; }
.step-num { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; border: 2px solid rgba(255,255,255,.2); color: var(--white); transition: all .3s; }
.step-tab.active .step-num { background: var(--hub-gradient); border-color: transparent; box-shadow: var(--shadow-blue); }
.step-tab.done .step-num { background: #2E7D32; border-color: transparent; }
.step-label { font-size: 12px; font-weight: 600; color: var(--white); line-height: 1.3; }
.step-sublabel { font-size: 10px; color: rgba(255,255,255,.45); font-weight: 300; }

/* ── Carte principale ── */
.wizard-main { max-width: 880px; margin: 0 auto; padding: 32px 20px 60px; }
.wizard-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.wizard-card-body { padding: 40px 48px; }

/* ── Section headings dans le wizard ── */
.wiz-section-title { font-family: var(--font-display); font-size: 22px; color: var(--hub-navy); margin-bottom: 6px; font-weight: 700; }
.wiz-section-sub { font-size: 13px; color: var(--silver); margin-bottom: 32px; }

/* ── Formulaire ── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-row.single { grid-template-columns: 1fr; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 11px; font-weight: 700; color: var(--hub-navy); letter-spacing: .6px; text-transform: uppercase; }
.form-group input,
.form-group select {
  padding: 12px 14px;
  border: 1.5px solid var(--light-2);
  border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 14px; color: var(--text);
  background: #FAFCFE; transition: border-color .2s, box-shadow .2s; outline: none;
  appearance: none; -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus {
  border-color: var(--hub-blue);
  box-shadow: 0 0 0 3px rgba(0,160,225,.1);
  background: var(--white);
}
.form-group input.has-error { border-color: var(--hub-red-alert); }
.error-msg { color: var(--hub-red-alert); font-size: 11px; margin-top: 2px; }
.field-hint { font-size: 11px; color: var(--silver); margin-top: 3px; }
.currency-wrap { position: relative; }
.currency-wrap::before { content: '$'; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-weight: 600; color: var(--silver); pointer-events: none; }
.currency-wrap input { padding-left: 26px; }

/* ── Section NIV ── */
.vin-section {
  background: linear-gradient(135deg, #f0f6ff, #e8f3fb);
  border: 1.5px dashed #b8d4ec;
  border-radius: var(--radius); padding: 24px; margin-bottom: 28px; text-align: center;
}
.vin-section h3 { font-family: var(--font-display); font-size: 16px; color: var(--hub-navy); margin-bottom: 6px; font-weight: 700; }
.vin-section p { font-size: 12px; color: var(--silver); margin-bottom: 16px; }
.vin-input-row { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; }
.vin-input-row input {
  flex: 1; padding: 12px 14px; border: 1.5px solid #b8d4ec;
  border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 14px;
  text-transform: uppercase; letter-spacing: 1px; outline: none;
  background: var(--white);
}
.vin-input-row input:focus { border-color: var(--hub-blue); box-shadow: 0 0 0 3px rgba(0,160,225,.1); }
.btn-vin { background: var(--hub-gradient); color: var(--white); border: none; border-radius: var(--radius-sm); padding: 12px 22px; font-family: var(--font-body); font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: all .2s; }
.btn-vin:hover { filter: brightness(1.1); box-shadow: var(--shadow-blue); }
.vin-loading { display: none; font-size: 12px; color: var(--silver); margin-top: 10px; }
.vin-loading.show { display: block; }

.divider-or { display: flex; align-items: center; gap: 16px; margin: 24px 0; color: var(--silver); font-size: 12px; font-weight: 700; letter-spacing: 1px; }
.divider-or::before, .divider-or::after { content: ''; flex: 1; height: 1px; background: var(--light-2); }

/* ── Carte véhicule trouvé ── */
.vehicle-found-card {
  background: linear-gradient(135deg, var(--hub-navy), var(--hub-navy-2));
  border-radius: var(--radius); padding: 20px 24px; color: var(--white);
  display: none; align-items: center; gap: 20px; margin-bottom: 18px;
  border-left: 4px solid var(--hub-blue);
}
.vehicle-found-card.show { display: flex; }
.vehicle-icon { font-size: 28px; color: var(--hub-blue); }
.vehicle-info h4 { font-family: var(--font-display); font-size: 18px; margin-bottom: 4px; }
.vehicle-info p { font-size: 12px; color: rgba(255,255,255,.55); }
.vehicle-badge { margin-left: auto; background: rgba(46,125,50,.3); color: #81c784; border: 1px solid rgba(46,125,50,.5); border-radius: 20px; padding: 4px 12px; font-size: 11px; font-weight: 700; white-space: nowrap; }

/* ── Étape 3 — Prime ── */
.prime-header { text-align: center; margin-bottom: 28px; }
.prime-vehicle { font-size: 13px; color: var(--silver); margin-bottom: 4px; }
.prime-vehicle strong { color: var(--hub-navy); }

.years-selector { display: flex; gap: 10px; justify-content: center; margin-bottom: 28px; flex-wrap: wrap; }
.year-pill {
  padding: 10px 22px; border: 2px solid var(--light-2);
  border-radius: 30px; cursor: pointer; font-size: 14px; font-weight: 700;
  color: var(--hub-navy); transition: all .2s; background: var(--white);
}
.year-pill:hover { border-color: var(--hub-blue); color: var(--hub-blue); }
.year-pill.selected {
  background: var(--hub-gradient); border-color: transparent;
  color: var(--white); box-shadow: var(--shadow-blue);
}

.prime-display {
  background: linear-gradient(135deg, var(--hub-navy-3) 0%, #1e2d3a 100%);
  border-radius: var(--radius-lg); padding: 36px; text-align: center;
  color: var(--white); margin-bottom: 22px; position: relative; overflow: hidden;
}
.prime-display::before {
  content: '';
  position: absolute; top: -40px; right: -40px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(0,160,225,.18) 0%, transparent 70%);
}
.prime-label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 8px; }
.prime-amount { font-family: var(--font-display); font-size: clamp(40px,6vw,60px); color: var(--white); line-height: 1; margin-bottom: 6px; }
.prime-amount sup { font-size: 24px; vertical-align: super; }
.prime-period { font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 22px; }
.prime-breakdown { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; }
.pb-item { text-align: center; }
.pb-val { font-size: 17px; font-weight: 700; color: var(--hub-blue); }
.pb-lbl { font-size: 10px; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }

.coverage-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 28px; }
.cov-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--hub-navy); background: var(--light); padding: 10px 14px; border-radius: var(--radius-sm); }
.cov-icon { color: var(--hub-green); font-size: 15px; width: 20px; text-align: center; }

/* ── Paiement ── */
.pay-divider { border: none; border-top: 1px solid var(--light-2); margin: 28px 0 24px; }
.pay-title { font-family: var(--font-display); font-size: 18px; color: var(--hub-navy); margin-bottom: 6px; }
.pay-sub { font-size: 12px; color: var(--silver); margin-bottom: 20px; }

.cc-preview {
  background: linear-gradient(135deg, var(--hub-navy-2), var(--hub-navy-3));
  border-radius: 14px; padding: 26px 28px; color: var(--white);
  margin-bottom: 22px; position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cc-preview::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(255,255,255,.015) 40px, rgba(255,255,255,.015) 80px);
}
.cc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.cc-chip { width: 38px; height: 28px; background: linear-gradient(135deg, #c8a84b, #f0d080); border-radius: 5px; }
.cc-brand-name { font-size: 16px; font-weight: 700; color: rgba(255,255,255,.6); letter-spacing: 1px; }
.cc-number-display { font-family: 'Courier New', monospace; font-size: 18px; letter-spacing: 4px; margin-bottom: 18px; opacity: .92; }
.cc-bottom { display: flex; justify-content: space-between; }
.cc-field-lbl { font-size: 9px; text-transform: uppercase; letter-spacing: 1px; opacity: .45; display: block; margin-bottom: 4px; }
.cc-field-val { font-size: 14px; font-weight: 600; letter-spacing: 1px; }

.order-summary { background: var(--light); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 24px; }
.order-summary h4 { font-size: 12px; font-weight: 700; color: var(--hub-navy); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.order-line { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.order-line.total { border-top: 1px solid var(--light-2); padding-top: 12px; margin-top: 8px; font-weight: 700; color: var(--hub-navy); font-size: 16px; }

/* ── Boutons de navigation ── */
.btn-row { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; gap: 14px; }
.btn-back { padding: 13px 28px; border: 1.5px solid var(--light-2); border-radius: var(--radius-sm); background: var(--white); color: var(--hub-navy); font-family: var(--font-body); font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s; }
.btn-back:hover { background: var(--light); border-color: var(--hub-navy); }
.btn-next { flex: 1; max-width: 280px; padding: 14px 28px; background: var(--hub-gradient); color: var(--white); border: none; border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 14px; font-weight: 700; cursor: pointer; transition: all .2s; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: var(--shadow-blue); }
.btn-next:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 10px 36px rgba(0,160,225,.4); }
.btn-next:active { transform: translateY(0); }
.btn-next.green { background: linear-gradient(135deg, #2E7D32, #1b5e20); box-shadow: 0 6px 24px rgba(46,125,50,.3); }
.btn-next.green:hover { box-shadow: 0 10px 36px rgba(46,125,50,.4); }

/* ── Spinner ── */
.loading-spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.3); border-top-color: var(--white); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Step panels ── */
.step-panel { display: none; }
.step-panel.active { display: block; animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ── Écran succès ── */
.success-screen { text-align: center; padding: 60px 40px; display: none; }
.success-screen.show { display: block; }
.success-icon { width: 80px; height: 80px; background: linear-gradient(135deg, #2E7D32, #43a047); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 36px; margin: 0 auto 24px; box-shadow: 0 8px 30px rgba(46,125,50,.3); }
.success-title { font-family: var(--font-display); font-size: 28px; color: var(--hub-navy); margin-bottom: 12px; }
.success-sub { font-size: 14px; color: var(--silver); line-height: 1.7; }
.policy-num { background: var(--light); border-radius: var(--radius); padding: 16px 24px; margin: 24px auto; max-width: 320px; font-family: 'Courier New', monospace; font-size: 20px; font-weight: 700; color: var(--hub-navy); letter-spacing: 3px; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .wizard-card-body { padding: 24px 20px; }
  .wizard-header { padding: 20px 20px 0; }
  .wizard-main { padding-left: 12px; padding-right: 12px; }
  .form-row { grid-template-columns: 1fr; }
  .coverage-list { grid-template-columns: 1fr; }
  .vin-input-row { flex-direction: column; }
  .prime-breakdown { gap: 16px; }
  .steps-inner { overflow-x: auto; }
  .step-tab { min-width: 100px; }
}

/* ── Logo wizard header agrandi ── */
.wiz-logo img { height: 52px; width: auto; }

/* ── Durée titre ── */
.duration-title {
  text-align: center;
  font-size: 11px; color: var(--silver);
  margin-bottom: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.duration-title i { color: var(--hub-blue); }

/* ── Succès sub multiligne ── */
.success-sub { font-size: 14px; color: var(--silver); line-height: 1.75; white-space: pre-line; }
