/* cadastrar.php — cadastro de empresa em etapas, no padrão visual da home */
.cadastro {
    max-width: 820px;
    margin: 0 auto;
    padding: 28px 16px 56px;
    color: #1a2330;
}

.cadastro__topo {
    margin: 0 0 22px;
    text-align: center;
}

.cadastro__topo h1 {
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.01em;
}

.cadastro__topo p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.5;
    color: #667085;
}

.cadastro__vantagens {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.cadastro__vantagens li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border: 1px solid #d5e3db;
    border-radius: 999px;
    background: #fff;
    color: #1b6b38;
    font-size: 13px;
    font-weight: 600;
}

.cadastro__vantagens li::before {
    content: "\2713";
    font-weight: 800;
}

/* Etapas */
.cadastro__passos {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
    counter-reset: passo;
}

.cadastro__passos li {
    position: relative;
    min-width: 0;
    overflow-wrap: anywhere;
    padding: 34px 4px 0;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #98a2b3;
    counter-increment: passo;
}

.cadastro__passos li::before {
    content: counter(passo);
    position: absolute;
    top: 0;
    left: 50%;
    width: 28px;
    height: 28px;
    margin-left: -14px;
    border: 2px solid #d0d5dd;
    border-radius: 50%;
    background: #fff;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 800;
    z-index: 1;
}

.cadastro__passos li::after {
    content: "";
    position: absolute;
    top: 13px;
    left: calc(-50% + 18px);
    width: calc(100% - 36px + 8px);
    height: 2px;
    background: #d0d5dd;
}

.cadastro__passos li:first-child::after {
    display: none;
}

.cadastro__passos li.atual,
.cadastro__passos li.feito {
    color: #1a2330;
}

.cadastro__passos li.atual::before {
    border-color: #1f7a3a;
    background: #1f7a3a;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(31, 122, 58, .15);
}

.cadastro__passos li.feito::before {
    content: "\2713";
    border-color: #1f7a3a;
    background: #eef7f1;
    color: #1f7a3a;
}

.cadastro__passos li.feito::after,
.cadastro__passos li.atual::after {
    background: #1f7a3a;
}

.cadastro__alerta {
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px solid #fecdca;
    border-radius: 12px;
    background: #fef3f2;
    color: #912018;
    font-size: 14px;
}

/* Cartão do formulário */
.cadastro__cartao {
    padding: 26px;
    border: 1px solid #e4e7ec;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .06);
}

.etapa {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

/* Sem JavaScript: as etapas ficam uma embaixo da outra */
.etapa + .etapa {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #eef0f3;
}

.js-etapas .etapa + .etapa {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.js-etapas .etapa[hidden] {
    display: none;
}

.etapa legend {
    margin: 0 0 18px;
    padding: 0;
    font-size: 20px;
    font-weight: 800;
    color: #1a2330;
}

.campo {
    margin: 0 0 16px;
}

.campo label,
.campo__rotulo {
    display: block;
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 700;
    color: #1a2330;
}

.obrigatorio {
    color: #c0392b;
}

.opcional {
    margin-left: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #98a2b3;
}

.campo input[type="text"],
.campo input[type="tel"],
.campo input[type="email"],
.campo input[type="search"],
.campo select,
.campo textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    min-height: 46px;
    padding: 10px 14px;
    border: 1.5px solid #d0d5dd;
    border-radius: 12px;
    background: #fff;
    color: #1a2330;
    font: inherit;
    font-size: 16px;
    line-height: 1.4;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.campo textarea {
    min-height: 120px;
    resize: vertical;
}

.campo input:focus,
.campo select:focus,
.campo textarea:focus {
    border-color: #1f7a3a;
    outline: none;
    box-shadow: 0 0 0 3px rgba(31, 122, 58, .15);
}

.campo--erro input,
.campo--erro select,
.campo--erro textarea {
    border-color: #d92d20;
}

.campo__ajuda {
    margin: 6px 0 0;
    font-size: 13px;
    color: #667085;
}

.campo__ajuda a {
    color: #1f7a3a;
    font-weight: 600;
}

.campo__erro {
    margin: 6px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: #d92d20;
}

.campo__erro[hidden] {
    display: none;
}

.grade-2,
.grade-3,
.grade-endereco {
    display: grid;
    gap: 0 16px;
}

.grade-2 {
    grid-template-columns: 1fr 1fr;
}

.grade-3 {
    grid-template-columns: 1fr 1fr 110px;
}

.grade-endereco {
    grid-template-columns: 1fr 140px;
}

.cep__linha {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cep__linha input {
    max-width: 200px;
}

.cep__status {
    font-size: 13px;
    font-weight: 600;
    color: #667085;
}

.cep__status.ok {
    color: #1f7a3a;
}

.cep__status.erro {
    color: #d92d20;
}

/* Categorias */
.categorias__busca {
    position: relative;
    margin: 0 0 12px;
}

.categorias__busca svg {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 18px;
    height: 18px;
    color: #98a2b3;
    transform: translateY(-50%);
    pointer-events: none;
}

.campo .categorias__busca input {
    padding-left: 42px;
    border-radius: 999px;
}

.categorias__selecionadas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
}

.categorias__selecionadas[hidden],
.categorias__nada[hidden] {
    display: none;
}

.selecionada {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px 6px 12px;
    border: 0;
    border-radius: 999px;
    background: #1f7a3a;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.selecionada span {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
    font-size: 12px;
    line-height: 1;
}

.categorias__nada {
    margin: 0 0 12px;
    font-size: 14px;
    color: #667085;
}

.segmentos-lista {
    display: grid;
    gap: 8px;
}

.segmento {
    border: 1.5px solid #e4e7ec;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.segmento[open] {
    border-color: #a6c8b2;
}

.segmento summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px 8px 8px;
    cursor: pointer;
    list-style: none;
    font-size: 15px;
    font-weight: 700;
}

.segmento summary::-webkit-details-marker {
    display: none;
}

.segmento summary::after {
    content: "";
    width: 8px;
    height: 8px;
    margin-left: auto;
    border-right: 2px solid #98a2b3;
    border-bottom: 2px solid #98a2b3;
    transform: rotate(45deg);
    transition: transform .15s ease;
}

.segmento[open] summary::after {
    transform: rotate(-135deg);
}

.segmento summary img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.segmento__contagem {
    padding: 2px 8px;
    border-radius: 999px;
    background: #1f7a3a;
    color: #fff;
    font-size: 12px;
}

.segmento__contagem:empty {
    display: none;
}

.segmento__cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 12px 14px;
}

