/* Escolha do veículo (index.html #comprar-fluxo): etapas, tipo em botões, ✓ nos campos e "Como funciona". */

/* etapas com ícones de linha */
.rc-step i svg{ width:20px; height:20px; fill:none; stroke:var(--muted); stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.rc-step.done i svg{ stroke:#fff; }
.rc-step.done i{ box-shadow:0 4px 10px rgba(220,38,38,.25); }

/* tipo de veículo */
.rc-tipos{ display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.rc-tipo{
  display:flex; flex-direction:column; align-items:center; gap:4px;
  padding:10px 4px 9px; background:#fff; border:1.5px solid var(--line); border-radius:10px;
  font:inherit; font-size:13px; font-weight:700; color:var(--ink); cursor:pointer; transition:.15s;
}
.rc-tipo svg{ width:40px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; color:var(--muted); }
.rc-tipo.on{ border-color:var(--red); background:#FEF2F2; color:var(--red); }
.rc-tipo.on svg{ color:var(--red); }
.rc-tipo:focus-visible{ outline:2px solid var(--red); outline-offset:2px; }

/* modelo + ano na mesma linha */
.rc-row{ display:grid; grid-template-columns:minmax(0,1fr) 112px; gap:10px; align-items:start; }
.rc-row .field-hint{ display:block; font-size:11px; line-height:1.3; margin-top:4px; }

/* ✓ verde quando o campo está certo */
.rc-wizard .field.ok input{
  padding-right:34px !important;
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='9' fill='%2316A34A'/%3E%3Cpath d='M6 10.3l2.6 2.6L14 7.6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center / 18px;
}
.rc-wizard .field.ok .vs-wrap::after{ display:none; }

/* observação recolhida */
.rc-obs-btn{
  display:inline-flex; align-items:baseline; gap:4px; margin:0 0 2px; padding:4px 0;
  background:none; border:0; font:inherit; font-size:13.5px; font-weight:700; color:var(--red); cursor:pointer;
}
.rc-obs-btn[hidden]{ display:none; }
.rc-row #fitAno{ padding-left:12px; }
.rc-obs-btn small{ font-weight:500; color:var(--muted); font-size:12px; }

/* faixa de confiança com ícones */
.rc-trust{ gap:6px 14px !important; justify-content:center; }
.rc-trust span{ display:inline-flex; align-items:center; gap:5px; font-size:12px; white-space:nowrap; }
.rc-trust svg{ width:15px; height:15px; fill:none; stroke:var(--red); stroke-width:2; stroke-linecap:round; stroke-linejoin:round; flex:none; }

/* como funciona */
.rc-como{
  margin-top:18px; background:#fff; border:1px solid var(--line); border-radius:16px;
  padding:22px 16px 16px; box-shadow:var(--shadow);
}
.rc-como h3{ text-align:center; font-size:17px; margin:0 0 16px; }
.rc-como-passos{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.rc-como-passos li{ display:flex; flex-direction:column; align-items:center; text-align:center; gap:6px; }
.rc-como-passos i{
  position:relative; width:44px; height:44px; border-radius:50%; background:#FEF2F2;
  display:flex; align-items:center; justify-content:center;
}
.rc-como-passos i svg{ width:20px; height:20px; fill:none; stroke:var(--red); stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.rc-como-passos b{
  position:absolute; top:-4px; right:-6px; width:18px; height:18px; border-radius:50%;
  background:var(--ink); color:#fff; font-size:10.5px; font-style:normal; line-height:18px; text-align:center;
}
.rc-como-passos strong{ font-size:12.5px; line-height:1.25; color:var(--ink); }
.rc-como-passos span{ font-size:11px; line-height:1.4; color:var(--muted); }
.rc-garantia{
  display:flex; gap:10px; align-items:flex-start; margin-top:18px; padding:14px;
  background:#F0FDF4; border:1px solid #BBF7D0; border-radius:12px;
}
.rc-garantia svg{ width:22px; height:22px; flex:none; fill:none; stroke:#16A34A; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; margin-top:1px; }
.rc-garantia p{ margin:0; font-size:12.5px; line-height:1.5; color:#3A3A3A; }
.rc-garantia strong{ display:block; font-size:13.5px; color:#14532D; margin-bottom:2px; }
.rc-garantia a{ color:#15803D; font-weight:700; }

@media (max-width:360px){
  .rc-como-passos{ grid-template-columns:repeat(2,minmax(0,1fr)); row-gap:16px; }
}

/* lista de anos (index.html): anos mais novos primeiro, ocupa a largura do campo */
#fitAnoList{ max-height:220px; min-width:100%; }
#fitAnoList li{ text-align:center; font-variant-numeric:tabular-nums; }
