/* =======================================================================================
   BASE
======================================================================================= */
body {
    width: 100%;
    height: 100%;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    background: #f8f8f8;
}

.container {
    position: relative;
    z-index: 1;
}

/* =======================================================================================
   BANNER (topo) — reduzido
======================================================================================= */
section#banner-background {
    min-height: 260px;
    position: relative;
    padding: 24px 15px 40px 15px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background: #003476;
}

h1#banner-title {
    font-family: "Muli", "arial", sans-serif;
    color: #fff;
    font-weight: 600;
    margin: 32px auto 10px auto;
}

.section-background-image {
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-image: url(../../img/bg-banner.jpg);
    opacity: 0.3;
    background-position: 50% 50%;
    background-size: cover;
}

section#banner-background .image-container {
    position: absolute;
    overflow: hidden;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.banner--subtitle {
    margin-top: 12px;
    font-size: 17px;
    line-height: 1.5;
    font-weight: 400;

    color: rgba(255, 255, 255, 0.85);

    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* =======================================================================================
   FORMAS DE PAGAMENTO (cards com imagem)
======================================================================================= */

.payment-micro {
    margin: 6px 0 10px;
    font-size: 12px;
    line-height: 1.45;
    color: #6b7280; /* muted */
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.payment-card {
    cursor: pointer;
    position: relative;
    display: block;
}

/* Esconde o checkbox real */
.payment-card input[type="checkbox"] {
    display: none;
}

.payment-content {
    background: #ffffff;
    border: 1px solid #e0e6ed;
    border-radius: 10px;
    text-align: center;
    padding: 10px 6px;

    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 100%;
}

/* Estado selecionado: borda destaque + fundo suave */
.payment-card input[type="checkbox"]:checked ~ .payment-content {
    border: 2px solid #23517e;
    background-color: #f3f8ff;
    box-shadow: 0 10px 18px rgba(35, 81, 126, 0.12);
}

/* Check no canto */
.payment-check {
    position: absolute;
    top: 8px;
    right: 8px;

    width: 22px;
    height: 22px;
    border-radius: 999px;

    background: #23517e;
    color: #ffffff;
    font-weight: 900;
    font-size: 14px;
    line-height: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 2px solid #ffffff;
    box-shadow: 0 10px 18px rgba(35, 81, 126, 0.18);

    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
}

/* Exibe o check quando marcado */
.payment-card input[type="checkbox"]:checked ~ .payment-check {
    opacity: 1;
    transform: scale(1);
}

.payment-icon {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.payment-name {
    font-weight: 600;
    font-size: 13px;
    color: #2a2f36;
}

.payment-comment {
    font-size: 12px;
    color: #7a8494;
}

/* Responsivo para mobile */
@media (max-width: 600px) {
    .payment-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .payment-icon {
        width: 36px;
        height: 36px;
    }

    .payment-name {
        font-size: 12px;
    }
}

/* =======================================================================================
   SEÇÃO DE CONTEÚDO (card central)
======================================================================================= */
section#content-background {
    padding: 60px 15px;
    position: relative;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* ---------- CARD moderno ---------- */
.form-card {
    background: #ffffff;
    border: 1px solid #e6e9ee;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

#conversion {
    background-color: #ffffff;
    border-width: 1px;
    border-color: #e6e9ee;
    border-style: solid;
    border-radius: 12px;
}

/* Cabeçalho com gradiente e help link ajustado */
.form-card__header {
    position: relative;
    background: linear-gradient(135deg, #35619e 0%, #23517e 100%);
    color: #fff;
    padding: 22px 20px;
    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.form-card__title {
    margin: 0;
    font-weight: 800;
    line-height: 1.25;
    font-family: "Muli", "arial", sans-serif;
    font-size: 24px; /* ↑ Aumentado */
    letter-spacing: .2px;
}

/* Botão de ajuda — abaixo do título, alinhado à direita */
.btn-help-link {
    position: static;
    align-self: flex-end;
    display: inline-block;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 6px 10px;
    border-radius: 999px;
    text-decoration: none;
    transition: background .15s ease, transform .05s ease;
    margin-top: 2px;
}

.btn-help-link:hover {
    background: rgba(255, 255, 255, 0.25);
}

.btn-help-link:active {
    transform: translateY(1px);
}

/* Passos visuais */
.steps {
    margin: 2px auto 6px auto;
    padding: 0;
    list-style: none;
    display: table;
}

.steps li {
    display: inline-block;
    margin: 0 6px;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1;
    background: rgba(255, 255, 255, 0.15);
    color: #f0f4f8;
}

.steps li.active {
    background: #ffffff;
    color: #23517e;
    font-weight: 700;
}

/* Barra de progresso compacta */
.wizard-progress {
    position: relative;
    margin: 6px 0 0 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    height: 5px;
    overflow: hidden;
}

.wizard-progress__bar {
    height: 100%;
    width: 0;
    background: #26d4b8;
    transition: width .25s ease;
}

.wizard-progress__caption {
    font-size: 11px;
    color: #e8eef6;
    margin-top: 2px;
}

/* Corpo do formulário */
.form-card__body {
    padding: 24px;
}

/* Labels e campos */
#conversion section form label {
    display: block;
    min-height: 25px;
    margin: 0 0 6px 0;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    color: #2a2f36;
}

#conversion section form .field {
    margin-bottom: 16px;
}

#conversion section form .field-group {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

#conversion section form .field-group.align-right {
    justify-content: flex-end;
}

#conversion section form .field-group .field {
    flex: 1;
    margin: 0;
}

#conversion section form .field-group .field.half {
    flex: 1;
}