.chip {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.chip input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.chip span {
    display: inline-block;
    padding: 7px 13px;
    border: 1.5px solid #d0d5dd;
    border-radius: 999px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: #344054;
    transition: background .12s ease, border-color .12s ease, color .12s ease;
}

.chip:hover span {
    border-color: #1f7a3a;
    color: #1f7a3a;
}

.chip input:focus-visible + span {
    outline: 3px solid rgba(31, 122, 58, .35);
    outline-offset: 2px;
}

.chip input:checked + span {
    border-color: #1f7a3a;
    background: #1f7a3a;
    color: #fff;
}

.chip input:checked + span::before {
    content: "\2713  ";
}

.chip input:disabled + span {
    opacity: .45;
    cursor: not-allowed;
}

.js-buscando .segmento {
    border: 0;
}

.js-buscando .segmento summary {
    display: none;
}

.js-buscando .segmento__cats {
    padding: 0;
}

.chip[hidden] {
    display: none;
}

/* Mapa (Leaflet) */
.mapa {
    height: 300px;
    border: 1.5px solid #d0d5dd;
    border-radius: 14px;
    overflow: hidden;
    background: #eef2f0;
    z-index: 0;
}

.mapa[hidden] {
    display: none;
}

.mapa--entrega {
    height: 240px;
    margin-top: 12px;
}

.mapa__acoes {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin: 8px 0 0;
}

.mapa__status {
    font-size: 13px;
    font-weight: 600;
    color: #1f7a3a;
}

.mapa__status.erro {
    color: #d92d20;
}

.cadastro__link {
    padding: 0;
    border: 0;
    background: none;
    color: #1f7a3a;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.cadastro__link:hover,
.cadastro__link:focus-visible {
    text-decoration: underline;
}

.cadastro__link[hidden] {
    display: none;
}

/* Horário */
.horario__atalhos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
}

.horario__atalhos[hidden] {
    display: none;
}

.atalho {
    padding: 7px 12px;
    border: 1.5px solid #d5e3db;
    border-radius: 999px;
    background: #fff;
    color: #1b6b38;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.atalho:hover,
.atalho:focus-visible {
    border-color: #1f7a3a;
    background: #eef7f1;
}

.atalho--limpar {
    color: #667085;
}

.horario__dias {
    border: 1.5px solid #e4e7ec;
    border-radius: 14px;
    overflow: hidden;
}

.dia {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    min-height: 56px;
    padding: 8px 14px;
    border-top: 1px solid #eef0f3;
}

.dia:first-child {
    border-top: 0;
}

.dia--aberto {
    background: #fbfdfc;
}

.dia__chave {
    display: flex !important;
    align-items: center;
    gap: 10px;
    width: 170px;
    margin: 0 !important;
    cursor: pointer;
}

/* Interruptor aberto/fechado */
.dia__chave input {
    position: relative;
    flex: none;
    width: 40px;
    height: 22px;
    margin: 0;
    border-radius: 999px;
    background: #d0d5dd;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: background .15s ease;
}

.dia__chave input::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
    transition: transform .15s ease;
}

.dia__chave input:checked {
    background: #1f7a3a;
}

.dia__chave input:checked::after {
    transform: translateX(18px);
}

.dia__chave input:focus-visible {
    outline: 3px solid rgba(31, 122, 58, .35);
    outline-offset: 2px;
}

.dia__nome {
    font-size: 15px;
    font-weight: 700;
}

.dia__fechado {
    font-size: 13px;
    font-weight: 600;
    color: #98a2b3;
}

.dia--aberto .dia__fechado {
    display: none;
}

.dia__faixas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    flex: 1 1 auto;
}

