﻿
:root {
    --primary: #28a745;
    --secondary: #f8f9fa;
    --accent: #198754;
    --header: #3A180C;
    --heigth-nav: 65px;
    --fundo: #123324;
    --fundo-RGB-values: 18,51,36;
    --velocidade-transition-carousel: 5s;
    --cs-verde-primario: #BAB540;
    --cs-marrom-escuro: #3a180c;
    --cs-marrom-medio: #823d2a;
    --cs-verde-limao: #bab642;
    --cs-verde-limao-hover: #8c932d;
    --cs-verde-escuro: #123523;
    --cs-bege-claro: #fcf3ec;
    --cs-bege-medio: #ffead5;
    --cs-fundo-secoes: #fffbf8;
    --cs-branco: #ffffff;
    --cs-preto: #000000;
    --cs-fundo-campo: #ebe2d9;
    --cs-border-color: #F1E7DE;
    --cs-cinza-escuro: #221F1E;
    --cs-fundo-card-produtos: #fcfcfc;
    --cs-nivel-grão: #BAB641;
    --cs-nivel-cacau: #3a7554;
    --cs-nivel-chocolate: var(--cs-marrom-medio);
    --cs-nivel-coracao: #a31f26;
    --cs-font-primary: "Sagona Bold", "Lato", sans-serif;
    --cs-font-secondary: "Sagona Book", "Lato", sans-serif;
    --cs-font-tertiary: "Sagona Light", "Lato", sans-serif;
    --cs-radius-small: 10px;
    --cs-radius-large: 30px;
    --cs-border-width: 1px;
    --cs-footer-bg: #3A0F09;
    --cs-footer-text: #FFFFFF;
    --cs-footer-link: #FFFFFF;
    --cs-footer-link-hv: #E1C675;
    --cs-footer-btm-bg: #2F0C07;
    --cs-font-size-h1: 2.5rem;
    --cs-font-size-h2: 2rem;
    --cs-font-size-h3: 1.5rem;
    --cs-font-size-body: 1rem;
    --cs-font-size-small: 0.875rem;
    --cs-line-height-title: 1.2;
    --cs-line-height-body: 1.6;
}

body {
    font-family: 'Sagona', Verdana, 'Segoe UI', Tahoma, Geneva, sans-serif;
    line-height: 1.6;
    padding-top: var(--heigth-nav);
    background-color: var(--fundo);
}

nav.cabecalho {
    background-color: var(--header) !important;
    color: #FFFFFF;
}

.navbar-scrolled {
    background-color: rgba(255,255,255,0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.carousel-inicial {
    width: 100%;
    /*max-height: 1000px;*/
    overflow: hidden;
}


.carousel-inner,
.carousel-item {
    height: 100% !important;
}

    .carousel-item .d-flex {
        position: relative !important;
        overflow: hidden !important;
    }

    .carousel-item img {
        position: relative !important;
        z-index: 0 !important;
        width: 100%;
        height: 100%;
        object-fit: cover !important;
    }

.object-fit-cover {
    object-fit: cover !important;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-image: none !important;
    width: 60px !important;
    height: 60px !important;
}

    .carousel-control-prev-icon::before {
        content: '\f053';
        font-family: 'Font Awesome 7 Pro';
        font-weight: 900;
        font-size: 24px;
        color: #333;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .carousel-control-next-icon::before {
        content: '\f054';
        font-family: 'Font Awesome 7 Pro';
        font-weight: 900;
        font-size: 24px;
        color: #333;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

#carousel_institucional {
    width: 100%;
    aspect-ratio: 1493 / 600;
    max-height: 600px;
}

    #carousel_institucional .carousel-inner,
    #carousel_institucional .carousel-item {
        height: 100%;
    }

        #carousel_institucional .carousel-item img {
            width: 100%;
            height: 100%;
            object-fit: cover !important;
            object-position: center;
        }

.fade-overlay {
    position: absolute !important;
    inset: 0 !important;
    pointer-events: none !important;
    z-index: 1 !important;
    background: linear-gradient(270deg, transparent 0%, transparent 68%, rgba(18, 51, 36, 0.6) 74%, rgb(18 51 36) 88%, var(--fundo) 0%) !important;
}

    .fade-overlay.fade-bottom {
        position: absolute !important;
        inset: 0 !important;
        pointer-events: none !important;
        z-index: 1 !important;
        background: linear-gradient(180deg, transparent 0%, transparent 78%, rgba(18, 51, 36, 0.6) 91%, rgb(18 51 36) 100%, var(--fundo) 0%) !important;
    }

.texto-institucional {
    z-index: 2;
}

/* Prev/next nas extremidades — retângulo arredondado, fundo bem translúcido (estilo Figma) */
.cs-hero-control.carousel-control-prev,
.cs-hero-control.carousel-control-next {
    width: 44px;
    height: 44px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(4px);
    opacity: 0.3;
    transition: background-color .2s ease, opacity .2s ease;
}

.cs-hero-control.carousel-control-prev {
    left: 32px;
}

.cs-hero-control.carousel-control-next {
    right: 32px;
}

    .cs-hero-control.carousel-control-prev:hover,
    .cs-hero-control.carousel-control-next:hover {
        background: rgba(255, 255, 255, 0.08);
        opacity: 1;
    }

.cs-hero-control .carousel-control-prev-icon,
.cs-hero-control .carousel-control-next-icon {
    width: 24px !important;
    height: 24px !important;
}

    .cs-hero-control .carousel-control-prev-icon::before,
    .cs-hero-control .carousel-control-next-icon::before {
        color: #fff;
        font-size: 16px;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    }

@media (max-width: 575.98px) {
    .cs-hero-control.carousel-control-prev {
        left: 8px;
    }

    .cs-hero-control.carousel-control-next {
        right: 8px;
    }
}

