/* =========================================================
   COTA FÁCIL - FLUXO MELHORADO (estilos)
   Carregado depois do app.css e do ux.css.
   ========================================================= */

/* ---------- cabeçalho dos passos ---------- */
.passo-topo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.passo-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: contain;
}

.passo-info { display: flex; flex-direction: column; gap: 2px; }

.passo-num {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: #6b7280;
}

.passo-nome {
    font-size: 17px;
    font-weight: 800;
    color: var(--verde-escuro);
}

.passo-barra {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
    margin: 0 0 22px;
}

.passo-barra > span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--verde), #3fae4f);
    border-radius: 999px;
    transition: width .4s ease;
}

.aviso-padrao {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 20px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f1fbe8;
    color: var(--verde-escuro);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.45;
}

.aviso-padrao i, .aviso-padrao svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--verde); }

.resumo-chip {
    display: inline-block;
    max-width: 100%;
    margin: -8px 0 18px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #f3f5f7;
    color: #374151;
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- veículo pela placa ---------- */
.link-manual {
    display: block;
    margin: 12px 0 0;
    padding: 6px 0;
    border: none;
    background: none;
    color: var(--verde);
    font: 700 13.5px 'Sora', sans-serif;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.veiculo-card {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
    padding: 14px;
    border: 2px solid var(--verde);
    border-radius: 16px;
    background: #f7fdf3;
    animation: entrada .3s ease;
}

.veiculo-card.falha { border-color: #f0a89f; background: var(--erro-fundo); }
.veiculo-card.carregando { border-color: #d5dae1; background: #fafafa; }

.veiculo-icone {
    width: 46px;
    height: 46px;
    flex: none;
    border-radius: 12px;
    background: var(--verde);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.veiculo-icone i, .veiculo-icone svg { width: 24px; height: 24px; }
.veiculo-card.falha .veiculo-icone { background: var(--erro); }
.veiculo-card.carregando .veiculo-icone { background: #9ca3af; }

.veiculo-dados { flex: 1; min-width: 0; }

.veiculo-status {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: var(--verde);
}

.veiculo-card.falha .veiculo-status { color: var(--erro); }
.veiculo-card.carregando .veiculo-status { color: #6b7280; }

.veiculo-nome {
    margin-top: 2px;
    font-size: 15px;
    font-weight: 800;
    color: #111827;
    line-height: 1.3;
    word-break: break-word;
}

.veiculo-anos { margin-top: 2px; font-size: 13px; font-weight: 600; color: #4b5563; }

.veiculo-alterar {
    flex: none;
    padding: 8px 12px;
    border: 1px solid var(--verde);
    border-radius: 10px;
    background: #fff;
    color: var(--verde);
    font: 800 13px 'Sora', sans-serif;
    cursor: pointer;
}

.veiculo-manual { animation: entrada .3s ease; }

@keyframes entrada {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

/* ---------- perguntas em botões ---------- */
.select-escondido { display: none !important; }

.escolhas { display: flex; flex-wrap: wrap; gap: 10px; }
.escolhas-lista { flex-direction: column; flex-wrap: nowrap; }

.escolha {
    flex: 1 1 auto;
    min-height: 50px;
    padding: 12px 16px;
    border: 1.5px solid #d5dae1;
    border-radius: 14px;
    background: #fff;
    color: #1f2937;
    font: 600 14.5px/1.35 'Sora', sans-serif;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease, transform .1s ease;
}

.escolha:hover { border-color: var(--verde); }
.escolha:active { transform: scale(.99); }

.escolha.ativo {
    border-color: var(--verde);
    background: #f1fbe8;
    color: var(--verde-escuro);
    font-weight: 800;
    box-shadow: 0 0 0 3px rgba(0, 122, 47, .10);
}

.escolhas:not(.escolhas-lista) .escolha { text-align: center; }

.form-group .form-label { font-size: 14px; line-height: 1.4; }

/* ---------- barra de ações fixa ---------- */
.barra-acoes {
    position: sticky;
    bottom: 12px;
    z-index: 20;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 -4px 28px rgba(6, 64, 43, .12);
    backdrop-filter: blur(8px);
}

.barra-acoes-resumo { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }

.barra-botoes { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; }

.resumo-plano {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 0 4px;
}

.rp-nome { font-size: 13.5px; font-weight: 700; color: #4b5563; }
.rp-valor { font-size: 16px; font-weight: 900; color: var(--verde); font-variant-numeric: tabular-nums; }

/* ---------- passo 4 ---------- */
.bloco { margin: 0 0 24px; }

.bloco-titulo {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 800;
    color: var(--verde);
}

.bloco-titulo.grande { margin: 4px 0 14px; font-size: 19px; }

/* título do passo 4 com a faixa "Cotar também com" à direita */
.titulo-linha { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; margin: 4px 0 14px; }
.titulo-linha .bloco-titulo.grande { margin: 0; }
.cotar-tambem { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: #6b7280; }
.cotar-tambem .ct-label { margin-right: 2px; }
.cotar-tambem .ct-pill { box-sizing: border-box; width: 96px; height: 30px; padding: 0 10px; flex: none; border-radius: 999px; display: flex; align-items: center; justify-content: center; cursor: default; }
.cotar-tambem .ct-riskin { background: #fff; border: 1.5px solid #1f5fd0; }
.cotar-tambem .ct-riskin img { max-width: 100%; height: auto; max-height: 12px; display: block; }
.cotar-tambem .ct-rodar { background: linear-gradient(150deg, #081b45, #123a85); }
.cotar-tambem .ct-rodar img { max-width: 100%; height: auto; max-height: 18px; display: block; }
.cotar-tambem em { font-style: normal; font-size: 9.5px; font-weight: 800; letter-spacing: .4px; color: #7a5a00; background: #fff3cd; padding: 3px 8px; border-radius: 999px; }
body.modo-link .cotar-tambem { display: none; }
.cotar-tambem, .cotar-tambem .ct-label, .cotar-tambem em { white-space: nowrap; }
@media (max-width: 560px) {
    .cotar-tambem { gap: 6px; font-size: 11.5px; }
    .cotar-tambem .ct-pill { width: 80px; height: 28px; padding: 0 8px; }
    .cotar-tambem em { padding: 3px 6px; }
}

.bloco-ajuda {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    color: #6b7280;
}

.rcf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rcf-grid .form-label { margin-bottom: 6px; font-size: 13px; }

/* cartões de plano */
.plano-info .cob {
    position: relative;
    margin: 7px 0;
    padding-left: 24px;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
    color: #374151;
}

.plano-info .cob::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: var(--verde) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.plano-header strong { font-size: 16px; }
.plano-valor small { font-size: 12px; font-weight: 600; }

.plano-valor { display: flex; flex-direction: column; align-items: flex-end; }

.plano-valor .plano-parcela {
    margin: 2px 0 0;
    font-size: clamp(19px, 5.6vw, 23px);
    font-weight: 900;
    line-height: 1.15;
    color: var(--verde);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.plano-valor .plano-avista {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
    white-space: nowrap;
}

.plano-valor .plano-avista.tem-valor::after { content: " à vista"; }

body.calculando .plano-valor .plano-avista::after { content: none; }

.plano-card.selected .plano-radio.active { border-color: var(--verde); }

/* ---------- tela final ---------- */
#screen5 .content-wrapper { max-width: 460px !important; }

.final-titulo { margin: 0 0 8px; font-size: 26px; font-weight: 900; color: var(--verde-escuro); }
.final-sub { margin: 0 0 24px; font-size: 15px; line-height: 1.5; color: #4b5563; max-width: 360px; }

.final-plano {
    width: 100%;
    margin-bottom: 16px;
    padding: 22px 18px;
    border-radius: 18px;
    background: linear-gradient(160deg, #eef8e3, #e3f4d2);
}

.fp-label { margin-bottom: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: #4b5563; }
.fp-nome { font-size: 20px; font-weight: 900; color: var(--verde-escuro); line-height: 1.3; }
.fp-parcela { margin-top: 6px; font-size: 15px; font-weight: 700; color: var(--verde); }

.final-card {
    width: 100%;
    margin-bottom: 20px;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
    text-align: left;
}

.fc-titulo { font-size: 16px; font-weight: 800; color: var(--verde-escuro); }
.fc-ajuda { margin: 4px 0 14px; font-size: 13px; color: #6b7280; }

.desconto-slider { display: flex; align-items: center; gap: 14px; }

.desconto-slider input[type="range"] {
    flex: 1;
    height: 36px;
    accent-color: var(--verde);
    cursor: pointer;
}

.ds-valor {
    min-width: 60px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #f1fbe8;
    color: var(--verde-escuro);
    font-size: 17px;
    font-weight: 900;
    text-align: center;
}

.ds-escala { display: flex; justify-content: space-between; margin: 2px 74px 0 0; font-size: 12px; font-weight: 600; color: #9ca3af; }
.ds-status { margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--verde); }
.desconto-ocultos { display: none !important; }

body.calculando .desconto-slider { opacity: .55; pointer-events: none; }

.final-acoes { display: grid; gap: 12px; width: 100%; }

/* "Finalize sua proposta": chamada para falar com um representante */
.final-proposta { position: relative; overflow: hidden; width: 100%; margin: 0 0 16px; padding: 20px 20px 18px; border-radius: 20px; text-align: left; color: #fff;
    background: linear-gradient(135deg, #06402B, #0a5a3c 60%, #0b7a3a); box-shadow: 0 14px 32px rgba(6, 64, 43, .22); }
.final-proposta::before { content: ""; position: absolute; right: -50px; top: -70px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(170, 244, 90, .30), transparent 70%); }
.final-proposta > * { position: relative; }
.fpr-topo { display: flex; align-items: flex-start; gap: 14px; }
.fpr-ico { width: 44px; height: 44px; border-radius: 14px; flex: none; display: flex; align-items: center; justify-content: center; background: rgba(170, 244, 90, .18); color: #AAF45A; }
.fpr-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.final-proposta h3 { margin: 0; font-size: 18px; font-weight: 900; letter-spacing: -.2px; }
.final-proposta p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, .85); }
.fpr-numero { display: block; margin: 14px 0 12px; font-size: 24px; font-weight: 900; letter-spacing: -.3px; color: #AAF45A; text-decoration: none; }
.fpr-botao { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; border-radius: 14px; background: #AAF45A; color: #06402B; font-size: 15px; font-weight: 900; text-decoration: none; box-shadow: 0 10px 24px rgba(170, 244, 90, .28); transition: background .15s ease; }
.fpr-botao:hover { background: #bdfb7e; }
.fpr-botao svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.final-acoes button { width: 100%; max-width: none; min-height: 54px; }

.btn-whats {
    border: none;
    border-radius: var(--raio);
    background: #25d366;
    color: #06361a;
    font: 800 16px 'Sora', sans-serif;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(37, 211, 102, .30);
}

.btn-whats:hover { background: #20bd5a; }

.btn-texto {
    border: none;
    background: none;
    color: var(--verde);
    font: 800 15px 'Sora', sans-serif;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- textos um pouco maiores ---------- */
.mini-card > label { font-size: 12.5px !important; }
.form-label { font-size: 14px; }
.plano-header span { font-size: 10px; padding: 4px 9px; }

/* ---------- telas largas ---------- */
@media (min-width: 768px) {
    #screen1 .content-wrapper,
    #screen2 .content-wrapper,
    #screen3 .content-wrapper { max-width: 600px !important; padding: 32px 24px 120px !important; }
}

@media (min-width: 1024px) {
    #screen4 .content-wrapper { max-width: 960px !important; padding: 36px 32px 140px !important; }

    #planosCards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    #planosCards .plano-card { margin-bottom: 0; }

    #screen4 .barra-acoes { max-width: 560px; margin-left: auto; margin-right: auto; }
}

/* ---------- tela de carregamento ---------- */
.carregando-app {
    position: fixed;
    inset: 0;
    z-index: 1500000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    background: #fff;
    transition: opacity .35s ease, visibility .35s ease;
}

.carregando-app.saindo { opacity: 0; visibility: hidden; }

.carregando-icones {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 28px;
    background: linear-gradient(145deg, #06402B, #007A2F);
    box-shadow: 0 16px 40px rgba(6, 64, 43, .28);
    color: #AAF45A;
}

.carregando-icones .ci {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(26px) scale(.8);
    animation: ciciclo 3.2s ease-in-out infinite;
}

.carregando-icones .ci svg { width: 52px; height: 52px; }

.carregando-icones .ci2 { animation-delay: .8s; }
.carregando-icones .ci3 { animation-delay: 1.6s; }
.carregando-icones .ci4 { animation-delay: 2.4s; }

@keyframes ciciclo {
    0%   { opacity: 0; transform: translateX(26px) scale(.8); }
    6%   { opacity: 1; transform: translateX(0) scale(1); }
    22%  { opacity: 1; transform: translateX(0) scale(1); }
    28%  { opacity: 0; transform: translateX(-26px) scale(.8); }
    100% { opacity: 0; transform: translateX(-26px) scale(.8); }
}

.carregando-texto {
    font: 700 16px 'Sora', sans-serif;
    color: #06402B;
}

.carregando-texto .pontos i {
    font-style: normal;
    animation: ponto 1.2s infinite;
    opacity: .2;
}

.carregando-texto .pontos i:nth-child(2) { animation-delay: .2s; }
.carregando-texto .pontos i:nth-child(3) { animation-delay: .4s; }

@keyframes ponto { 0%, 100% { opacity: .2; } 40% { opacity: 1; } }

.carregando-barra {
    width: 160px;
    height: 5px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

.carregando-barra span {
    display: block;
    width: 40%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #007A2F, #AAF45A);
    animation: barra 1.3s ease-in-out infinite;
}

@keyframes barra {
    0% { transform: translateX(-110%); }
    100% { transform: translateX(260%); }
}

@media (prefers-reduced-motion: reduce) {
    .carregando-icones .ci { animation: none; opacity: 0; }
    .carregando-icones .ci1 { opacity: 1; transform: none; }
}

/* ---------- cobertura da FIPE ---------- */
.cobertura-fipe {
    align-items: center;
    gap: 16px;
    margin: 0 0 22px;
    padding: 14px 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, #06402B, #0a5a3a);
    color: #fff;
}

.cf-percentual {
    min-width: 78px;
    font-size: 38px;
    font-weight: 900;
    line-height: 1;
    color: #AAF45A;
    text-align: center;
}

.cf-percentual small { font-size: 20px; margin-left: 1px; }

.cf-texto { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cf-texto strong { font-size: 13px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: #cfeedd; }
.cf-valor { font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums; }
.cf-nota { font-size: 12.5px; line-height: 1.4; color: #cfeedd; }

.fp-fipe { margin-top: 6px; font-size: 13.5px; font-weight: 700; color: var(--verde-escuro); }
.fp-fipe:empty { display: none; }

/* ---------- campos de RCF: seta de lista (o app.css zerava o fundo com !important) ---------- */
select.form-select.rcf-select {
    appearance: none !important;
    -webkit-appearance: none !important;
    background-color: #ffffff !important;
    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='%23374151' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 14px !important;
    padding-right: 30px !important;
    cursor: pointer;
}

select.form-select.rcf-select:disabled {
    background-color: #f3f5f7 !important;
    color: #6b7280;
    cursor: not-allowed;
}