.js-etapas .dia:not(.dia--aberto) .dia__faixas {
    display: none;
}

.js-etapas .faixa[data-vazia] {
    display: none;
}

.faixa {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.faixa input[type="time"] {
    width: 124px;
    min-height: 40px;
    padding: 6px 8px;
    border: 1.5px solid #d0d5dd;
    border-radius: 10px;
    background: #fff;
    color: #1a2330;
    font: inherit;
    font-size: 15px;
}

.faixa input[type="time"]:focus {
    border-color: #1f7a3a;
    outline: none;
    box-shadow: 0 0 0 3px rgba(31, 122, 58, .15);
}

.faixa__ate {
    font-size: 13px;
    color: #667085;
}

.faixa--extra::before {
    content: "e";
    margin-right: 4px;
    font-size: 13px;
    color: #667085;
}

.campo--erro .horario__dias {
    border-color: #d92d20;
}

.caixa {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin: 14px 0 0 !important;
    font-weight: 600 !important;
    cursor: pointer;
}

.caixa input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #1f7a3a;
}

/* Entrega */
.opcoes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
}

.opcao {
    position: relative;
    margin: 0 !important;
    cursor: pointer;
}

.opcao input {
    position: absolute;
    opacity: 0;
}

.opcao span {
    display: inline-block;
    padding: 9px 18px;
    border: 1.5px solid #d0d5dd;
    border-radius: 999px;
    background: #fff;
    font-size: 14px;
    font-weight: 700;
    color: #344054;
}

.opcao input:checked + span {
    border-color: #1f7a3a;
    background: #1f7a3a;
    color: #fff;
}

.opcao input:focus-visible + span {
    outline: 3px solid rgba(31, 122, 58, .35);
    outline-offset: 2px;
}

.delivery__area {
    padding: 14px;
    border: 1.5px solid #e4e7ec;
    border-radius: 14px;
    background: #fbfdfc;
}

.delivery__area[hidden] {
    display: none;
}

.raio {
    display: flex;
    align-items: center;
    gap: 14px;
}

.raio input[type="range"] {
    flex: 1 1 auto;
    accent-color: #1f7a3a;
}

.raio input[type="range"][hidden] {
    display: none;
}

.raio__valor {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
}

.campo .raio__valor input {
    width: 90px;
    min-height: 40px;
    padding: 6px 10px;
    border: 1.5px solid #d0d5dd;
    border-radius: 10px;
    font: inherit;
    font-size: 15px;
}

/* Logo */
.logo__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.logo__area {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border: 2px dashed #d0d5dd;
    border-radius: 14px;
    background: #f9fafb;
    cursor: pointer;
    font-weight: 400 !important;
    transition: border-color .15s ease, background .15s ease;
}

.logo__area:hover,
.logo__area.arrastando {
    border-color: #1f7a3a;
    background: #eef7f1;
}

.logo__input:focus-visible + .logo__remover,
.logo__input:focus-visible ~ .logo__area {
    outline: 3px solid rgba(31, 122, 58, .35);
}

.logo__previa {
    flex: none;
    width: 88px;
    height: 88px;
    border-radius: 12px;
    background: #fff;
    object-fit: contain;
    border: 1px solid #e4e7ec;
}

.logo__previa[hidden] {
    display: none;
}

.logo__texto {
    font-size: 14px;
    color: #475467;
}

.logo__texto strong {
    color: #1f7a3a;
}

.logo__texto small {
    color: #98a2b3;
}