.carousel-indicators button {
    border-top: 0 !important;
    border-bottom: 0 !important;
    height: 7px !important;
    width: 106px !important;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    margin: 0 4px;
    position: relative;
    overflow: hidden;
}

    .carousel-indicators button::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 0%;
        height: 100%;
        background: linear-gradient(90deg, #FFD700, #FFA500);
        transition: width var(--velocidade-transition-carousel) linear;
        z-index: 1;
    }

    .carousel-indicators button.filling::before {
        width: 100% !important;
    }

    .carousel-indicators button.resetting::before {
        width: 0% !important;
        transition: width 0.5s ease-out;
    }

.form-control {
    background-color: #fff !important;
    color: var(--cs-marrom-escuro) !important;
    border-color: var(--cs-marrom-escuro) !important;
    padding: 10px 16px !important;
    font-weight: 400;
    border: 1.5px solid #AFAFBB !important;
    height: 40px !important;
    min-height: 40px !important;
    border-radius: 10px !important;
}

    .form-control:disabled,
    .form-control[readonly] {
        background-color: #e9ecef !important;
        opacity: 0.8;
    }

    .form-control:focus {
        border-color: var(--cs-verde-primario);
        box-shadow: 0 0 0 0.1rem var(--cs-verde-primario);
    }

.form-floating .form-control {
    padding-top: 18px !important;
    padding-bottom: 2px !important;
    border-color: #AFAFBB !important;
    border-width: 0.1rem !important;
}

.form-floating > label {
    padding-top: 10px !important;
    padding-bottom: 0 !important;
    line-height: 1.5;
    font-size: 0.9rem;
}

#form_inicio .btn,
#form_meio .btn,
#form_fim .btn {
    height: 40px !important;
    min-height: 40px !important;
}

.btn-contrato {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: var(--cs-radius-small) !important;
    color: #fff !important;
    font-weight: 700;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative;
}

    .btn-contrato:hover {
        background: rgba(255, 255, 255, 0.08) !important;
        color: #fff !important;
    }

    .btn-contrato .btn-contrato-icon {
        position: absolute;
        left: 16px;
    }

.col-md-9.col-lg-8.col-xl-7 {
    overflow: hidden;
    position: relative;
}

#form_inicio,
#form_meio,
#form_fim {
    max-width: 391px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

    #form_inicio article span {
        font-size: clamp(1.5rem, 1.1892rem + 1.0811vw, 2rem);
    }

    #form_inicio #endereco, #form_inicio #cidade, #form_inicio #uf {
        --cs-bege-claro: #c2c2c2;
    }

.form-check-input:checked {
    background-color: var(--cs-branco);
    border-color: var(--cs-branco);
    --bs-form-check-bg-image: var(--svg-check) !important;
}

.form-check-input:focus {
    border-color: var(--cs-verde-primario);
    box-shadow: 0 0 0 0.1rem var(--cs-verde-primario);
}

.check-termos {
    display: flex !important;
    align-items: center !important;
    padding-left: 0 !important;
    gap: 10px;
}

    /* Mesmo visual do "Recebi indicação de um amigo": checkbox branca com border default */
    .check-termos .form-check-input {
        float: none !important;
        margin: 0 !important;
        flex-shrink: 0;
    }

    .check-termos .form-check-label {
        font-size: 1rem;
        line-height: 1.4;
    }

        .check-termos .form-check-label a {
            color: inherit;
            text-decoration: underline;
        }

/* Bootstrap aplica .was-validated .form-check-input:valid|:invalid ~ .form-check-label { color: var(--bs-form-*-color) }
   (verde/vermelho) quando o form ganha was-validated. No tema escuro do cadastro isso quebra a leitura
   dos checkboxes "Recebi indicação" e "Li e aceito termos". Força branco em toda a seção; a sinalização
   de erro continua via .invalid-feedback (texto vermelho separado).
   Importante: a classe .was-validated é aplicada no <form>, que está DENTRO de .cadastro-usuario,
   por isso o seletor é .cadastro-usuario .was-validated (não o inverso). */
.cadastro-usuario .form-check-label,
.cadastro-usuario .was-validated .form-check-input:valid ~ .form-check-label,
.cadastro-usuario .was-validated .form-check-input:invalid ~ .form-check-label,
.cadastro-usuario .form-check-input.is-valid ~ .form-check-label,
.cadastro-usuario .form-check-input.is-invalid ~ .form-check-label {
    color: #fff !important;
}

/* Mesmo princípio para a cor da BORDA do checkbox: o Bootstrap pinta verde/vermelho via was-validated.
   Mantém a borda padrão escura igual ao checkIndicacao, sem feedback de cor no próprio checkbox. */