#conversion section form .field-group .field.third {
    flex: .34;
}

#conversion section form .field-group .field.two-thirds {
    flex: .66;
}

/* Inputs e Select — altura adequada para não cortar texto */
#conversion section form input.form-control,
#conversion section form select.form-control,
#conversion #conversion-form input,
#conversion #conversion-form textarea,
#conversion #conversion-form select {
    width: 100%;
    border: 1px solid #dfe5ec;
    background: #f9fbfd;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.4;
    min-height: 44px; /* altura mínima confortável */
    height: 44px; /* garante consistência */
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
    outline: none;
}

/* Corrige especificamente o select para não “cortar” o texto */
#conversion section form select.form-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-clip: padding-box;
    padding-right: 36px; /* espaço para a setinha */
}

/* Foco */
#conversion section form input.form-control:focus,
#conversion section form select.form-control:focus {
    border-color: #7cb5ff;
    box-shadow: 0 0 0 3px rgba(21, 112, 239, 0.12);
    background: #fff;
}

#conversion #conversion-form input[type="checkbox"] {
    margin-right: 7px;
}

/* Chips (checkbox list) */
.chips label {
    display: inline-block;
    margin: 4px 6px 6px 0;
    background: #eef3f8;
    color: #2a2f36;
    border: 1px solid #e0e6ed;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
    cursor: pointer;
}

.chips input {
    margin-right: 6px;
}

.chips.has-error {
    border: 1px solid #d9534f;
    padding: 4px;
    border-radius: 8px;
}

.wizard-step[data-step="4"] .produto-list {
    margin-bottom: 8px;
}

/* =======================================================================================
   CARDÁPIO (PRODUTOS / BEBIDAS)
======================================================================================= */

/* ===== Cardápio com categorias (Produtos / Bebidas) ===== */
.cardapio-categorias {
    display: flex;
    flex-direction: column; /* PRODUTOS em cima, BEBIDAS embaixo */
    gap: 16px;
    margin-bottom: 16px;
}

.categoria-cardapio {
    border: 1px solid #e6e9ee;
    border-radius: 12px;
    background: #f9fbfd;
    padding: 14px 16px;
}

.categoria-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.categoria-title {
    font-size: 14px;
    font-weight: 700;
    color: #23517e;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.categoria-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.categoria-select-wrapper {
    position: relative;
}

.categoria-select {
    min-width: 220px;
    padding: 8px 32px 8px 14px;
    font-size: 13px;
    background-color: #ffffff;
    border-radius: 999px; /* pill */
    border: 1px solid #d0d7e2;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    height: 40px;
}

.categoria-select-wrapper::after {
    content: "▾";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #6b7280;
    pointer-events: none;
}

/* ajuda opcional abaixo do select */
.categoria-help-text {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
}

.categoria-option {
    display: flex;
    margin-bottom: 10px;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #4b5563;
    cursor: pointer;
}

.categoria-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

/* Lista de itens (produtos / bebidas) */
.produto-list {
    display: grid;
    gap: 10px;
}

.checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* ===== Card de item de produto/bebida ===== */
.produto-item {
    position: relative;
    display: grid;
    grid-template-columns: 2fr 150px;
    grid-template-areas:
        "header header"
        "nome preco"
        "ingredientes ingredientes";
    column-gap: 12px;
    row-gap: 10px;
    border: 1px solid #e6e9ee;
    background: #fff;
    border-radius: 12px;
    padding: 12px;
}

.produto-item__header {
    grid-area: header;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding-bottom: 8px;
    border-bottom: 1px solid #eef2f7;
}