.logo__remover {
    margin: 8px 0 0;
    padding: 0;
    border: 0;
    background: none;
    color: #d92d20;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.logo__remover[hidden] {
    display: none;
}

/* Resumo */
.resumo {
    margin: 4px 0 18px;
    padding: 16px;
    border-radius: 14px;
    background: #f9fafb;
}

.resumo[hidden] {
    display: none;
}

.resumo h3 {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 800;
}

.resumo dl {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 6px 12px;
    margin: 0;
    font-size: 14px;
}

.resumo dt {
    color: #667085;
}

.resumo dd {
    margin: 0;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.cf-turnstile {
    margin: 0 0 12px;
}

.cadastro__aviso {
    margin: 0;
    font-size: 12.5px;
    color: #667085;
}

.cadastro__aviso a {
    color: #1f7a3a;
}

/* Botões */
.cadastro__acoes {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin: 22px 0 0;
    padding: 18px 0 0;
    border-top: 1px solid #eef0f3;
}

.cadastro__acoes--centro {
    justify-content: center;
    border-top: 0;
}

.cadastro__botao {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 26px;
    border: 1.5px solid #1f7a3a;
    border-radius: 12px;
    background: #1f7a3a;
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.cadastro__botao:hover,
.cadastro__botao:focus-visible {
    background: #1b6b38;
    border-color: #1b6b38;
    color: #fff;
    text-decoration: none;
}

.cadastro__botao--claro {
    background: #fff;
    color: #1f7a3a;
}

.cadastro__botao--claro:hover,
.cadastro__botao--claro:focus-visible {
    background: #eef7f1;
    color: #1b6b38;
}

.cadastro__botao[hidden] {
    display: none;
}

.cadastro__botao:disabled {
    opacity: .6;
    cursor: wait;
}

.cadastro__botao--enviar {
    min-width: 200px;
}

.js-etapas [data-voltar] {
    margin-right: auto;
}

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

/* Sucesso */
.cadastro__sucesso {
    text-align: center;
    padding: 40px 26px;
}

.cadastro__sucesso-icone {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #eef7f1;
    color: #1f7a3a;
    font-size: 34px;
    font-weight: 800;
    line-height: 64px;
}

.cadastro__sucesso h1 {
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: 800;
}

.cadastro__sucesso p {
    max-width: 520px;
    margin: 0 auto 10px;
    font-size: 15px;
    line-height: 1.55;
    color: #475467;
}

.cadastro__codigo strong {
    color: #1a2330;
}

.cadastro__dica {
    font-size: 13px !important;
    color: #667085 !important;
}

@media (max-width: 640px) {
    .cadastro {
        padding-top: 20px;
    }

    .cadastro__topo h1 {
        font-size: 24px;
    }

    .cadastro__cartao {
        padding: 18px;
    }

    .cadastro__passos li {
        font-size: 11px;
    }

    .grade-2,
    .grade-3 {
        grid-template-columns: 1fr;
    }

    .grade-endereco {
        grid-template-columns: 1fr 100px;
    }

    .cadastro__passos {
        gap: 2px;
    }

    .cadastro__passos li {
        font-size: 10px;
    }

    .dia__chave {
        width: 100%;
    }

    .mapa {
        height: 260px;
    }

    .resumo dl {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .resumo dd {
        margin-bottom: 8px;
    }

    .cadastro__acoes {
        position: sticky;
        bottom: 0;
        margin: 18px -18px -18px;
        padding: 12px 18px;
        background: #fff;
        border-radius: 0 0 18px 18px;
        box-shadow: 0 -6px 16px rgba(16, 24, 40, .06);
    }

    .cadastro__botao {
        flex: 1 1 auto;
    }

    .cadastro__acoes--centro {
        position: static;
        margin: 22px 0 0;
        box-shadow: none;
    }
}

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

/* Rede de Entregadores: bloco "Serviços de entrega" (etapa Funcionamento) */
.campo-entregador { border-top: 1px solid #e2e8f0; padding-top: 14px; }
.campo-entregador__sub { margin: 12px 0 6px; }
.campo-entregador__veiculo { display: grid; grid-template-columns: 1.4fr 1fr 1fr repeat(3, 0.8fr); gap: 6px; margin-bottom: 6px; }
.campo-entregador__precos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.campo-entregador__precos label, .campo-entregador__descricao { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.campo-entregador__descricao { margin-top: 10px; }
@media (max-width: 640px) {
    .campo-entregador__veiculo { grid-template-columns: 1fr 1fr; }
    .campo-entregador__precos { grid-template-columns: 1fr 1fr; }
}