.cadastro-usuario .was-validated .form-check-input:valid,
.cadastro-usuario .was-validated .form-check-input:invalid,
.cadastro-usuario .form-check-input.is-valid,
.cadastro-usuario .form-check-input.is-invalid {
    border-color: var(--bs-border-color, #dee2e6) !important;
    background-color: #fff !important;
}

.btn-verde {
    background-color: var(--cs-verde-limao);
    color: #fff;
    font-weight: 700;
    height: 48px;
    min-width: 160px;
    border-radius: var(--cs-radius-small) !important;
    padding: 0 32px;
    font-size: 1rem;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .btn-verde:hover {
        color: #fff;
        background-color: var(--cs-verde-limao-hover);
        border-color: transparent;
    }

    /* Quando o botão ocupa a largura da coluna (w-100), o min-width:160px fixo estoura
       colunas estreitas no mobile (col-6 ≈ 144px em viewport 360px): o botão fica mais largo
       que a coluna, desalinha do botão ao lado e vaza à direita. Deixa o w-100 controlar a largura
       e reduz o padding lateral para o texto continuar centralizado sem overflow. */
    .btn-verde.w-100 {
        min-width: 0;
        padding-left: 12px;
        padding-right: 12px;
    }

.btn-outline-light {
    border-radius: var(--cs-radius-small) !important;
    border-color: #fff !important;
    color: #fff !important;
    font-weight: 700;
}

    .btn-outline-light:hover {
        background-color: rgba(255, 255, 255, 0.12) !important;
        color: #fff !important;
    }

/* Header: compact buttons matching Figma's 32px height */
nav.cabecalho .btn {
    height: auto;
    min-width: unset;
    padding: 6px 20px;
    font-family: Verdana, 'Segoe UI', Tahoma, Geneva, sans-serif;
    font-size: 12px;
}

/* Mobile: o logo (SVG 45x45 quadrado) está num <img> de 180px e fica centralizado,
   deixando ~66px de folga à esquerda. Deixa o box quadrado para encostar o logo na
   borda esquerda — simétrico ao botão "Entrar" na borda direita. */
@media (max-width: 991.98px) {
    nav.cabecalho .navbar-brand img {
        width: 48px;
    }
}

/* Yellow-green utility class used across sections */
.text-verde {
    color: var(--cs-verde-limao);
}

/* Foco Trial — applied to forms, CTAs per Figma */
.cadastro-usuario .form-control,
.cadastro-usuario .form-floating > label,
.cadastro-usuario .form-check-label,
.cadastro-usuario .btn,
.btn-apresentacao,
.calculadora .btn-calcular,
.nossa-historia .btn-verde,
.faq .btn-verde, .revende-outra-marca,
.text-calcule-lucratividade, .text-link-footer {
    font-family: 'Foco Trial', 'Sagona', Verdana, 'Segoe UI', Tahoma, Geneva, sans-serif;
}

.text-calcule-lucratividade {
    font-size: 20px;
    font-weight: 700;
}

.btn-calcular {
    height: 40px;
}

.revende-outra-marca {
    font-size: 1.3rem;
}

/* "Falar com um atendente" — must not stretch full width inside row-cols-1 */
.faq .row.row-cols-1 > .btn-verde,
.faq .row.row-cols-1 .btn-verde {
    width: auto;
    flex: 0 0 auto;
    align-self: center;
    margin-left: auto;
    margin-right: auto;
}

.btn-comunicacao {
    font-weight: 500;
}

/* Mobile estreito (até 480px): 3 botões em col-4 ficam com ~88px cada em 360px.
   Quando .ativo o ícone aparece — "WhatsApp" + ícone + margem + padding totaliza
   ~127px e estoura. Reduz font, padding e margem do ícone. */
@media (max-width: 480px) {
    .btn-comunicacao {
        font-size: clamp(0.7rem, 3vw, 0.9rem);
        padding: 6px 4px;
        min-width: 0;
        white-space: nowrap;
    }

        .btn-comunicacao i.logo-principal,
        .btn-comunicacao i.loading {
            font-size: 1em !important; /* sobrescreve fa-lg (1.33em) em mobile */
            margin-right: 0.25rem !important; /* sobrescreve .me-2 (0.5rem) */
        }
}

.btn-comunicacao.ativo {
    background: #32541F;
    color: #FFF;
    border-color: #7E8C40;
    border-width: 2px;
}

    .btn-comunicacao.ativo:hover {
        border-color: #7E8C40;
        color: #FFF;
        background: #476138;
    }

    .btn-comunicacao.ativo i.logo-principal {
        display: inherit !important;
    }

.btn-comunicacao.carregando i.loading {
    display: inherit !important;
}

/* Aviso "verifique o spam", exibido pelo landing.js só no canal de e-mail.
   O painel fica sobre o verde escuro do formulário, então text-muted do
   Bootstrap (#6c757d) não tem contraste suficiente aqui. */
.aviso-spam {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
    line-height: 1.35;
    text-align: center;
    color: rgba(255, 255, 255, 0.78);
}

.recebimento-codigo .btn-confirmar.loading i.fa-circle-check {
    display: none !important;
}

.recebimento-codigo .btn-confirmar.loading i.fa-circle-notch {
    display: inherit !important;
}

.inputs-pin input {
    width: 60px;
    height: 60px;
    text-align: center;
    font-weight: 600;
    font-size: 2rem;
    padding: 0 !important;
}

/* Mobile estreito (até 480px): 6 inputs × 60px + 5 gaps de 8px = 400px estoura
   o container do form (~312px em viewport 360). Distribui via flex e mantém
   quadrado por aspect-ratio. */
@media (max-width: 480px) {
    .inputs-pin {
        gap: clamp(4px, 1.5vw, 8px) !important;
        padding: 0 0.25rem;
    }

        .inputs-pin input {
            flex: 1 1 0;
            min-width: 0;
            width: auto;
            max-width: 60px;
            aspect-ratio: 1 / 1;
            height: auto !important;
            min-height: 0 !important;
            font-size: clamp(1.1rem, 6vw, 2rem);
        }
}



/* Contêiner do marquee */
.marquee {
    overflow: hidden;
    width: 100%;
    background-color: transparent; /* ajuste se quiser */
}

/* Linha de imagens duplicada */
.marquee__inner {
    display: flex;
    flex-wrap: nowrap;
    /* Largura 2x para permitir o loop */
    width: max-content;
    animation: marquee-scroll 30s linear infinite;
}

    /* Imagens lado a lado */
    .marquee__inner img {
        height: 160px; /* ajuste conforme layout */
        width: auto;
        flex-shrink: 0;
        margin-right: 1.5rem; /* espaçamento entre banners */
        object-fit: cover;
        border-radius: 0.5rem; /* opcional */
    }

/* Animação: move tudo da direita para a esquerda */
@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Pausar ao passar o mouse (opcional) */
.marquee:hover .marquee__inner {
    animation-play-state: paused;
}

/* Responsivo */
@media (max-width: 576px) {
    .marquee__inner img {
        height: 120px;
        margin-right: 1rem;
    }

    .marquee__inner {
        animation-duration: 20s; /* rola mais rápido no mobile */
    }

    .image-calculadora {
        max-width: 100% !important;
    }
}

.apresentacaoSwiper {
    width: 100%;
    padding: 60px 0;
    /* overflow-x: clip (e NÃO hidden) para recortar só na horizontal sem forçar
       overflow-y a 'auto'. Com hidden, o par visible/hidden faz o navegador computar
       overflow-y como auto, recortando o slide ativo ampliado (scale 1.2 = 360px) no
       topo/base. Com clip, overflow-y continua visible e a imagem ampliada transborda
       livre (cabe dentro da section, sem corte). */
    overflow-x: clip;
    overflow-y: visible;
    color: var(--cs-verde-limao);
}

    .apresentacaoSwiper .swiper-wrapper {
        align-items: center;
    }

    .apresentacaoSwiper .swiper-slide {
        width: auto;
        display: flex;
        justify-content: center;
        transition: transform 0.4s ease, opacity 0.4s ease;
        will-change: transform;
    }

        .apresentacaoSwiper .swiper-slide img {
            /* Altura fixa (todos os cards na mesma altura) + largura pelo aspecto = sem
               letterbox lateral. A imagem aparece INTEIRA (sem recorte) e a foto ocupa toda
               a largura do slide, então o gap entre fotos é exatamente o spaceBetween (16px). */
            height: 300px;
            width: auto;
            object-fit: contain;
            border-radius: 20px;
        }

/* Destaque do card central via scale (VISUAL, suave — não causa reflow/pulo no autoplay). */
.carousel-apresentacao .swiper-slide-active {
    transform: scale(1.1);
    opacity: 1;
}

.carousel-apresentacao .swiper-slide b,
.carousel-apresentacao .swiper-slide span {
    font-family: 'Sagona', Verdana, 'Segoe UI', Tahoma, Geneva, sans-serif;
}

.depoimentoSwiper .swiper-slide {
    width: 294px;
    display: flex;
    justify-content: center;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

    .depoimentoSwiper .swiper-slide img {
        width: 100%;
        border-radius: 10px;
    }

/* Fade na direita do swiper — esvanece os cards no fundo verde (mesmo efeito do
   mask-image da mulher de bolsa, mas como overlay até var(--fundo) para não apagar
   o botão "avançar", que fica por cima via z-index maior do Swiper). Igual ao Figma. */
.depoimentoSwiper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 160px;
    background: linear-gradient(to right, transparent, #1b4a32);
    pointer-events: none;
    z-index: 2;
    opacity: 1;
    transition: opacity .3s ease;
}

/* Some o fade na ÚLTIMA imagem (sem mais conteúdo à direita p/ indicar). A classe
   .depoimentos-fim é alternada via JS (landing.js) conforme swiper.isEnd. Mobile + desktop. */
.depoimentoSwiper.depoimentos-fim::after {
    opacity: 0;
}

/* Botões avançar/voltar do carrossel de depoimentos — FORA da área do swiper, nas
   guttters verdes ao lado dos cards (como no Figma). Por isso o seletor é
   .carousel-depoimentos (e não .depoimentoSwiper): os botões agora são irmãos do
   swiper, dentro de .col-12.position-relative. O swiper recua (margin-inline) para
   abrir espaço; os botões ancoram nas bordas da coluna. */
.carousel-depoimentos .depoimentoSwiper {
    margin-inline: 12px;
}

.carousel-depoimentos .swiper-button-next,
.carousel-depoimentos .swiper-button-prev {
    width: 32px;
    height: 32px;
    margin-top: 0;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0.4;
    transition: background-color .2s ease, opacity .2s ease;
}

.carousel-depoimentos .swiper-button-prev {
    left: 0;
    right: auto;
}

.carousel-depoimentos .swiper-button-next {
    right: 0;
    left: auto;
}

    .carousel-depoimentos .swiper-button-next:hover,
    .carousel-depoimentos .swiper-button-prev:hover {
        background: rgba(255, 255, 255, 0.5);
        opacity: 1;
    }

    .carousel-depoimentos .swiper-button-next::after,
    .carousel-depoimentos .swiper-button-prev::after {
        font-family: 'Font Awesome 7 Pro';
        font-weight: 900;
        font-size: 14px;
        color: #000;
    }

.carousel-depoimentos .swiper-button-prev::after {
    content: '\f053';
}

.carousel-depoimentos .swiper-button-next::after {
    content: '\f054';
}

.swiper img {
    object-fit: cover;
    height: 100%;
}

.text-apresentacao {
    color: var(--cs-branco);
}

.btn-apresentacao {
    width: 170px;
    font-family: 'Aptos';
    height: 40px;
}

.carousel-apresentacao {
    max-height: 600px;
}

/* Mobile/tablet: altura fixa cortava o swiper + botão (conteúdo ~646px em 400px).
   Deixa a seção crescer para mostrar tudo. */
@media (max-width: 768px) {
    .carousel-apresentacao {
        height: auto;
        max-height: none;
        display: flex;
        flex-direction: column;
    }

        /* Mobile: mensagem entre o swiper e o botão (swiper > mensagem > botão).
       No desktop mantém a ordem natural do DOM (mensagem acima do swiper). */
        .carousel-apresentacao .apresentacaoSwiper {
            order: 1;
        }

        .carousel-apresentacao .apresentacao-mensagem {
            order: 2;
            font-size: 24px !important;
        }

        .carousel-apresentacao > .container-fluid.text-center {
            order: 3;
        }
}

.carousel-jornada,
.carousel-beneficios {
    max-height: 1000px;
    overflow: hidden;
}

/* aspect-ratio reserva o espaço no layout antes da imagem carregar — atacando a raiz
       do CLS desktop (0.607) sem precisar mexer no endpoint /landing/imagem. */
#carousel_jornada,
#carousel_beneficios {
    width: 100%;
    aspect-ratio: 1493 / 600;
    max-height: 1000px;
}

.carousel-jornada .carousel-inner,
.carousel-jornada .carousel-item,
.carousel-beneficios .carousel-inner,
.carousel-beneficios .carousel-item {
    height: 100%;
    max-height: 1000px;
}

    .carousel-jornada .carousel-item img,
    .carousel-beneficios .carousel-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        max-height: 1000px;
        object-position: center;
    }

/* MOBILE: a arte mobile do banner deve aparecer INTEIRA — 100% de largura e altura natural
   (sem o crop do aspect-ratio 1493/600 nem object-fit:cover). A altura passa a acompanhar a
   proporção da imagem. Trade-off: sem caixa reservada, pode haver leve CLS quando a imagem carrega. */
@media (max-width: 768px) {
    #carousel_institucional,
    #carousel_jornada,
    #carousel_beneficios {
        aspect-ratio: auto;
        max-height: none;
    }

        #carousel_institucional .carousel-inner,
        #carousel_institucional .carousel-item,
        .carousel-jornada .carousel-inner,
        .carousel-jornada .carousel-item,
        .carousel-beneficios .carousel-inner,
        .carousel-beneficios .carousel-item {
            height: auto !important;
            max-height: none;
        }

            #carousel_institucional .carousel-item img,
            .carousel-jornada .carousel-item img,
            .carousel-beneficios .carousel-item img {
                width: 100%;
                height: auto;
                max-height: none;
                object-fit: contain;
            }
}