.produto-item__title {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #23517e;
}

/* Nome */
.produto-item .field-nome {
    grid-area: nome;
}

/* Preço */
.produto-item .field-preco {
    grid-area: preco;
}

.produto-item .field-preco label {
    font-size: 12px;
}

.produto-item .field-preco input {
    font-size: 13px;
    padding: 8px 10px;
    height: 40px;
}

/* Ingredientes – mesma “largura visual” de Nome+Preço */
.produto-item .ingredientes-field {
    grid-area: ingredientes;
}

.produto-item .ingredientes-field input {
    height: 40px; /* igual altura dos campos de cima */
}

.produto-remove {
    border: 1px solid #dfe5ec;
    background: #f8fafc;
    color: #475569;

    width: 36px;
    height: 36px;
    border-radius: 10px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease, transform .05s ease;
}

.produto-remove:active {
    transform: translateY(1px);
}

.produto-remove:hover {
    background: #ffe5e5;
    border-color: #ffcaca;
    color: #b10000;
}

.produto-remove__icon {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.produto-remove__text {
    white-space: nowrap;
}

/* Botão X */
.produto-item .btn-remove-produto {
    grid-area: remover;
    align-self: center;
    justify-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    border: 0;
    background: #ffe5e5;
    color: #b10000;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    padding: 0;
}

.produto-item .btn-remove-produto:hover {
    background: #ffcece;
}

.produto-item.sem-ingredientes {
    grid-template-areas:
        "header header"
        "nome preco";
}

@media (max-width: 500px) {
    .produto-item {
        grid-template-columns: 1fr;
        grid-template-areas:
            "header"
            "nome"
            "preco"
            "ingredientes";
    }

    .produto-item.sem-ingredientes {
        grid-template-areas:
            "header"
            "nome"
            "preco";
    }

    .produto-remove__text {
        display: none;
    }
}


/* animação de erro continua */
.produto-item.shake {
    animation: shake .4s;
}

/* =======================================================================================
   Botões gerais e ações do wizard
======================================================================================= */

.wizard-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.wizard-actions .btn-prev,
.wizard-actions .btn-next,
.btn-submit,
.btn-secondary {
    padding: 10px 14px;
    border-radius: 10px;
    border: 0;
    cursor: pointer;
    font-weight: 700;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Voltar */
.wizard-actions .btn-prev {
    background: #e8ecf2;
}

.wizard-actions .btn-prev::before {
    content: "←";
    font-size: 16px;
    line-height: 1;
}

/* Continuar */
.wizard-actions .btn-next {
    background: #23517e;
    color: #fff;
}

.wizard-actions .btn-next::after {
    content: "→";
    font-size: 16px;
    line-height: 1;
}

/* Outros */
.btn-secondary {
    background: #eef3f8;
}

.btn-submit {
    background: linear-gradient(135deg, #26d4b8, #18b8a0);
    color: #fff;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Mensagens de erro */
.has-error input, .has-error select {
    border-color: #d9534f;
}

.error-msg {
    margin-top: 6px;
    color: #a94442;
    font-size: 12px;
}

/* Lista de revisão (passo 6) */

.review-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
}

.review-section {
    border: 1px solid #e6e9ee;
    border-radius: 10px;
    background: #f9fbfd;
    padding: 12px 14px;
}

/* Card que deve ocupar a linha inteira em layouts maiores */

.review-section--full {
    /* em mobile já é 100%, isso aqui é mais pra desktop */
}

.review-section__title {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #23517e;
}

.review-title-main {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #111827;
}

.review-intro {
    font-size: 13px;
    color: #4b5563;
    margin: 0 0 12px;
}

.review-hint {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: #6b7280;
}

/* redefine a lista em si */

.review-list {
    list-style: none;
    margin: 0;
    padding-left: 0;
    font-size: 13px;
    color: #2a2f36;
}

.review-list li {
    display: flex;
    gap: 4px;
    padding: 3px 0;
    border-bottom: 1px dashed #e0e6ed;
}

.review-list li:last-child {
    border-bottom: none;
}

.review-list li strong {
    font-weight: 600;
}

/* Desktop: cards em 2 colunas, altura só do conteúdo */
@media (min-width: 768px) {
    .review-wrapper {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 18px 24px;
    }

    .review-section {
        flex: 1 1 calc(50% - 12px); /* 2 colunas */
        min-width: 260px;
    }

    .review-section--full {
        flex: 1 1 100%; /* Cardápio ocupa a linha inteira */
    }
}


/* Animações de troca de passo */

.animate-out-left {
    animation: outLeft .2s forwards ease;
}

.animate-out-right {
    animation: outRight .2s forwards ease;
}

.animate-in-left {
    animation: inLeft .25s forwards ease;
}

.animate-in-right {
    animation: inRight .25s forwards ease;
}

@keyframes outLeft {
    to {
        opacity: 0;
        transform: translateX(-12px);
    }
}

@keyframes outRight {
    to {
        opacity: 0;
        transform: translateX(12px);
    }
}

@keyframes inLeft {
    from {
        opacity: 0;
        transform: translateX(-12px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes inRight {
    from {
        opacity: 0;
        transform: translateX(12px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===================== ÁREA DE ENTREGA — layout em 2 linhas por item ===================== */

.delivery-table {
    display: grid;
    gap: 14px;
}

/* Header em duas linhas, alinhado à grade das linhas de dados */

.delivery-header {
    display: grid;
    grid-template-columns: 90px 1fr 1fr 36px; /* colunas base */
    grid-template-areas:
    "h-uf h-cidade h-bairro h-remove"
    "h-correspondente h-correspondente h-taxa h-remove";
    row-gap: 8px;
    column-gap: 12px;
    font-weight: 700;
    color: #2a2f36;
    font-size: 13px;
    padding: 4px 2px 0;
}

.delivery-header .header-uf {
    grid-area: h-uf;
}

.delivery-header .header-cidade {
    grid-area: h-cidade;
}

.delivery-header .header-bairro {
    grid-area: h-bairro;
}

.delivery-header .header-correspondente {
    grid-area: h-correspondente;
}

.delivery-header .header-taxa {
    grid-area: h-taxa;
}

.delivery-header .header-remove {
    grid-area: h-remove;
}

/* Linha (item) em duas linhas + botão ocupando 2 linhas */

.delivery-row {
    position: relative;
    display: grid;
    grid-template-columns: 90px 1fr 1fr 36px; /* UF | Cidade | Bairro | X */
    grid-template-areas:
    "uf cidade bairro remove"
    "tempo correspondente  taxa remove";
    row-gap: 12px;
    column-gap: 12px;

    border: 1px solid #e6e9ee;
    background: #fff;
    border-radius: 12px;
    padding: 16px;
}

.delivery-row .field {
    display: flex;
    flex-direction: column;
    gap: 6px; /* espaço entre label e campo */
}

/* Mapeia áreas */

.uf-field {
    grid-area: uf;
}

.cidade-field {
    grid-area: cidade;
}

.bairro-field {
    grid-area: bairro;
}

.tempo-field {
    grid-area: tempo;
}

.correspondente-field {
    grid-area: correspondente;
}

.taxa-field {
    grid-area: taxa;
}

@media (min-width: 721px) {
    .delivery-header {
        display: grid;
        position: sticky;
        top: 0;
        z-index: 1;
        background: #fff;
        border: 1px solid #e6e9ee;
        border-radius: 12px;
        padding: 10px 14px;
    }
}

.delivery-row .btn-remove-entrega {
    grid-area: remove;
    align-self: center;
    justify-self: center;
    border: 0;
    background: #ffe5e5;
    color: #b10000;
    border-radius: 8px;
    cursor: pointer;
    height: 36px;
    width: 36px;
}


.delivery-row .field .field-label {
    font-size: 12px;
    line-height: 1.2;
    font-weight: 600;
    color: #667085; /* cinza suave */
    margin: 0;
}

.delivery-header {
    display: none;
}

/* Erros por campo */

.delivery-row .field.has-error input {
    border-color: #d9534f;
}

.delivery-row .field .error-msg {
    margin-top: 6px;
    color: #a94442;
    font-size: 12px;
}

/* --------- Responsivo --------- */
@media (max-width: 980px) {
    .delivery-header,
    .delivery-row {
        grid-template-columns: 70px 1fr 1fr 32px;
        column-gap: 10px;
    }
}

@media (max-width: 720px) {
    .delivery-header {
        display: none;
    }

    .delivery-row {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
      "uf cidade"
      "bairro bairro"
      "correspondente correspondente"
      "tempo taxa"
      "remove remove";
    }

    .delivery-row .btn-remove-entrega {
        justify-self: end;
    }
}


/* =======================================================================================
   FOOTER
======================================================================================= */

footer#footer-background {
    background: #202020;
    padding: 40px 15px;
    text-align: center;
}

.footer--text {
    font-size: 13px;
    color: #fff;
    margin-bottom: 10px;
}

.footer--text p {
    margin: 0;
}

/* =======================================================================================
   RESPONSIVIDADE GLOBAL
======================================================================================= */
@media (max-width: 900px) {
    .delivery-header {
        grid-template-columns: 60px 1fr 1fr 1.2fr 110px 110px 32px;
        gap: 8px;
        font-size: 12px;
    }

    .delivery-row {
        grid-template-columns: 60px 1fr 1fr 1.2fr 110px 110px 32px;
        gap: 8px;
        padding: 10px;
    }

    .delivery-row .btn-remove-entrega {
        height: 32px;
        width: 32px;
    }
}

@media (max-width: 640px) {
    .delivery-header {
        display: none;
    }

    .delivery-row {
        grid-template-columns: 1fr 1fr;
    }

    .delivery-row .uf-field {
        grid-column: span 1;
    }

    .delivery-row .cidade-field {
        grid-column: span 1;
    }

    .delivery-row .bairro-field {
        grid-column: span 2;
    }

    .delivery-row .correspondente-field {
        grid-column: span 2;
    }

    .delivery-row .tempo-field {
        grid-column: span 1;
    }

    .delivery-row .taxa-field {
        grid-column: span 1;
    }

    .delivery-row .btn-remove-entrega {
        grid-column: span 2;
        justify-self: end;
    }
}

@media (max-width: 480px) {
    section#banner-background {
        min-height: 220px;
        padding: 20px 12px 32px;
    }

    h1#banner-title {
        margin: 24px auto 6px;
        font-size: 28px;
    }

    .form-card__title {
        font-size: 20px;
    }
}

/* ============================================
   Tela de cadastro concluído / card de sucesso
============================================ */

.form-card__subtitle {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: #e8eef6;
}

.success-summary {
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 16px;
}

.success-summary strong {
    font-weight: 700;
    color: #111827;
}

/* Inputs somente leitura na tela de sucesso */

#conversion section form input.form-control[readonly] {
    background: #f3f4f6;
    cursor: default;
}

/* Texto do timer / dicas abaixo do botão */

.success-timer {
    margin-top: 10px;
    font-size: 12px;
    color: #6b7280;
    text-align: center;
}

.success-help {
    margin-top: 4px;
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
}

.success-help a {
    color: #23517e;
    font-weight: 600;
    text-decoration: none;
}

.success-help a:hover {
    text-decoration: underline;
}

/* =========================
   WhatsApp Floating Help Button
========================= */
.wa-fab {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9999;

    display: inline-flex;
    align-items: center;
    gap: 12px;

    padding: 10px 12px 10px 14px;
    border-radius: 999px;

    background: #25D366; /* WhatsApp green */
    color: #ffffff;
    text-decoration: none;

    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.wa-fab:hover {
    transform: translateY(-2px);
    filter: brightness(1.02);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.26);
}

.wa-fab:active {
    transform: translateY(0);
}

.wa-fab__text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    white-space: nowrap;
}

.wa-fab__micro {
    font-size: 11px;
    font-weight: 700;
    opacity: 0.92;
}

.wa-fab__main {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .2px;
}

.wa-fab__icon {
    width: 44px;
    height: 44px;
    border-radius: 999px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.10);
    flex: 0 0 44px;
}

.wa-fab__icon svg {
    display: block;
}

.wa-fab__img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
}

@media (max-width: 480px) {
    .wa-fab {
        width: 56px;
        height: 56px;
        padding: 0;
        border-radius: 999px;
        justify-content: center;
        gap: 0;
    }

    .wa-fab__text {
        display: none;
    }

    .wa-fab__icon {
        width: 56px;
        height: 56px;
        background: transparent;
    }
}

/* ==============================
   Tipografia — hierarquia global
================================ */
:root {
    --text-strong: #111827;
    --text: #374151;
    --muted: #6b7280;
    --muted-2: #9ca3af;

    --brand: #23517e;
    --brand-2: #35619e;

    --radius-lg: 12px;
}

body {
    font-family: "Muli", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
    letter-spacing: 0.1px;
}

/* Links */
a {
    color: var(--brand);
}

a:hover {
    color: #1b4267;
}

/* ==============================
   Banner — H1
================================ */
h1#banner-title {
    font-family: "Muli", "arial", sans-serif;
    color: #fff;
    font-weight: 800;
    margin: 32px 0 0 0;
    letter-spacing: -0.3px;
    line-height: 1.1;
    font-size: 40px; /* desktop */
    text-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}

/* Ajuste responsivo do H1 */
@media (max-width: 480px) {
    h1#banner-title {
        font-size: 30px;
    }
}

