/* =====================================================================
   JHC Transporte — Solicitação de orçamento (v3, layout de aplicativo)
   - A tela ocupa 100% da altura; só a área do conteúdo rola, se precisar.
   - Destaque para o "orçamento falado" (gravação de áudio).
   Para ajustar as cores, altere só as variáveis abaixo.
   ===================================================================== */
:root {
    /* Paleta JHC Transportes (azul do logo #1D3D66 + grafite #211F1F).
       Os nomes "laranja" ficaram por compatibilidade: hoje são o AZUL de destaque. */
    --marinho-950: #0A1A31;
    --marinho-900: #12284A;
    --marinho-700: #1D3D66;
    --marinho-500: #3D6FB0;
    --marinho-100: #E6EDF6;
    --laranja: #2563B8;
    --laranja-escuro: #1C4F96;
    --laranja-claro: #EAF1FB;
    --laranja-borda: #B7CDEE;
    --vermelho: #D7263D;

    --fundo: #F3F6FA;
    --superficie: #FFFFFF;
    --texto: #16233A;
    --texto-2: #4E5D73;
    --texto-3: #8592A6;
    --borda: #DEE5EF;
    --borda-forte: #C5D1E0;
    --erro: #D7263D;
    --erro-claro: #FDECEE;
    --ok: #12945A;

    --raio: 14px;
    --raio-g: 18px;
    --sombra-1: 0 1px 2px rgba(18, 40, 74, .06), 0 1px 1px rgba(18, 40, 74, .04);
    --sombra-2: 0 10px 30px -12px rgba(18, 40, 74, .25);
    --fonte: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --transicao: 180ms cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; overflow: hidden;
    font-family: var(--fonte); font-size: 16px; line-height: 1.45;
    color: var(--texto); background: var(--fundo);
    -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.ic { flex-shrink: 0; display: block; }
.oculto { position: absolute !important; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip-path: inset(50%); pointer-events: none; }

/* ---------- Estrutura de app ---------- */
.app { height: 100vh; height: 100dvh; display: grid; grid-template-columns: 1fr; }
.principal { position: relative; display: flex; flex-direction: column; height: 100vh; height: 100dvh; min-width: 0; min-height: 0; }
.formulario { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.conteudo {
    flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    padding: 18px 16px 20px;
}
.etapa { max-width: 760px; margin: 0 auto; animation: entrar 260ms cubic-bezier(.2, .7, .2, 1); }
@keyframes entrar { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Marca ---------- */
.marca { display: flex; align-items: center; gap: 10px; color: #fff; }
.marca-icone { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--laranja); color: #fff; box-shadow: 0 6px 18px -6px rgba(37, 99, 184, .7); }
.marca-texto { font-size: 16px; font-weight: 500; }
.marca-texto strong { font-weight: 800; }

/* ---------- Topo (celular) ---------- */
.topo-mobile {
    position: relative; flex-shrink: 0;
    display: flex; align-items: center; justify-content: space-between;
    padding: calc(10px + env(safe-area-inset-top)) 16px 12px;
    background: var(--marinho-900); color: #fff;
}
.topo-mobile .marca-icone { width: 30px; height: 30px; border-radius: 9px; }
.topo-mobile .marca-texto { font-size: 15px; }
.topo-passo { font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .75); background: rgba(255, 255, 255, .1); padding: 4px 10px; border-radius: 999px; }
.topo-barra { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .12); }
.topo-barra span { display: block; height: 100%; width: 0; background: var(--laranja); transition: width 320ms cubic-bezier(.2, .7, .2, 1); }

/* ---------- Lateral (computador) ---------- */
.lateral { display: none; }
@media (min-width: 1000px) {
    .app { grid-template-columns: minmax(340px, 400px) 1fr; }
    .topo-mobile { display: none; }
    .lateral {
        display: flex; flex-direction: column; gap: 28px;
        height: 100vh; height: 100dvh; overflow: auto;
        padding: 32px 36px 26px; color: #fff;
        background:
            radial-gradient(120% 60% at 0% 0%, rgba(37, 99, 184, .20), transparent 55%),
            radial-gradient(90% 60% at 100% 100%, rgba(58, 100, 149, .45), transparent 60%),
            linear-gradient(180deg, var(--marinho-900), var(--marinho-950));
    }
    .conteudo { padding: 32px 40px 20px; }
}
.selo {
    display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px;
    padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em;
    background: rgba(37, 99, 184, .16); color: #A9C8F2; border: 1px solid rgba(37, 99, 184, .35);
}
.lateral-chamada h1 { margin: 0 0 10px; font-size: 30px; line-height: 1.15; letter-spacing: -.025em; font-weight: 800; }
.lateral-chamada h1 em { font-style: normal; color: var(--laranja); }
.lateral-chamada p { margin: 0; color: rgba(255, 255, 255, .72); font-size: 15px; }
.passos { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.passo { display: flex; align-items: center; gap: 14px; padding: 9px 12px; border-radius: 12px; color: rgba(255, 255, 255, .55); cursor: pointer; transition: background var(--transicao), color var(--transicao); }
.passo-num { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-size: 14px; font-weight: 700; border: 1.5px solid rgba(255, 255, 255, .22); transition: all var(--transicao); }
.passo-num .ic { display: none; }
.passo-txt { display: flex; flex-direction: column; line-height: 1.3; }
.passo-txt strong { font-size: 15px; font-weight: 600; }
.passo-txt small { font-size: 13px; opacity: .75; }
.passo.atual { background: rgba(255, 255, 255, .07); color: #fff; }
.passo.atual .passo-num { background: var(--laranja); border-color: var(--laranja); color: #fff; box-shadow: 0 0 0 5px rgba(37, 99, 184, .18); }
.passo.feito { color: rgba(255, 255, 255, .85); }
.passo.feito .passo-num { background: rgba(255, 255, 255, .12); border-color: transparent; color: var(--laranja); }
.passo.feito .passo-num .n { display: none; }
.passo.feito .passo-num .ic { display: block; }
.lateral-rodape { margin-top: auto; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: rgba(255, 255, 255, .6); }

/* ---------- Títulos ---------- */
.etapa-titulo { margin: 0 0 14px; font-size: 22px; line-height: 1.2; letter-spacing: -.02em; font-weight: 800; outline: none; }
.etapa-sub { margin: -8px 0 14px; color: var(--texto-2); font-size: 14px; }
@media (min-width: 1000px) {
    .etapa-titulo { font-size: 28px; margin-bottom: 18px; }
    .etapa-sub { font-size: 15px; margin: -10px 0 18px; }
}

/* ---------- Campos ---------- */
.campo { margin-bottom: 12px; min-width: 0; }
.campo > label, .rotulo { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.opcional { font-weight: 500; color: var(--texto-3); font-size: 12px; }
.obrigatorio { color: var(--laranja); }
input:not([type=radio]):not([type=checkbox]), textarea {
    width: 100%; min-height: 48px; padding: 12px 14px;
    font-size: 16px; /* evita zoom automático no iPhone */
    background: #fff; border: 1.5px solid var(--borda); border-radius: 12px;
    outline: none; transition: border-color var(--transicao), box-shadow var(--transicao);
    -webkit-appearance: none; appearance: none;
}
textarea { resize: none; line-height: 1.45; }
input::placeholder, textarea::placeholder { color: #A3AEBF; }
input:focus, textarea:focus { border-color: var(--marinho-700); box-shadow: 0 0 0 4px rgba(30, 62, 98, .12); }
.maiusculas { text-transform: uppercase; }
.grade { display: grid; gap: 0 10px; grid-template-columns: 1fr; }
.grade-cidade { grid-template-columns: 1fr 72px; }
@media (min-width: 640px) { .grade-2 { grid-template-columns: 1fr 1fr; } }

.dica { display: block; font-size: 13px; color: var(--texto-3); margin-top: 4px; }
.dica:empty { display: none; }
.dica.alerta { color: var(--laranja-escuro); }
.msg-erro { display: none; font-size: 13px; font-weight: 600; color: var(--erro); margin-top: 5px; }
.campo.erro .msg-erro { display: block; }
.campo.erro input, .campo.erro textarea { border-color: var(--erro); background: #FFFBFB; }

/* ---------- Tipos de serviço (compactos) ---------- */
.campo-tipos { margin-bottom: 14px; }
.tipos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (min-width: 700px) { .tipos { grid-template-columns: repeat(3, 1fr); } }
.tipo { position: relative; cursor: pointer; display: block; -webkit-tap-highlight-color: transparent; }
.tipo input { position: absolute; opacity: 0; pointer-events: none; }
.tipo-cartao {
    display: flex; align-items: center; gap: 9px; height: 100%; min-height: 48px;
    padding: 7px 10px; border-radius: 13px; background: #fff;
    border: 1.5px solid var(--borda); transition: all var(--transicao);
}
.tipo-cartao strong { font-size: 13.5px; font-weight: 700; line-height: 1.2; }
.tipo-icone { width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0; display: grid; place-items: center; background: var(--marinho-100); color: var(--marinho-700); transition: all var(--transicao); }
.tipo:hover .tipo-cartao { border-color: var(--borda-forte); }
.tipo input:checked + .tipo-cartao { border-color: var(--laranja); background: var(--laranja-claro); }
.tipo input:checked + .tipo-cartao .tipo-icone { background: var(--laranja); color: #fff; }
.tipo input:focus-visible + .tipo-cartao { outline: 2px solid var(--marinho-500); outline-offset: 2px; }
.campo.erro .tipo-cartao { border-color: #F2B8C0; }

/* ---------- ORÇAMENTO FALADO (destaque) ---------- */
.voz { margin-bottom: 6px; }
.voz-botao {
    position: relative; width: 100%; display: flex; align-items: center; gap: 16px;
    padding: 16px 18px; border: 0; border-radius: 20px; cursor: pointer; text-align: left; color: #fff;
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(37, 99, 184, .28), transparent 50%),
        linear-gradient(135deg, var(--marinho-900), var(--marinho-700));
    box-shadow: 0 14px 30px -16px rgba(11, 25, 44, .9);
    transition: transform var(--transicao), background var(--transicao);
    -webkit-tap-highlight-color: transparent;
}
.voz-botao:active { transform: scale(.985); }
.voz-botao:disabled { opacity: .6; cursor: not-allowed; }
.voz-mic {
    position: relative; width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%;
    display: grid; place-items: center; background: var(--laranja); color: #fff;
    box-shadow: 0 8px 20px -6px rgba(37, 99, 184, .8);
}
.voz-mic .ic-parar { display: none; }
.voz-anel { position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(37, 99, 184, .55); animation: anel 2.2s ease-out infinite; }
@keyframes anel { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
.voz-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.voz-selo { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #A9C8F2; }
.voz-titulo { font-size: 18px; line-height: 1.25; margin-top: 2px; }
.voz-sub { font-size: 13px; color: rgba(255, 255, 255, .7); margin-top: 3px; }
.voz-tempo { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* gravando */
.voz.gravando .voz-botao { background: linear-gradient(135deg, #8E1024, #D7263D); }
.voz.gravando .voz-mic { background: #fff; color: var(--vermelho); box-shadow: none; }
.voz.gravando .voz-mic .ic-mic { display: none; }
.voz.gravando .voz-mic .ic-parar { display: block; }
.voz.gravando .voz-anel { border-color: rgba(255, 255, 255, .7); animation-duration: 1.1s; }
.voz.gravando .voz-selo { color: #FFD3D9; }
/* já tem áudio */
.voz.tem-audio .voz-anel { display: none; }
.voz.tem-audio .voz-botao { padding: 12px 16px; }
.voz.tem-audio .voz-mic { width: 48px; height: 48px; }
.voz.tem-audio .voz-titulo { font-size: 16px; }

.audios { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.audio-item { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; background: #fff; border: 1.5px solid #CDEBD9; border-radius: 14px; animation: entrar 220ms ease; }
.audio-ok { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; font-size: 12px; font-weight: 800; flex-shrink: 0; }
.audio-item audio { flex: 1 1 160px; min-width: 0; height: 36px; }
.audio-dur { font-size: 13px; font-weight: 700; color: var(--texto-2); font-variant-numeric: tabular-nums; }
.audio-remover { border: 0; background: none; color: var(--erro); font-weight: 600; font-size: 13px; cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.audio-remover:hover { background: var(--erro-claro); }
@media (max-width: 480px) { .audio-item audio { order: 3; flex-basis: 100%; } .audio-dur { margin-right: auto; } }

.ou { display: flex; align-items: center; gap: 10px; margin: 8px 0; color: var(--texto-3); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.ou::before, .ou::after { content: ""; flex: 1; height: 1px; background: var(--borda); }

.campo-descricao { margin-bottom: 10px; }
.campo-descricao textarea { min-height: 64px; max-height: 160px; }
.dica-um-dos-dois { display: block; margin-top: 5px; font-size: 12.5px; color: var(--texto-3); }
.dica-um-dos-dois.ok { color: var(--ok); font-weight: 600; }
.campo.erro .dica-um-dos-dois { display: none; }

/* fotos */
.fotos-linha { display: flex; align-items: center; gap: 10px; min-width: 0; }
.botao-fotos {
    position: relative; display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0;
    min-height: 44px; padding: 0 14px; border-radius: 999px; cursor: pointer;
    background: #fff; border: 1.5px solid var(--borda); color: var(--marinho-900); font-weight: 700; font-size: 14px;
    transition: border-color var(--transicao);
}
.botao-fotos:hover { border-color: var(--marinho-500); }
.botao-fotos small { font-weight: 500; color: var(--texto-3); font-size: 12px; }
.botao-fotos.carregando { opacity: .6; }
.contador-midia { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--laranja); color: #fff; border: 2px solid var(--fundo); display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.fotos { display: flex; gap: 6px; overflow-x: auto; min-width: 0; padding: 4px 0; }
.foto { position: relative; margin: 0; width: 48px; height: 48px; flex-shrink: 0; border-radius: 10px; overflow: hidden; background: var(--marinho-100); animation: entrar 220ms ease; }
.foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foto-remover { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(7, 17, 32, .75); color: #fff; font-size: 14px; line-height: 1; cursor: pointer; padding: 0; }
@media (max-width: 420px) { .botao-fotos small { display: none; } }

/* ---------- Chips de escolha ---------- */
.opcoes-chip { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-opcao { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.chip-opcao input { position: absolute; opacity: 0; pointer-events: none; }
.chip-opcao span {
    display: inline-flex; align-items: center; gap: 5px; padding: 8px 12px; border-radius: 999px;
    background: #fff; border: 1.5px solid var(--borda); font-size: 13.5px; font-weight: 600; color: var(--texto-2);
    transition: all var(--transicao); user-select: none;
}
.chip-opcao span .ic { display: none; }
.chip-opcao:hover span { border-color: var(--borda-forte); }
.chip-opcao input:checked + span { border-color: var(--laranja); background: var(--laranja-claro); color: var(--laranja-escuro); }
.chip-opcao input:checked + span .ic { display: block; }
.chip-opcao input:focus-visible + span { outline: 2px solid var(--marinho-500); outline-offset: 2px; }
.chip-solto span { min-height: 48px; padding: 0 16px; }

/* ---------- Endereços ---------- */
.enderecos { display: grid; gap: 10px; margin-bottom: 12px; }
@media (min-width: 1100px) { .enderecos { grid-template-columns: 1fr 1fr; } }
.endereco { background: #fff; border: 1px solid var(--borda); border-radius: var(--raio-g); padding: 12px 14px; box-shadow: var(--sombra-1); }
.endereco .campo { margin-bottom: 8px; }
.endereco-topo { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.endereco-topo strong { font-size: 15px; flex: 1; }
.marcador { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; }
.marcador-origem { background: var(--laranja-claro); color: var(--laranja); }
.marcador-destino { background: var(--marinho-100); color: var(--marinho-700); }
.linha-cep { display: flex; gap: 8px; }
.linha-cep input { flex: 1; min-width: 0; }
.botao-gps {
    display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; min-height: 48px; padding: 0 12px;
    border-radius: 12px; border: 1.5px solid var(--borda); background: #fff; color: var(--marinho-700);
    font-size: 13px; font-weight: 700; cursor: pointer;
}
.botao-gps:hover { border-color: var(--marinho-500); }
.botao-gps:disabled { opacity: .6; }
.cep-resultado { display: flex; gap: 8px; align-items: center; margin-top: 6px; padding: 8px 10px; border-radius: 10px; background: #EEF8F2; border: 1px solid #CDEBD9; font-size: 13px; }
.cep-resultado strong { font-size: 13.5px; }
.cep-resultado small { display: block; color: var(--texto-2); font-size: 12px; }
.cep-resultado > span:nth-child(2) { flex: 1; min-width: 0; }
.cep-ok { width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--ok); color: #fff; font-size: 11px; font-weight: 800; }
.link-acao { padding: 0; border: 0; background: none; cursor: pointer; color: var(--marinho-500); font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.manual { animation: entrar 220ms ease; }
.opcoes-acesso .chip-opcao span { padding: 6px 11px; font-size: 13px; }

.linha-data { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.campo-data { flex: 1 1 200px; margin: 0; }
.campo-data input { min-height: 48px; }

/* ---------- Passo 3 ---------- */
.resumo-curto { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 12px; padding: 10px 12px; border-radius: 14px; background: var(--marinho-100); }
.resumo-curto:empty { display: none; }
.resumo-rotulo { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--marinho-700); margin-right: 2px; }
.resumo-item { background: #fff; border-radius: 999px; padding: 3px 10px; font-size: 13px; font-weight: 600; }
.resumo-curto .link-acao { margin-left: auto; }

.campo > label.aceite, .aceite { display: flex; gap: 10px; align-items: flex-start; margin: 0; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--texto-2); line-height: 1.45; }
.aceite input { position: absolute; opacity: 0; pointer-events: none; }
.aceite-caixa { width: 24px; height: 24px; border-radius: 7px; flex-shrink: 0; border: 1.5px solid var(--borda-forte); background: #fff; color: transparent; display: grid; place-items: center; transition: all var(--transicao); }
.aceite input:checked + .aceite-caixa { background: var(--laranja); border-color: var(--laranja); color: #fff; }
.aceite input:focus-visible + .aceite-caixa { outline: 2px solid var(--marinho-500); outline-offset: 2px; }
.campo-aceite.erro .aceite-caixa { border-color: var(--erro); }

/* ---------- Botões e barra de ações ---------- */
.botao { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 14px; border: 0; cursor: pointer; font-size: 16px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: all var(--transicao); -webkit-tap-highlight-color: transparent; }
.botao:active { transform: scale(.98); }
.botao:disabled { opacity: .6; cursor: not-allowed; }
.botao-primario { background: var(--laranja); color: #fff; box-shadow: 0 8px 20px -8px rgba(37, 99, 184, .8); }
.botao-primario:hover { background: var(--laranja-escuro); }
.botao-secundario { background: var(--marinho-900); color: #fff; }
.botao-secundario:hover { background: var(--marinho-700); }
.botao-fantasma { background: transparent; color: var(--texto-2); }
.botao-fantasma:hover { background: #E8ECF2; color: var(--texto); }
.botao-icone { width: 38px; height: 38px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, .1); color: inherit; cursor: pointer; display: grid; place-items: center; }

.acoes { flex-shrink: 0; background: #fff; border-top: 1px solid var(--borda); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
.acoes-interno { max-width: 760px; margin: 0 auto; display: flex; gap: 10px; }
.acoes-interno #btn-avancar { flex: 1; }
@media (min-width: 1000px) {
    .acoes { padding: 12px 40px; }
    .acoes-interno #btn-avancar { flex: 0 0 auto; min-width: 220px; margin-left: auto; }
}

.armadilha { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Sucesso ---------- */
.sucesso { flex: 1; overflow-y: auto; display: grid; place-items: center; padding: 24px 16px; }
.sucesso-cartao { width: 100%; max-width: 480px; text-align: center; background: #fff; border: 1px solid var(--borda); border-radius: 24px; padding: 32px 22px; box-shadow: var(--sombra-2); animation: entrar 400ms cubic-bezier(.2, .7, .2, 1); }
.sucesso-icone { width: 80px; height: 80px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--ok); box-shadow: 0 0 0 10px rgba(18, 148, 90, .12); animation: pulo 500ms cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pulo { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.sucesso h2 { margin: 0 0 6px; font-size: 24px; letter-spacing: -.02em; outline: none; }
.sucesso p { margin: 0 0 10px; color: var(--texto-2); }
.codigo { display: inline-flex; align-items: center; gap: 12px; margin: 4px 0 18px; padding: 10px 10px 10px 20px; border-radius: 16px; background: var(--marinho-900); color: #fff; font-size: clamp(17px, 5.2vw, 22px); font-weight: 800; letter-spacing: .02em; font-variant-numeric: tabular-nums; white-space: nowrap; max-width: 100%; }
.sucesso-texto { font-size: 15px; }
.sucesso-acoes { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }

/* ---------- Envio em andamento e avisos ---------- */
.enviando { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; background: rgba(7, 17, 32, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.enviando-cartao { width: 100%; max-width: 340px; background: #fff; border-radius: 20px; padding: 28px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.barra { height: 6px; width: 100%; border-radius: 999px; background: var(--marinho-100); overflow: hidden; }
.barra span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--laranja); transition: width 320ms ease; }
.enviando-cartao small { color: var(--texto-3); }
.girando { width: 40px; height: 40px; border-radius: 50%; border: 4px solid var(--marinho-100); border-top-color: var(--laranja); animation: girar 800ms linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
.aviso-flutuante { position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 60; transform: translateX(-50%); width: calc(100% - 32px); max-width: 480px; padding: 13px 16px; border-radius: 14px; font-size: 14px; font-weight: 600; background: var(--marinho-900); color: #fff; box-shadow: var(--sombra-2); animation: entrar 220ms ease; }
.aviso-flutuante.erro { background: var(--erro); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Ajustes de compactação (celular) ---------- */
.detalhes-endereco { display: none; }
.endereco.preenchido .detalhes-endereco { display: block; animation: entrar 220ms ease; }
.audio-item { flex-wrap: nowrap; padding: 4px 4px 4px 10px; }
.audio-item audio { flex: 1 1 auto; height: 34px; }
.audio-remover { width: 32px; height: 32px; padding: 0; font-size: 15px; display: grid; place-items: center; }
@media (max-width: 480px) { .audio-item audio { order: 0; flex-basis: auto; } .audio-dur { margin-right: 0; } }
@media (max-width: 999px) {
    .etapa-sub { display: none; }
    .tipo-cartao { min-height: 42px; padding: 5px 8px; gap: 8px; }
    .tipo-icone { width: 28px; height: 28px; border-radius: 8px; }
    .tipo-cartao strong { font-size: 13px; }
    .voz-botao { padding: 14px; gap: 14px; }
    .voz-mic { width: 58px; height: 58px; }
    .voz-titulo { font-size: 17px; }
    .conteudo { padding-top: 14px; }
    .etapa-titulo { font-size: 21px; margin-bottom: 12px; }
}
.cep-linha { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.cep-resultado { padding: 6px 10px; }
.manual .campo:last-child { margin-bottom: 8px; }
@media (max-width: 999px) {
    .endereco { padding: 10px 12px; }
    .endereco-topo { margin-bottom: 6px; }
    .marcador { width: 24px; height: 24px; border-radius: 7px; }
    .endereco input:not([type=radio]):not([type=checkbox]), .botao-gps, .campo-data input, .chip-solto span { min-height: 44px; }
    .endereco .campo { margin-bottom: 6px; }
    .enderecos { gap: 8px; margin-bottom: 10px; }
    .campo-data .rotulo { margin-bottom: 4px; }
}
/* Sem áudio e sem texto: o card de voz também fica destacado, mostrando que gravar resolve */
.etapa:has(.campo-descricao.erro) .voz-botao { box-shadow: 0 0 0 3px rgba(215, 38, 61, .45), 0 14px 30px -16px rgba(11, 25, 44, .9); }

/* ---------- Respiro entre os componentes ---------- */
@media (min-width: 1000px) {
    .conteudo { padding-top: 40px; }
    .etapa-titulo { margin-bottom: 24px; }
    .etapa-sub { margin: -14px 0 24px; }
    .campo-tipos { margin-bottom: 24px; }
    .tipos { gap: 12px; }
    .tipo-cartao { min-height: 50px; padding: 8px 12px; }
    .voz-botao { padding: 18px 22px; }
    .ou { margin: 18px 0 14px; }
    .campo-descricao { margin-bottom: 20px; }
    .dica-um-dos-dois { margin-top: 8px; }
    .audios { margin-top: 12px; }

    .enderecos { gap: 16px; margin-bottom: 20px; }
    .endereco { padding: 16px 18px; }
    .endereco-topo { margin-bottom: 12px; }
    .endereco .campo { margin-bottom: 12px; }
    .opcoes-acesso { margin-top: 2px; }
    .linha-data { gap: 14px; }

    .grade-2 { gap: 0 16px; }
    .campo { margin-bottom: 18px; }
    .campo > label, .rotulo { margin-bottom: 8px; }
    .opcoes-chip { gap: 8px; }
    .resumo-curto { margin: 6px 0 20px; padding: 12px 14px; }
}
/* Celulares com tela mais alta: um pouco mais de espaço também */
@media (max-width: 999px) and (min-height: 780px) {
    .etapa-titulo { margin-bottom: 16px; }
    .campo-tipos { margin-bottom: 18px; }
    .ou { margin: 12px 0 10px; }
    .campo-descricao { margin-bottom: 14px; }
    .enderecos { gap: 12px; }
}
/* Notebooks de tela baixa (ex.: 1366×768): respiro um pouco menor para não rolar */
@media (min-width: 1000px) and (max-height: 720px) {
    .conteudo { padding-top: 28px; }
    .etapa-titulo { margin-bottom: 18px; }
    .campo-tipos { margin-bottom: 18px; }
    .voz.tem-audio .voz-botao { padding: 12px 18px; }
    .voz.tem-audio + .ou { margin: 12px 0 10px; }
    .audios { margin-top: 8px; }
    .campo-descricao { margin-bottom: 14px; }
}
@media (min-width: 1000px) and (max-height: 720px) {
    /* Com áudio gravado, o texto vira complemento: campo mais baixo */
    .etapa:has(.voz.tem-audio) .campo-descricao textarea { min-height: 48px; height: 50px; }
    .dica-um-dos-dois { margin-top: 6px; }
}
.linha-data .campo-data { margin-bottom: 0; }

/* =====================================================================
   v3.1 — Menos texto, mais respiro
   ===================================================================== */
.passo { padding: 10px 12px; }
.lateral-chamada p { margin-top: 4px; }
.voz-sub { font-size: 13px; }
.fotos-linha { margin-top: 4px; }
.campo-aceite { margin-top: 8px; }

@media (min-width: 1000px) {
    .conteudo { padding-top: 48px; }
    .etapa-titulo { margin-bottom: 28px; }
    .campo-tipos { margin-bottom: 28px; }
    .tipos { gap: 14px; }
    .tipo-cartao { min-height: 54px; padding: 9px 14px; gap: 12px; }
    .tipo-cartao strong { font-size: 14.5px; }
    .voz-botao { padding: 22px 26px; gap: 20px; }
    .voz-mic { width: 68px; height: 68px; }
    .voz-titulo { font-size: 20px; }
    .ou { margin: 22px 0 18px; }
    .campo-descricao { margin-bottom: 22px; }

    .enderecos { gap: 20px; margin-bottom: 28px; }
    .endereco { padding: 20px 22px; }
    .endereco-topo { margin-bottom: 14px; }
    .endereco .campo { margin-bottom: 14px; }

    .campo { margin-bottom: 24px; }
    .grade-2 { gap: 0 20px; }
    .opcoes-chip { gap: 10px; }
    .chip-opcao span { padding: 9px 14px; }
}
@media (min-width: 1000px) and (max-height: 720px) {
    .conteudo { padding-top: 32px; }
    .etapa-titulo { margin-bottom: 22px; }
    .campo-tipos { margin-bottom: 22px; }
    .voz-botao { padding: 18px 22px; }
    .ou { margin: 16px 0 14px; }
    .enderecos { margin-bottom: 20px; }
}
@media (max-width: 999px) {
    .conteudo { padding: 20px 18px 20px; }
    .etapa-titulo { margin-bottom: 18px; }
    .campo-tipos { margin-bottom: 20px; }
    .tipos { gap: 10px; }
    .ou { margin: 14px 0 12px; }
    .campo-descricao { margin-bottom: 16px; }
    .enderecos { gap: 14px; margin-bottom: 18px; }
    .campo { margin-bottom: 18px; }
}
@media (max-width: 999px) {
    .enderecos { gap: 10px; margin-bottom: 14px; }
    [data-etapa="3"] .etapa-titulo { margin-bottom: 14px; }
    .linha-data { gap: 8px; }
    .campo-data .rotulo { margin-bottom: 4px; }
}
@media (max-width: 999px) {
    .conteudo { padding: 16px 18px 12px; }
    .enderecos { margin-bottom: 12px; }
}

/* ---------- Calendário (v3.2) ---------- */
.seletor-data {
    display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 14px;
    background: #fff; border: 1.5px solid var(--borda); border-radius: 12px; cursor: pointer;
    font-size: 16px; color: #A3AEBF; text-align: left; transition: border-color var(--transicao);
}
.seletor-data .ic { color: var(--texto-3); }
.seletor-data:hover, .seletor-data:focus-visible { border-color: var(--marinho-500); outline: none; }
.seletor-data.preenchido { color: var(--texto); font-weight: 600; }
.seletor-data.preenchido .ic { color: var(--laranja); }
.campo.erro .seletor-data { border-color: var(--erro); }

.calendario { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(7, 17, 32, .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: entrar 160ms ease; }
.cal-cartao { width: 100%; max-width: 360px; background: #fff; border-radius: 22px; padding: 18px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45); }
.cal-topo { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-topo strong { font-size: 17px; }
.cal-nav { width: 42px; height: 42px; border-radius: 12px; border: 0; background: var(--fundo); font-size: 24px; line-height: 1; cursor: pointer; color: var(--marinho-900); }
.cal-nav:hover { background: var(--marinho-100); }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-semana, .cal-grade { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-semana span { font-size: 12px; font-weight: 700; color: var(--texto-3); padding: 4px 0; }
.cal-dia { aspect-ratio: 1; border: 0; border-radius: 12px; background: transparent; font-size: 15px; font-weight: 600; cursor: pointer; color: var(--texto); }
.cal-dia:hover:not(:disabled) { background: var(--laranja-claro); color: var(--laranja-escuro); }
.cal-dia:focus-visible { outline: 2px solid var(--marinho-500); }
.cal-dia:disabled { color: #C9D1DC; cursor: default; }
.cal-dia.hoje { box-shadow: inset 0 0 0 1.5px var(--borda-forte); }
.cal-dia.escolhido { background: var(--laranja); color: #fff; }
.cal-rodape { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.cal-rodape .botao { min-height: 40px; padding: 0 14px; font-size: 14px; }

/* ---------- Localização com endereço (v3.2) ---------- */
.gps-resultado { align-items: flex-start; }
.gps-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.gps-txt strong { font-size: 14px; }
.gps-txt small { font-size: 12.5px; color: var(--texto-2); }
.gps-txt .gps-aviso { font-weight: 600; margin-top: 2px; }
.gps-boa .gps-aviso { color: var(--ok); }
.gps-media { background: #FFF8EB; border-color: #FFE0A8; }
.gps-media .cep-ok { background: #D97706; }
.gps-media .gps-aviso { color: #B45309; }
.gps-ruim { background: #FDECEE; border-color: #F6C3CB; }
.gps-ruim .cep-ok { background: var(--erro); }
.gps-ruim .gps-aviso { color: #9B1C2E; }
.gps-resultado .link-acao { flex-shrink: 0; }

/* ---------- Resumo da IA sob o áudio (v3.3) ---------- */
.audio-bloco { list-style: none; display: grid; gap: 6px; }
.ia-resumo { padding: 10px 12px; border-radius: 12px; background: #EEF0FF; border: 1px solid #D5D9FF; color: #312E81; font-size: 13.5px; line-height: 1.45; animation: entrar 220ms ease; }
.ia-resumo b { color: #3730A3; }
.ia-resumo.carregando { display: flex; align-items: center; gap: 8px; background: var(--fundo); border-color: var(--borda); color: var(--texto-2); }
.ia-girando { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--marinho-100); border-top-color: #4F46E5; animation: girar 800ms linear infinite; flex-shrink: 0; }
.ia-faltou { margin-top: 4px; color: #92400E; font-size: 12.5px; }
.ia-faltou b { color: #92400E; }
/* Áudio + resumo nunca passam da largura da tela */
.audios { grid-template-columns: minmax(0, 1fr); }
.audio-bloco, .audio-item, .ia-resumo { min-width: 0; max-width: 100%; }
.audio-item audio { min-width: 0; width: 100%; }

/* ---------- Confirmar local no mapa (v3.6) ---------- */
.gps-links { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.mapa-janela { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 12px; background: rgba(7, 17, 32, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: entrar 160ms ease; }
.mapa-cartao { width: 100%; max-width: 640px; max-height: calc(100dvh - 24px); display: flex; flex-direction: column; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45); }
.mapa-topo { padding: 16px 18px 12px; display: flex; flex-direction: column; gap: 2px; }
.mapa-topo strong { font-size: 18px; }
.mapa-topo small { color: var(--texto-2); font-size: 13px; }
.mapa { flex: 1; min-height: 300px; height: 55vh; background: var(--marinho-100); }
.mapa-endereco { min-height: 56px; padding: 10px 18px; display: flex; flex-direction: column; justify-content: center; gap: 2px; border-top: 1px solid var(--borda); font-size: 14px; }
.mapa-endereco strong { font-size: 15px; }
.mapa-endereco small { color: var(--texto-2); }
.mapa-acoes { display: flex; gap: 10px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--borda); }
.mapa-acoes .botao-primario { flex: 1; }
.mapa-girando { display: inline-block; width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; border-radius: 50%; border: 2px solid var(--marinho-100); border-top-color: var(--laranja); animation: girar 800ms linear infinite; }
@media (max-width: 600px) {
    .mapa-janela { padding: 0; place-items: stretch; }
    .mapa-cartao { max-width: none; max-height: none; height: 100dvh; border-radius: 0; }
    .mapa { height: auto; }
}

/* =====================================================================
   v4.0 — Cards com mais respiro, CEP + mapa (sem GPS)
   ===================================================================== */
/* --- CEP --- */
.campo-cep { margin-bottom: 0 !important; }
.cep-caixa { position: relative; display: flex; align-items: center; }
.cep-caixa > .ic { position: absolute; left: 14px; color: var(--texto-3); pointer-events: none; }
.cep-caixa input { padding-left: 42px !important; font-weight: 600; letter-spacing: .02em; }
.cep-caixa input:focus ~ .ic, .cep-caixa:focus-within > .ic { color: var(--laranja); }
.cep-girando { position: absolute; right: 14px; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--marinho-100); border-top-color: var(--laranja); animation: girar 700ms linear infinite; }
.campo-cep.erro input { border-color: var(--erro); background: #FFFBFB; }

/* --- Endereço encontrado --- */
.end-achado { animation: entrar 240ms ease; }
.end-linhas { display: flex; flex-direction: column; gap: 2px; padding: 2px 2px 10px; }
.end-linhas strong { font-size: 16px; line-height: 1.3; }
.end-linhas small { font-size: 13px; color: var(--texto-2); }
.end-mapa { position: relative; height: 128px; border-radius: 14px; overflow: hidden; background:
    linear-gradient(135deg, #EAF0F7 25%, transparent 25%) 0 0 / 16px 16px, #F1F5FA; border: 1px solid var(--borda); }
.end-mapa iframe { position: absolute; inset: -60px 0 0; width: 100%; height: calc(100% + 120px); border: 0; pointer-events: none; }
.end-mapa::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(11,25,44,.04); border-radius: inherit; pointer-events: none; }
/* Só o endereço em edição mostra o mapa; o outro fica compacto */
.endereco:not(.ativo) .end-mapa { display: none; }
.endereco:not(.ativo) .end-linhas { padding-bottom: 6px; }

.detalhes-endereco { margin-top: 10px; }
.grade-numero { display: grid; grid-template-columns: 96px 1fr; gap: 8px; }
.grade-numero .campo, .grade-2-fixa .campo { margin-bottom: 0 !important; }
.grade-2-fixa { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.manual .grade-cidade .campo { margin-bottom: 0 !important; }
.manual { margin-top: 10px; }
.opcoes-acesso { margin-top: 10px; }
.endereco-topo .link-acao { flex-shrink: 0; }

/* --- Cards --- */
.endereco { border-radius: 20px; border-color: #E6EBF2; box-shadow: 0 1px 2px rgba(11,25,44,.04), 0 8px 24px -18px rgba(11,25,44,.35); }
.endereco.ativo { border-color: #D3DCE8; }
.endereco-topo strong { font-size: 16px; }
.marcador { width: 30px !important; height: 30px !important; border-radius: 10px !important; }

.botao-fotos {
    width: 100%; justify-content: center; min-height: 52px; border-radius: 16px;
    border: 1.5px dashed var(--borda-forte); background: rgba(255,255,255,.6); color: var(--marinho-700);
}
.botao-fotos small { margin-left: 2px; }
.fotos-linha { flex-direction: column; align-items: stretch; }
.fotos-linha .fotos:not([hidden]) { padding-top: 2px; }

.campo-aceite .aceite { padding: 14px; border-radius: 16px; background: #fff; border: 1px solid #E6EBF2; }

/* --- Celular --- */
@media (max-width: 999px) {
    .conteudo { padding: 22px 18px 18px !important; }
    .etapa-titulo { font-size: 24px !important; margin-bottom: 18px !important; }

    /* Passo 1 */
    .campo-tipos { margin-bottom: 18px !important; }
    .tipos { gap: 10px !important; }
    .tipo-cartao { min-height: 56px !important; padding: 8px 12px !important; gap: 10px !important; border-radius: 16px; border-color: #E6EBF2;
        box-shadow: 0 1px 2px rgba(11,25,44,.04); }
    .tipo-icone { width: 34px !important; height: 34px !important; border-radius: 10px !important; }
    .tipo-cartao strong { font-size: 14px !important; }
    .voz-botao { border-radius: 22px; padding: 16px 18px !important; }
    .ou { margin: 16px 0 14px !important; }
    .campo-descricao { margin-bottom: 14px !important; }
    .campo-descricao textarea { min-height: 76px; border-radius: 16px; }

    /* Passo 2 */
    .enderecos { gap: 12px !important; margin-bottom: 18px !important; }
    .endereco { padding: 14px 16px 16px !important; }
    .endereco-topo { margin-bottom: 12px !important; }
    .endereco input:not([type=radio]):not([type=checkbox]) { min-height: 50px !important; border-radius: 14px; }
    .seletor-data { min-height: 52px; border-radius: 14px; }
    .chip-solto span { min-height: 52px !important; border-radius: 14px; }
    .opcoes-acesso .chip-opcao span { padding: 8px 14px; font-size: 13.5px; }

    /* Passo 3 */
    [data-etapa="4"] .campo { margin-bottom: 20px !important; }
    [data-etapa="4"] input:not([type=radio]):not([type=checkbox]) { min-height: 52px; border-radius: 14px; }
    .opcoes-chip { gap: 8px !important; }
    [data-etapa="4"] .chip-opcao span { padding: 10px 16px; font-size: 14px; }
    .campo-aceite { margin-top: 4px; }
}
/* Celular baixo: mapa menor */
@media (max-width: 999px) and (max-height: 700px) {
    .end-mapa { height: 104px; }
    .etapa-titulo { margin-bottom: 14px !important; }
}
@media (min-width: 1000px) {
    .end-mapa { height: 150px; }
    .botao-fotos { width: auto; justify-content: flex-start; padding: 0 20px; }
    .fotos-linha { flex-direction: row; align-items: center; }
}
.enderecos { align-items: start; }
@media (max-width: 999px) {
    [data-etapa="3"] .etapa-titulo { margin-bottom: 14px !important; }
    .endereco.achado:not(.ativo) { padding: 12px 14px 12px !important; }
    .endereco.achado:not(.ativo) .endereco-topo { margin-bottom: 8px !important; }
    .endereco.achado:not(.ativo) .end-linhas { padding-bottom: 2px; }
    .endereco.achado:not(.ativo) .detalhes-endereco { margin-top: 8px; }
    .endereco.achado:not(.ativo) .opcoes-acesso { margin-top: 8px; }
    .endereco.achado:not(.ativo) input:not([type=radio]):not([type=checkbox]) { min-height: 46px !important; }
}

/* ---------- v4.1 — Card de voz equilibrado ---------- */
.voz-botao { gap: 16px !important; }
.voz-txt { gap: 2px; }
.voz-selo { font-size: 11.5px; letter-spacing: .1em; }
.voz-titulo { font-size: 22px !important; font-weight: 800; letter-spacing: -.01em; line-height: 1.15; margin-top: 3px; }
.voz-sub { font-size: 14px !important; line-height: 1.35; color: rgba(255,255,255,.78) !important; }
.voz-onda { display: flex; align-items: center; gap: 4px; height: 40px; flex-shrink: 0; padding-right: 2px; }
.voz-onda i { display: block; width: 4px; border-radius: 4px; background: rgba(255,255,255,.28); height: 12px; }
.voz-onda i:nth-child(2) { height: 24px; } .voz-onda i:nth-child(3) { height: 36px; background: rgba(147,187,240,.85); }
.voz-onda i:nth-child(4) { height: 20px; } .voz-onda i:nth-child(5) { height: 10px; }
.voz.gravando .voz-onda i { background: rgba(255,255,255,.85); animation: onda .9s ease-in-out infinite; }
.voz.gravando .voz-onda i:nth-child(2) { animation-delay: .15s; } .voz.gravando .voz-onda i:nth-child(3) { animation-delay: .3s; }
.voz.gravando .voz-onda i:nth-child(4) { animation-delay: .45s; } .voz.gravando .voz-onda i:nth-child(5) { animation-delay: .6s; }
@keyframes onda { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1.1); } }
.voz.gravando .voz-tempo { font-size: 18px; }
.voz.tem-audio .voz-onda { display: none; }
.voz.tem-audio .voz-titulo { font-size: 17px !important; }
@media (max-width: 420px) { .voz.gravando .voz-onda { display: none; } .voz-onda { gap: 3px; } }
@media (min-width: 1000px) { .voz-titulo { font-size: 24px !important; } .voz-onda { height: 48px; gap: 5px; } .voz-onda i { width: 5px; } }

/* ---------- v4.1 — Acesso obrigatório + andar ---------- */
.campo-acesso, .campo-andar { margin: 0 !important; }
.campo-acesso .opcoes-acesso { margin-top: 10px; }
.campo-acesso.erro .chip-opcao span { border-color: #F2B8C0; background: #FFFBFB; }
.campo-andar { margin-top: 10px !important; animation: entrar 200ms ease; }
.linha-andar { display: flex !important; align-items: center; gap: 10px; margin: 0 !important; font-size: 14px; font-weight: 600; color: var(--texto-2); }
.linha-andar input { width: 96px !important; min-height: 44px !important; text-align: center; font-weight: 700; }
.campo-andar.erro input { border-color: var(--erro); }
.endereco.achado:not(.ativo) .campo-acesso .opcoes-acesso { margin-top: 8px; }

/* =====================================================================
   v4.2 — 4 etapas: Serviço → Seu pedido → Endereços → Contato
   ===================================================================== */
/* Topo do celular: etapa atual + barra em 4 segmentos */
.topo-mobile { padding-bottom: 16px !important; }
.topo-passo { font-weight: 600 !important; color: rgba(255,255,255,.8) !important; padding: 5px 12px !important; }
.topo-passo b { color: #fff; font-weight: 800; }
.topo-barra { display: none !important; }
.topo-segmentos { position: absolute; left: 16px; right: 16px; bottom: 6px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.topo-segmentos i { display: block; height: 4px; border-radius: 4px; background: rgba(255,255,255,.16); transition: background 300ms ease; }
.topo-segmentos i.feito { background: rgba(37, 99, 184, .65); }
.topo-segmentos i.atual { background: var(--laranja); }

/* Passo 1: cards grandes, um toque avança */
.etapa-sub-curta { margin: -8px 0 20px; color: var(--texto-2); font-size: 15px; }
[data-etapa="1"] .campo-tipos { margin-bottom: 0 !important; }
[data-etapa="1"] .tipos { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
[data-etapa="1"] .tipo-cartao {
    flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 14px !important;
    min-height: 112px !important; padding: 16px !important; border-radius: 20px !important;
    border: 1.5px solid #E6EBF2; box-shadow: 0 1px 2px rgba(11,25,44,.04), 0 10px 24px -20px rgba(11,25,44,.4);
}
[data-etapa="1"] .tipo-icone { width: 44px !important; height: 44px !important; border-radius: 14px !important; }
[data-etapa="1"] .tipo-icone .ic { width: 22px; height: 22px; }
[data-etapa="1"] .tipo-cartao strong { font-size: 16px !important; line-height: 1.25; }
[data-etapa="1"] .tipo:active .tipo-cartao { transform: scale(.97); }
@media (min-width: 700px) { [data-etapa="1"] .tipos { grid-template-columns: repeat(3, 1fr) !important; gap: 16px !important; } }
@media (min-width: 1000px) { [data-etapa="1"] .tipo-cartao { min-height: 132px !important; padding: 20px !important; } [data-etapa="1"] .tipo-cartao strong { font-size: 17px !important; } }
@media (max-width: 999px) and (max-height: 700px) { [data-etapa="1"] .tipo-cartao { min-height: 96px !important; padding: 14px !important; } }

/* Passo 2: o pedido — voz em destaque */
.pedido-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.pedido-topo .etapa-titulo { margin: 0 !important; }
.tipo-escolhido { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; max-width: 48%; padding: 7px 12px; border-radius: 999px;
    border: 1.5px solid var(--laranja-borda); background: var(--laranja-claro); color: var(--laranja-escuro); font-weight: 700; font-size: 13px; cursor: pointer; }
.tipo-escolhido span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tipo-escolhido small { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; opacity: .85; }
.tipo-escolhido span:empty, .tipo-escolhido span:empty + small { display: none; }

.etapa-pedido .voz:not(.tem-audio) .voz-botao {
    flex-direction: column; justify-content: center; text-align: center; gap: 14px !important;
    padding: 30px 20px 26px !important; border-radius: 26px;
}
.etapa-pedido .voz:not(.tem-audio) .voz-mic { width: 92px !important; height: 92px !important; }
.etapa-pedido .voz:not(.tem-audio) .voz-mic .ic { width: 38px; height: 38px; }
.etapa-pedido .voz:not(.tem-audio) .voz-txt { align-items: center; flex: 0 0 auto; }
.etapa-pedido .voz:not(.tem-audio) .voz-titulo { font-size: 26px !important; }
.etapa-pedido .voz:not(.tem-audio) .voz-onda { display: none; }
.etapa-pedido .voz.gravando .voz-tempo { font-size: 22px; }
@media (max-width: 999px) and (max-height: 700px) {
    .etapa-pedido .voz:not(.tem-audio) .voz-botao { padding: 22px 18px 20px !important; gap: 10px !important; }
    .etapa-pedido .voz:not(.tem-audio) .voz-mic { width: 76px !important; height: 76px !important; }
}
@media (min-width: 1000px) {
    .etapa-pedido .voz:not(.tem-audio) .voz-botao { padding: 36px 24px 30px !important; }
}
.pedido-topo { flex-direction: column; align-items: flex-start; gap: 8px; }
.tipo-escolhido { max-width: 100%; padding: 5px 12px; font-size: 12.5px; }

/* =====================================================================
   v4.4 — Identidade JHC Transportes (azul do logo)
   ===================================================================== */
/* Topo do celular: azul JHC escuro, caminhão + nome (como antes) */
.topo-passo { background: rgba(255,255,255,.10) !important; color: rgba(255,255,255,.8) !important; }
.topo-passo b { color: #fff !important; }
.topo-segmentos i { background: rgba(255,255,255,.16) !important; }
.topo-segmentos i.feito { background: rgba(143,184,242,.65) !important; }
.topo-segmentos i.atual { background: #5B95E6 !important; }
.marca-icone { background: var(--laranja) !important; box-shadow: 0 6px 18px -6px rgba(37,99,184,.8) !important; }

.lateral { background:
    radial-gradient(120% 60% at 0% 0%, rgba(61,111,176,.35), transparent 55%),
    radial-gradient(90% 60% at 100% 100%, rgba(37,99,184,.30), transparent 60%),
    linear-gradient(180deg, #12284A, #0A1A31) !important; }
.lateral-chamada h1 em { color: #8FB8F2 !important; }
.selo { background: rgba(255,255,255,.10) !important; color: #CFE0F7 !important; border-color: rgba(255,255,255,.22) !important; }

/* Card de voz: azul JHC, microfone branco */
.voz:not(.gravando) .voz-botao { background:
    radial-gradient(120% 140% at 0% 0%, rgba(61,111,176,.45), transparent 55%),
    linear-gradient(135deg, #12284A, #1D3D66) !important; }
.voz:not(.gravando) .voz-mic { background: #fff !important; color: var(--marinho-700) !important; box-shadow: 0 10px 24px -8px rgba(0,0,0,.45) !important; }
.voz:not(.gravando) .voz-anel { border-color: rgba(255,255,255,.45) !important; }
.voz-selo { color: #A9C8F2 !important; }
.voz-onda i:nth-child(3) { background: rgba(169,200,242,.9) !important; }

/* Botão principal com o azul de destaque */
.botao-primario { box-shadow: 0 8px 20px -8px rgba(37,99,184,.7) !important; }