/* Hint de compositor em mobile (sem hover) para slides transladados. */
@media (hover: none) {
    .apresentacaoSwiper .swiper-slide,
    .depoimentoSwiper .swiper-slide {
        will-change: transform;
    }
}

.verde-lucro {
    color: var(--cs-verde-limao);
    font-size: 5rem;
    font-weight: 600;
    line-height: 1;
}

.text-lucros {
    font-size: 2rem;
    line-height: 1;
}

.image-calculadora {
    object-fit: cover;
    max-width: 492px;
}

.calculadora {
    position: relative;
}

.textura {
    position: absolute;
    z-index: -1;
    bottom: 0;
    width: 100%
}

.calculadora .textura::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient( to top, var(--fundo) 0%, rgba(var(--fundo-RGB-values),0.9) 30%, rgba(var(--fundo-RGB-values),0.6) 55%, rgba(var(--fundo-RGB-values),0.2) 75%, transparent 100% );
    pointer-events: none;
    z-index: 10;
}

.textura-img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Mobile: a textura do FAQ ("Ficou com alguma dúvida?") deve cobrir toda a altura da seção,
   não só a altura natural da arte no rodapé. .faq é position:relative, então top/bottom 0
   estica o container .textura e a .textura-img (height:100%) preenche tudo. */