/* ==============================
   Coluna esquerda — H2 + textos
================================ */
.tagline {
    margin: 0 0 10px 0;
    font-family: "Muli", "arial", sans-serif;
    font-weight: 800;
    color: var(--text-strong);
    letter-spacing: -0.2px;
    line-height: 1.2;
    font-size: 28px;
    max-width: 46ch;
}

#content-description p,
#contact-description p,
.topic--text p {
    margin: 0 0 10px 0;
    color: var(--text);
    font-size: 15px;
    line-height: 1.65;
    max-width: 60ch;
}

#contact-description p {
    color: var(--muted);
    margin-top: 12px;
}

.section--list {
    list-style: none;
    padding-left: 0;
    margin: 10px 0 0 0;
}

.section--list .topic--text p {
    margin: 0 0 6px 0;
    font-weight: 600;
    color: var(--text-strong);
}

/* ==============================
   Card (direita) — títulos e textos
================================ */
.form-card__title {
    margin: 0;
    font-weight: 900;
    line-height: 1.15;
    font-family: "Muli", "arial", sans-serif;
    font-size: 22px;
    letter-spacing: -0.2px;
}

.form-card__subtitle {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: rgba(232, 238, 246, 0.92);
    line-height: 1.45;
}

.success-summary {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 16px;

    background: #f9fbfd;
    border: 1px solid #e6e9ee;
    border-radius: 12px;
    padding: 12px 12px;
}