@media (max-width: 768px) {
    .faq .textura {
        bottom: 0;
        height: 20%;
    }
}

.border-radius-10 {
    border-radius: 10px;
}

.valor-lucratividade {
    background: var(--cs-branco);
    font-family: 'Aptos';
}

    .valor-lucratividade b {
        font-size: 2rem;
        color: var(--cs-nivel-cacau);
    }

    .valor-lucratividade .text-label {
        font-size: 11px;
        color: var(--fundo);
        font-weight: 600;
    }

.fundo {
    position: absolute;
    bottom: 0;
    z-index: 1;
    height: 100%;
}

    .fundo img {
        height: 100%;
        width: 100%;
        object-fit: cover;
        border-radius: 10px;
    }

/* ── Tipografia aplicada ── */
.cadastro-usuario #form_inicio article span {
    font-size: clamp(1.4rem, 1.2rem + 0.8vw, 30px);
    line-height: 1;
}

/* Bloco fixo "Lucros de 33%" (substitui os textos do ADM lucro-text-principal/auxiliar) */
.calculadora .lucro-titulo {
    font-family: 'AppetitePro', 'Sagona', Verdana, 'Segoe UI', Tahoma, Geneva, sans-serif;
    color: var(--cs-bege-claro);
    font-size: 36px;
}

.calculadora .lucro-percentual {
    font-family: 'AppetitePro', 'Sagona', Verdana, 'Segoe UI', Tahoma, Geneva, sans-serif;
    font-weight: 700;
    color: var(--cs-verde-limao);
    font-size: 128px;
    line-height: 0.7;
}

.calculadora .lucro-sub {
    font-family: 'Aptos','Foco Trial', 'Sagona', Verdana, 'Segoe UI', Tahoma, Geneva, sans-serif;
    color: var(--cs-bege-claro);
    font-size: 1.25rem;
    line-height: 1.25;
}

.calculadora .lucro-sub-strong {
    font-weight: 700;
}

/* Mobile: bloco centralizado (referência mobile) */
@media (max-width: 768px) {
    .calculadora .lucro-bloco {
        text-align: center;
    }
}

.faq .container .pergunta {
    line-height: var(--cs-line-height-body);
}

.depoimentos {
    background-color: #1B4A32;
    /* flow-root: contém a margem do .container-fluid.mb-5 dentro da section. Sem isso
       a margem "vaza" (margin collapse) e o fundo do body (--fundo, verde mais escuro)
       aparece como uma faixa entre depoimentos e nossa-historia. */
    display: flow-root;
}

    .depoimentos .text-auxiliar {
        line-height: var(--cs-line-height-body);
    }
/* ────────────────────── */

#cadastro {
    scroll-margin-top: 70px;
}

.cadastro-usuario .container-fluid > .row,
.calculadora .container-fluid > .row {
    /*max-width: 1320px;*/
    margin-left: auto;
    margin-right: auto;
}

/* <picture> é flex-item sem largura definida → dimensionava-se ao tamanho
   intrínseco da imagem (644px) e estourava a tela no mobile. Dar largura
   definida faz o w-100 da <img> respeitar a coluna; o max-width:644px inline
   continua sendo o teto no desktop. */
.cadastro-usuario picture {
    display: block;
    width: 100%;
}

    .cadastro-usuario picture img {
        height: auto;
        margin-inline: auto; /* centraliza quando a coluna passa de 644px no desktop */
    }

.depoimentos .container-img {
    width: 100%;
    height: 600px;
    overflow: hidden;
}

    .depoimentos .container-img img {
        height: 100%;
        object-fit: contain;
        width: 100%;
        object-position: center bottom;
        display: block;
        /* Fade suave para transparente na base — só no desktop (mobile zera abaixo) */
        -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent 100%);
        mask-image: linear-gradient(to bottom, #000 65%, transparent 100%);
    }

/* DESKTOP: imagem da mulher maior, com os apóstrofes verdes sangrando levemente para fora
   da borda esquerda (como o Figma). O overflow:hidden no container-fluid recorta o sangramento
   e evita scroll horizontal. Mobile (≤768px) mantém o layout do bloco abaixo. */
@media (min-width: 769px) {
    .depoimentos .container-fluid {
        overflow: hidden;
    }

    .depoimentos .container-img {
        width: calc(100% + 60px);
        height: 640px;
        margin-left: -60px;
    }

        .depoimentos .container-img img {
            object-position: left bottom;
        }
}

.depoimentos .text-quantidade-revendedoras, .depoimentos .text-revendedoras {
    color: var(--cs-verde-limao);
    font-family: 'AppetitePro', 'Sagona', Verdana, 'Segoe UI', Tahoma, Geneva, sans-serif;
    font-weight: 700;
}

.depoimentos .text-quantidade-revendedoras {
    font-size: 3.5rem;
    line-height: 0.5;
}

.depoimentos .text-revendedoras {
    font-size: 2.2rem;
}

.depoimentos .text-auxiliar {
    font-family: 'Aptos', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 1.2rem;
    line-height: 1.3;
}

/* MOBILE: imagem da mulher de bolsa AO LADO do texto "+47 mil revendedoras", e o carrossel de
   depoimentos em largura total abaixo (como a referência). Em vez de mexer no DOM (que mudaria o
   desktop), dissolvemos a coluna direita com display:contents — assim imagem (A), texto (B1) e
   carrossel (B2) viram itens diretos da mesma .row e podem ser reorganizados só no mobile. */
@media (max-width: 768px) {
    .depoimentos .container-fluid > .row > .col-12.col-md-6 {
        display: contents;
    }

    /* imagem ao lado do texto */
    .depoimentos .container-fluid > .row > .col.text-center {
        flex: 0 0 42%;
        max-width: 42%;
        margin: 0;
    }

    /* Mobile: mostra a imagem inteira (mulher + bolsa + apóstrofes), sem corte —
       contain + altura automática deixa a arte na proporção natural dentro da coluna. */
    .depoimentos .container-img {
        height: auto;
    }

        .depoimentos .container-img img {
            height: auto;
            object-fit: contain;
            /* Mobile: sem o fade linear na base (só no desktop) */
            -webkit-mask-image: none;
            mask-image: none;
        }

    /* bloco de texto "+47 mil" ao lado da imagem */
    .depoimentos .row.flex-column.text-left {
        flex: 0 0 58%;
        max-width: 58%;
        margin: 0;
        align-self: center;
    }

    /* Mobile: alinhar o bloco de texto "+47 mil ..." à direita (no desktop fica como está). */
    .depoimentos .depoimentos-texto.text-left {
        text-align: right;
    }

    .depoimentos .text-quantidade-revendedoras {
        font-size: 2.4rem;
        line-height: 1;
    }

    .depoimentos .text-revendedoras {
        font-size: 1.6rem;
    }

    .depoimentos .text-auxiliar {
        font-size: 0.95rem;
    }

    /* carrossel de depoimentos em largura total, abaixo */
    .depoimentos .row.carousel-depoimentos {
        flex: 0 0 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        order: 1;
        /* Sobe 20px sobre a imagem da mulher de bolsa (só no mobile). */
        margin-top: -30px;
    }
}

.glass-glow {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 0 22px rgba(255, 255, 255, 0.35);
    border-radius: 0 0 10px 10px;
}

.carousel-depoimentos {
    font-family: 'Aptos', 'Foco Trial', 'Sagona', Verdana, 'Segoe UI', Tahoma, Geneva, sans-serif;
    font-size: 12px;
}

    .carousel-depoimentos .card {
        width: 294px;
        height: 351px;
        border-radius: 10px;
    }

        .carousel-depoimentos .card img {
            object-fit: cover;
            z-index: 0;
        }

    .carousel-depoimentos .card-footer {
        z-index: 1;
        background: #fefae491;
    }

    .carousel-depoimentos .nome-depoimento {
        font-weight: 700;
    }

    .carousel-depoimentos button:hover {
        transform: none;
    }

    /* Padrão accordion (igual ao FAQ): o texto colapsa com max-height 0 e expande para cima
       dentro do próprio card quando .open é aplicado ao .card. O nome permanece na base. */
    .carousel-depoimentos .sobre {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    .carousel-depoimentos .card.open .sobre {
        /* cabe dentro do card de 351px (texto + nome + padding) sem clipar o nome.
           overflow continua hidden (herdado): evita o flicker da barra de scroll que
           aparecia durante a animação do max-height (igual ao accordion do FAQ). */
        max-height: 280px;
    }

    /* Botão +/× na mesma linha do nome (flex justify-between + align-items-center),
       centralizado verticalmente com ele. O texto (.sobre) expande acima. */
    .carousel-depoimentos .btn-toggle-depoimento {
        flex: 0 0 auto;
        line-height: 1;
    }

        .carousel-depoimentos .btn-toggle-depoimento i {
            transition: transform 0.3s ease;
        }

    .carousel-depoimentos .card.open .btn-toggle-depoimento i {
        transform: rotate(45deg);
    }

.custom-text-justify {
    text-align: justify;
}

.nossa-historia {
    position: relative;
    background-color: #1B4A32;
    /* flow-root: contém a margem do .container-fluid.my-3 (topo), evitando faixa do fundo
       do body entre depoimentos e nossa-historia. */
    display: flow-root;
    /* Padrão decorativo de folhas ancorado à direita (fundo verde herdado do body) */
    background-image: url('../img/fundo-historia.png');
    background-repeat: no-repeat;
    background-position: top right;
    background-size: contain;
    /* Fade no FINAL da section — mesmo filtro da imagem da mulher de bolsa
       (mask-image fade-to-transparent na base): a section dissolve no fundo da página.
       padding-bottom abre uma faixa vazia abaixo do conteúdo (o botão "Eu quero Revender"
       fica ~no rodapé do conteúdo); o fade cobre só os 90px finais (a faixa vazia), então
       dissolve a borda no fundo sem apagar texto/botão. */
    padding-bottom: 6rem;
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 90px), transparent 100%);
    mask-image: linear-gradient(to bottom, #000 calc(100% - 90px), transparent 100%);
}

    /* Estrelas decorativas entre o texto e a foto (Figma: uma maior + uma menor) */
    .nossa-historia .historia-img-wrap {
        position: relative;
        display: inline-block;
        max-width: 100%;
    }

    .nossa-historia .historia-estrelas {
        position: absolute;
        top: 10%;
        left: -42px;
        z-index: 2;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        pointer-events: none;
    }

        .nossa-historia .historia-estrelas .estrela {
            display: block;
            height: auto;
        }

        .nossa-historia .historia-estrelas .estrela-grande {
            width: 64px; /* estrela.svg em tamanho natural (≈67px) */
        }

        .nossa-historia .historia-estrelas .estrela-pequena {
            width: 32px; /* metade — a estrela menor */
            margin-top: -4px;
            margin-left: 30px; /* desloca p/ direita, abaixo da maior (igual ao Figma) */
        }