.success-summary p {
    margin: 0;
}

.success-summary strong {
    font-weight: 800;
    color: var(--text-strong);
}

#conversion section form label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #475569;
}

#conversion section form input.form-control[readonly] {
    background: #f3f4f6;
    cursor: default;
    color: #111827;
    font-weight: 700;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    letter-spacing: 0.2px;
}

/* ==============================
   CTA primário — “Acessar o sistema agora”
================================ */
.btn-submit {
    background: linear-gradient(135deg, #26d4b8, #18b8a0);
    color: #fff;
    width: 100%;
    min-height: 46px;

    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.2px;

    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(24, 184, 160, 0.22);
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.btn-submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.02);
    box-shadow: 0 12px 26px rgba(24, 184, 160, 0.28);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(38, 212, 184, 0.25), 0 12px 26px rgba(24, 184, 160, 0.28);
}

.success-timer {
    margin-top: 12px;
    font-size: 12px;
    color: var(--muted);
    text-align: center;
    line-height: 1.5;
}

.success-help {
    margin-top: 6px;
    font-size: 12px;
    color: var(--muted-2);
    text-align: center;
    line-height: 1.5;
}

.success-help a {
    color: var(--brand);
    font-weight: 800;
    text-decoration: none;
}

.success-help a:hover {
    text-decoration: underline;
}