@media (max-width: 767.98px) {
    .nossa-historia .historia-estrelas {
        display: none; /* decorativo — oculto no layout empilhado mobile */
    }
}

.nossa-historia .text-inicial {
    color: var(--cs-branco);
    font-family: 'AppetitePro', 'Sagona', Verdana, 'Segoe UI', Tahoma, Geneva, sans-serif;
    font-size: 2rem;
    line-height: 1.4;
    width: 50%;
}

.nossa-historia .text-verde {
    color: var(--cs-verde-limao);
    font-weight: 700;
}

/* Texto institucional "A história da Cacau..." em Aptos (substitui o Foco Trial anterior). */
#historia {
    font-family: 'Aptos', 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.7rem;
}

/* Mobile: título menor e centralizado, texto institucional menor, mais respiro lateral.
   Fica DEPOIS das regras base acima para vencer no font-size (mesma especificidade). */
@media (max-width: 767.98px) {
    .nossa-historia .container-fluid {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .nossa-historia .text-inicial {
        font-size: 1.5rem;
        line-height: 1.2;
        text-align: center;
        /* Equilibra o título em linhas de tamanho parecido (como no alvo) */
        text-wrap: balance;
        width: 100%;
    }

    /* O conteúdo vem do banco com <span style="font-size:24px"> inline;
       !important é necessário p/ sobrepor o estilo inline (só no mobile). */
    .nossa-historia #historia,
    .nossa-historia #historia * {
        font-size: 1rem !important;
        line-height: 1.35;
    }

    .nossa-historia {
    }
}

/* Até 1300px (faixa desktop lg, layout lado-a-lado), a imagem da loja CRESCE PARA A DIREITA
   até a borda da página: preenche a coluna (sem o cap de 492px e sem centralizar) e remove o
   padding direito do container e da própria coluna. Assim a borda direita da imagem encosta
   ~na borda da página, sem espaço sobrando. Acima de 1300px a regra não vale: a imagem volta
   ao cap (max-width:492px) e o espaço à direita reaparece — conforme pedido. */
@media (min-width: 992px) and (max-width: 1300px) {
    .nossa-historia .historia-img-wrap {
        display: block;
        width: 100%;
    }

    .nossa-historia .image-calculadora {
        width: 100%;
        max-width: none;
    }

    /* A coluna da imagem (última) sangra para a DIREITA até ~a borda da página:
       padding-right 0 + margin-right negativo baseado em vw (full-bleed à direita).
       O -8px compensa o padding do container sem estourar (evita scrollbar horizontal).
       A imagem (width:100%) acompanha, então cresce só para a direita até encostar na borda. */
    .nossa-historia .container-fluid > .row > [class*="col-"]:last-child {
        padding-right: 0;
        margin-right: calc(50% - 50vw - 22px);
    }
}

.faq {
    position: relative;
}

    .faq .title {
        color: var(--cs-branco);
        font-family: 'AppetitePro', 'Sagona', Verdana, 'Segoe UI', Tahoma, Geneva, sans-serif;
    }

    .faq .container .card {
        font-family: 'Aptos','Foco Trial', 'Sagona', Verdana, 'Segoe UI', Tahoma, Geneva, sans-serif;
    }

    .faq .container .pergunta {
        font-size: 1rem;
        line-height: normal !important;
    }

    .faq .container .card-title {
        cursor: pointer;
    }

    .faq .container .col.card:hover {
        background-color: var(--cs-bege-medio);
    }

    .faq .container .resposta {
        font-size: 0.9rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    .faq .container .card-title button i {
        transition: transform 0.3s ease;
    }

    .faq .container .col.card.open .resposta {
        max-height: 1000px;
    }

    .faq .container .col.card.open .card-title button i {
        transform: rotate(45deg);
    }

footer {
    color: var(--cs-branco);
    background-color: var(--cs-marrom-escuro);
}

    footer li {
        --bs-list-group-bg: var(--cs-marrom-escuro);
        border: 0 !important;
    }

        footer li a {
            color: var(--cs-branco);
            text-decoration: none;
        }

            footer li a:hover {
                text-decoration: underline;
            }

    footer .row {
        min-height: 240px;
    }

    footer img {
        max-height: 103px;
        max-width: 100%;
    }

    footer .text-final {
        font-size: 0.8rem;
    }

.grecaptcha-badge {
    z-index: 5;
}

.floating-btn-chat {
    position: fixed;
    bottom: 5px;
    right: 7px;
    width: 72px;
    height: 72px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    box-shadow: none;
    cursor: pointer;
    z-index: 9999;
    overflow: visible;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

    .floating-btn-chat::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 48px;
        height: 48px;
        background: var(--sprite-url) no-repeat left center;
        background-size: 288px 48px;
        animation: chat-animation 4.5s steps(6) infinite;
    }

    .floating-btn-chat:hover {
        transform: scale(1.1);
        background-color: rgba(255, 255, 255, 0.3);
    }

    .floating-btn-chat:active {
        transform: scale(0.95);
    }

.chat-tooltip {
    position: absolute;
    right: 85px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #ffffffd1;
    color: #1e4d2b;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

    .chat-tooltip::after {
        content: '';
        position: absolute;
        right: -6px;
        top: 50%;
        transform: translateY(-50%);
        width: 0;
        height: 0;
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
        border-left: 8px solid #ffffffd1;
    }

.floating-btn-chat:hover .chat-tooltip {
    opacity: 1;
    visibility: visible;
    right: 95px;
}

@keyframes chat-animation {
    to {
        background-position: -288px center;
    }
}

@media (max-width: 768px) {
    .floating-btn-chat {
        width: 56px;
        height: 56px;
        bottom: 5px; /* mesma posição do desktop */
        right: 7px;
    }

        .floating-btn-chat::before {
            width: 40px;
            height: 40px;
            background-size: 240px 40px;
        }

    @keyframes chat-animation {
        to {
            background-position: -240px center;
        }
    }

    .chat-tooltip {
        font-size: 13px;
        padding: 10px 16px;
        right: 75px;
        display: none !important; /* hover sem mouse não dispara; evita sobrepor banners */
    }

    .floating-btn-chat:hover .chat-tooltip {
        right: 80px;
    }

    /* Aviso legal do reCAPTCHA já é exibido em #form_fim (.recaptcha-legal), o que
       permite ocultar o badge em mobile conforme as próprias políticas do Google.
       Mantém o token gerável sem o overlay flutuante interferindo nos banners. */
    .grecaptcha-badge {
        visibility: hidden !important;
    }
}

/*--------------------*/

.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    background-color: #fff;
    border: 1px solid #ced4da;
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
    position: relative;
    user-select: none;
}

    .custom-select-trigger:focus {
        border-color: #86b7fe;
        outline: 0;
        box-shadow: 0 0 0 0.1rem var(--cs-verde-primario);
    }

.select-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    flex-shrink: 0;
}