#conversion section form .field-group {
    flex-wrap: wrap;
}

#conversion section form .field-group .field {
    min-width: 0;
}

/* Define comportamento das colunas no wrap */
#conversion section form .field-group .field.half {
    flex: 1 1 240px;
}

#conversion section form .field-group .field.quarter {
    flex: 1 1 160px;
}

@media (max-width: 520px) {
    #conversion section form .field-group {
        flex-direction: column;
    }
}

*, *::before, *::after {
    box-sizing: border-box;
}

@media (max-width: 520px) {
    #conversion section form .field-group {
        flex-direction: column;
        gap: 14px;
        margin-bottom: 14px;
    }

    #conversion section form .field-group .field.half,
    #conversion section form .field-group .field.quarter,
    #conversion section form .field-group .field.third,
    #conversion section form .field-group .field.two-thirds {
        flex: 0 0 auto;
        width: 100%;
    }
}

.categoria-title-wrapper,
.categoria-select-wrapper {
    min-width: 0;
    max-width: 100%;
}

.categoria-select {
    min-width: 0;
    max-width: 100%;
}

@media (max-width: 600px) {
    .categoria-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .categoria-title-wrapper {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .categoria-select-wrapper {
        width: 100%;
    }

    .categoria-select {
        width: 100%;
    }

    .categoria-cardapio .categoria-header .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* ============================
   3.1 Wizard steps + progress
============================ */

/* Barra + texto ao lado */
.wizard-progress-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.wizard-progress {
    flex: 1;
    height: 12px;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    overflow: hidden;
    min-width: 120px;
}

.wizard-progress__bar {
    height: 100%;
    width: 0;
    background: #26d4b8;
    transition: width .25s ease;
}

.wizard-progress__caption {
    font-size: 12px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.95);
    white-space: normal;
    line-height: 1.2;
    text-align: right;
}

.steps {
    margin: 10px auto 0;
    padding: 0;
    list-style: none;

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;

    max-width: 100%;
}

.steps li {
    margin: 0;
    padding: 0;
}

.step-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    border-radius: 999px;
    padding: 6px 10px;

    font-size: 12px;
    font-weight: 900;
    letter-spacing: .02em;

    border: 1px solid rgba(255, 255, 255, 0.40);
    background: transparent;
    color: rgba(255, 255, 255, 0.92);

    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .05s ease, opacity .15s ease;
}

.step-chip:active {
    transform: translateY(1px);
}

.step-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.step-chip.is-upcoming {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.40);
}

.step-chip.is-upcoming .step-icon::before {
    content: "○";
    font-size: 12px;
    line-height: 1;
    opacity: 0.95;
}

.step-chip.is-active {
    background: #ffffff;
    border-color: #ffffff;
    color: #23517e;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
}

.step-chip.is-active .step-icon::before {
    content: "●";
    font-size: 10px;
    line-height: 1;
}

.step-chip.is-done {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.58);
    color: rgba(255, 255, 255, 0.95);
}

.step-chip.is-done .step-icon::before {
    content: "✓";
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.step-chip.is-locked {
    opacity: 0.55;
    cursor: default;
    pointer-events: none;
}

@media (max-width: 640px) {
    .steps {
        justify-content: center;
        flex-wrap: wrap;
        overflow-x: visible;
        padding: 0;
        margin: 10px auto 0;
        gap: 8px;
        row-gap: 8px;
    }

    .step-chip {
        flex: 0 0 auto;
        font-size: 11px;
        padding: 6px 9px;
    }

    .wizard-progress-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .wizard-progress {
        height: 10px;
        background: rgba(255, 255, 255, .22);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
    }

    .wizard-progress__bar {
        border-radius: inherit;
        min-width: 10px;
    }

    .wizard-progress__caption {
        text-align: center;
    }
}

/* =======================================================================================
   MICRORESUMOS (colapsados) durante o fluxo
======================================================================================= */

.micro-summary-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 6px 0 14px;
}

.micro-summary {
    border: 1px solid #e6e9ee;
    background: #f9fbfd;
    border-radius: 12px;
    padding: 10px 12px;
}

.micro-summary__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.micro-summary__text {
    font-size: 13px;
    font-weight: 900;
    color: #111827;
    line-height: 1.25;
}

.micro-summary__toggle {
    background: transparent;
    border: 0;
    padding: 0;
    font-size: 12px;
    font-weight: 900;
    color: var(--brand);
    cursor: pointer;
    text-decoration: underline;
}

.micro-summary__toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(21, 112, 239, 0.12);
    border-radius: 8px;
}

.micro-summary__details {
    margin-top: 8px;
}

.micro-summary__list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 12px;
    color: #374151;
}

.micro-summary__list li {
    padding: 4px 0;
    border-bottom: 1px dashed #e0e6ed;
}

.micro-summary__list li:last-child {
    border-bottom: none;
}

.step-subtitle {
    margin: 0 0 14px 0;
    font-size: 13px;
    line-height: 1.5;
    color: #4b5563; /* muted */
}

.privacy-micro {
    margin: 8px 0 0 0;
    font-size: 12px;
    line-height: 1.45;
    color: #6b7280; /* muted-2 */
}

.field-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.35;
    color: #6b7280;
}

#conversion section form select#estado.form-control {
    text-transform: uppercase;
    text-align: center;
    font-weight: 800;
    letter-spacing: 0.08em;
}


/* =======================================================================================
   SEÇÕES DO FORMULÁRIO (títulos sutis)
======================================================================================= */

.form-section {
    padding-top: 10px;
    margin-top: 14px;
    border-top: 1px solid #eef2f7;
}

.form-section:first-child {
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
}

.form-section__title {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b; /* cinza suave */
}

#conversion section form .field-group .field.w-xxs {
    flex: 0 0 76px; /* ~2 chars + padding */
    max-width: 96px;
}

#conversion section form .field-group .field.w-xs {
    flex: 0 1 140px;
    max-width: 180px;
}

#conversion section form .field-group .field.w-sm {
    flex: 1 1 180px;
    max-width: 260px;
}

#conversion section form .field-group .field.w-md {
    flex: 1 1 240px;
    max-width: 360px;
}

#conversion section form .field-group .field.w-lg {
    flex: 1 1 360px;
}

#conversion section form .field-group .field.w-fluid {
    flex: 999 1 320px;
    min-width: 260px;
}

#conversion section form .field-group .field.w-full {
    flex: 0 0 100%;
    width: 100%;
}

#estado {
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.08em;
}