/* reCAPTCHA Enterprise — badge oculto (continua executando, só esconde o selo).
   Google permite ocultar via CSS desde que o texto legal esteja visível no formulário. */
.grecaptcha-badge {
    visibility: hidden !important;
}


.select-text {
    flex: 1;
    font-weight: 500;
}

.select-arrow {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #333;
    transition: transform 0.2s;
}

.custom-select-trigger.active .select-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.custom-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--cs-bege-claro) !important;
    border: 1px solid #ced4da;
    border-top: none;
    border-radius: 10px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1050;
    display: none;
    box-shadow: 0 0 0 0.1rem var(--cs-verde-primario);
}

    .custom-select-options.show {
        display: block;
    }

.custom-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
    font-weight: 500;
    min-height: calc(3.5rem + 2px);
}

    .custom-option:hover {
        background-color: #f8f9fa;
    }

    .custom-option.selected {
        background-color: #FDF6CF;
        border-color: var(--cs-verde-primario) !important;
    }

        .custom-option.selected .check {
            display: block !important;
        }

.form-floating > .custom-select-wrapper .custom-select-trigger {
    min-height: calc(3.5rem + 2px);
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
}

#valorVenda {
    text-align: center;
    font-family: 'AppetitePro';
    font-size: 18px;
}

#niveis, #niveis-trigger, #niveis-options {
    font-family: 'AppetitePro';
    font-size: 18px;
}

.calc-label {
    display: block;
    font-size: 12px;
    color: #fff;
    margin-bottom: 4px;
    font-family: 'Aptos';
    text-align: center;
}

/* Iframe externo de cadastro (HeadOffice AI Chat) — substitui os formulários nativos.
   min-height reserva o espaço no carregamento (evita CLS); responsivo no mobile. */
.cadastro-iframe {
    width: 100%;
    max-width: 680px;
    min-height: 50rem;
    height: 85vh;
    border: 0;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    /* Âncora #frame-cadastro: ao rolar até o iframe, parar 30px acima do seu início,
       descontando a navbar fixa (fixed-top, --heigth-nav) que sobrepõe o topo. */
    scroll-margin-top: calc(var(--heigth-nav) + 30px);
}

@media (max-width: 768px) {
    .cadastro-iframe {
        max-width: 100%;
        min-height: 40rem;
        height: 80vh;
    }
}

.redirecionamento {
    background-color: #1b4332;
    padding: 60px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.redirecionamento__container {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 48px 56px;
    max-width: 359px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
}

.redirecionamento__icon {
    width: 72px;
    height: 72px;
    background: rgba(255, 200, 0, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f5c518;
    border: 1px solid rgba(245, 197, 24, 0.3);
}

.redirecionamento__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.3px;
}

.redirecionamento__text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin: 0;
}

    .redirecionamento__text strong {
        color: #ffffff;
        font-weight: 600;
    }

.redirecionamento__badge {
    background: rgba(245, 197, 24, 0.12);
    border: 1px solid rgba(245, 197, 24, 0.25);
    color: #f5c518;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    letter-spacing: 0.3px;
}

.mb-form {
    margin-bottom: 0.8rem;
}

/* Spinner inline no campo CEP enquanto a consulta /api/landing/cep está em andamento.
   Anel girando em CSS puro — sem depender do FontAwesome (que é carregado async).
   A classe is-loading é aplicada ao .form-floating (position:relative do Bootstrap). */
.form-floating.is-loading > #cep {
    padding-right: 38px;
}

.form-floating.is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 12px;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    border: 2px solid rgba(50, 84, 31, 0.25);
    border-top-color: var(--cs-verde-primario, #32541F);
    border-radius: 50%;
    animation: cep-spin 0.7s linear infinite;
    pointer-events: none;
    z-index: 4;
}

@keyframes cep-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== Animações de painel (paridade slideUp/Down do jQuery legacy) ===== */
.recebimento-codigo {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 320ms ease, opacity 280ms ease;
    pointer-events: none;
}

    .recebimento-codigo.is-open {
        max-height: 900px;
        opacity: 1;
        pointer-events: auto;
    }

/* Fade suave entre etapas form_inicio → form_meio → form_fim (no lugar do toggle de display cru) */
.form-fading {
    opacity: 0;
    transition: opacity 200ms ease;
    pointer-events: none;
}

.form-faded-in {
    opacity: 1;
    transition: opacity 220ms ease;
}