@media (max-width: 520px) {
    #conversion section form .field-group .field.w-xxs,
    #conversion section form .field-group .field.w-xs,
    #conversion section form .field-group .field.w-sm,
    #conversion section form .field-group .field.w-md,
    #conversion section form .field-group .field.w-lg,
    #conversion section form .field-group .field.w-fluid,
    #conversion section form .field-group .field.w-full {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
}

/* Botão abaixo da tabela */
.delivery-actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-start;
}

/* Labels mais curtos e alinhados */
.delivery-row .field .field-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Tooltip (?) */
.hint {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid #d0d7e2;
    background: #f3f8ff;
    color: #23517e;
    font-weight: 900;
    font-size: 12px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hint:hover,
.hint:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(21, 112, 239, 0.12);
}

/* Tooltip bubble */
.hint::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%);
    width: 260px;
    max-width: 70vw;
    background: #111827;
    color: #fff;
    font-size: 12px;
    line-height: 1.35;
    padding: 10px 10px;
    border-radius: 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .12s ease, transform .12s ease;
    transform: translateX(-50%) translateY(4px);
    z-index: 20;
}

.hint::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(100% + 4px);
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #111827;
    opacity: 0;
    transition: opacity .12s ease;
    z-index: 21;
}

.hint:hover::after,
.hint:focus::after,
.hint:hover::before,
.hint:focus::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Highlight suave ao adicionar linha */
.delivery-row.is-added {
    animation: entregaFlash .9s ease-out;
}

@keyframes entregaFlash {
    0% {
        box-shadow: 0 0 0 0 rgba(38, 212, 184, 0.0);
        border-color: #cfeee9;
        background: #f2fffb;
    }
    100% {
        box-shadow: 0 0 0 10px rgba(38, 212, 184, 0.0);
        border-color: #e6e9ee;
        background: #fff;
    }
}

/* Toast com “Desfazer” */
.toast-host {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 99999;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #111827;
    color: #fff;
    border-radius: 12px;
    padding: 10px 12px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .25);
    max-width: 520px;
    width: 100%;
}

.toast__text {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, .95);
    flex: 1;
}

.toast__action {
    border: 0;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-weight: 900;
    font-size: 12px;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
}

.toast__action:hover {
    background: rgba(255, 255, 255, .18);
}

/* ============================================
   Sucesso (login gerado): email note + copy + next steps
============================================ */

.success-login .field {
    text-align: center; /* centraliza rótulo/feedback */
}

.success-login label {
    text-align: center;
}

.success-login input.form-control[readonly] {
    text-align: center; /* valores centrados */
}

.input-with-action {
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-with-action input {
    flex: 1 1 auto;
    min-width: 0;
}

/* Botão copiar */
.copy-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid #dfe5ec;
    background: #ffffff;
    cursor: pointer;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    transition: transform .08s ease, box-shadow .12s ease, border-color .12s ease, background-color .12s ease;
}

.copy-btn:active {
    transform: translateY(1px);
}

.copy-btn:hover {
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
    border-color: #cfd8e3;
}

.copy-btn__icon {
    width: 18px;
    height: 18px;
    fill: #23517e;
}

.copy-btn.is-copied {
    border-color: #26d4b8;
    background: #f2fffb;
    box-shadow: 0 10px 18px rgba(24, 184, 160, 0.16);
}

.copy-btn.is-copied .copy-btn__icon {
    fill: #18b8a0;
}

.copy-feedback {
    min-height: 16px;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 800;
    color: #18b8a0;
    text-align: center;
}

.success-email-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    margin: 10px 0 12px;
    padding: 10px 12px;

    background: #f9fbfd;
    border: 1px solid #e6e9ee;
    border-radius: 12px;

    font-size: 12px;
    color: #4b5563;
}

.success-email-note__icon {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: #eef3f8;
    color: #23517e;
    font-weight: 900;
}

.success-email-note__text {
    line-height: 1.35;
}

.btn-submit--cta {
    min-height: 52px;
    font-size: 15px;
}

.wizard-actions--success {
    justify-content: center;
}

.next-steps {
    margin-top: 14px;
    padding: 12px 12px;

    background: #f9fbfd;
    border: 1px solid #e6e9ee;
    border-radius: 12px;
}

.next-steps__title {
    margin: 0 0 8px 0;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #23517e;
    text-align: center;
}

.next-steps__list {
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
    color: #374151;
    line-height: 1.55;
}

.next-steps__list li {
    margin: 6px 0;
}

@media (max-width: 360px) {
    .input-with-action {
        flex-direction: column;
        align-items: stretch;
    }

    .copy-btn {
        width: 100%;
    }
}
