@import url('https://googleapis.com');

* {
    margin:0;
    padding:0;
    box-sizing:border-box;
}

/* Esconde todas as barras de scroll da página */
* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Tira o flicker azul quando clica nos botões */
* {
    -webkit-tap-highlight-color: transparent;
}

*::-webkit-scrollbar {
    display: none;
}

html, body {
    background-color: #333333 !important;
    min-height: 100vh;
    color-scheme: dark;  /* Indica ao navegador para usar componentes nativos escuros */
    color: #E7E7E7;
    margin: 0;
    height: 100%;
    padding: 0;
    
    /* Impede o pull-to-refresh e o efeito elástico no topo/base */
    overscroll-behavior-y: none;
    
    /* Impede a seleção de texto */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE 10+ e Edge antigo */
    user-select: none;         /* Padrão (Chrome, Edge atual, Opera) */
}


body {
    font-family:'Inter',sans-serif;
    background-color: #333333 !important;
    color:#E7E7E7;
    overflow-x:hidden;
    opacity:0;
    transition:opacity 1.0s ease;
}

body.page-loaded{
    opacity:1;
}

/* ========================================================
    EFEITO VISUAL DE CLIQUE RÁPIDO
======================================================== */
.vibe.pisca:active,
.ploc.pisca:active {
    opacity: 0.4;
    transform: scale(0.98); /* Dá um micro efeito de afundar o botão */
    transition: transform 0.05s ease, opacity 0.05s ease;
}


/* ========================================================
    PARA TEXTOS SIMULANDO ALT DAS IMAGENS DA CSS 
======================================================== */
/* Esta classe esconde o texto da tela de forma segura para o SEO */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}


/* ========================================================
    GATILHO PARA PASSAR COM CLIQUES NO CALCULO 
======================================================== */
#gatilhoSecreto {
    position: fixed;
    top: 0;
    right: 0;
    width: 80px;
    height: 70px;
    z-index: 999999; /* Aumentamos o z-index para garantir que fique por cima de tudo */
    
    /*  APENAS PARA TESTE (Remova depois) 
    background-color: rgba(255, 0, 0, 0.4); 
    border: 2px solid red;                  
    cursor: pointer;  */                      
}


/* HERO */
.hero {
    position: relative;
    width: 100%;
    min-height: 80vh;
    
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px 20px;
    z-index: 1; /* Garante que o container crie um contexto de camada */
    
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero.loaded {
    opacity: 1;
    transform: translateY(0);
}

.hero-content{ 
    margin-top: -150px;
    position:relative;
    z-index:2;

    width:100%;
    max-width:1200px;

    display:grid;
    grid-template-columns:1fr 420px;
    gap:40px;

    align-items:center;
}

/* LEFT */
.hero-left h1{
    line-height:1;
    margin-bottom:10px;
}

.hero-left h1 span1 {
    font-size:50px;
    color: #4B86CD;
}
.hero-left h1 span2 {
    font-size:46px;
    color: #E7E7E7;
}
.hero-left h1 span3 {
    font-size:36px;
    color: #E7E7E7;
}

.hero-left p {
    font-family: 'Roboto', sans-serif;
    font-size:16px;
    color:#ddd;
    max-width:650px;
    line-height:1.4;
    z-index: 2;
}

.hero,
.banner-section,
.banner-section2 {
    position: relative;
    isolation: isolate;
}

/* img CARRO-HOMEM */
.banner-section {
    z-index: 1;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.banner-section.loaded {
    opacity: 1;
    transform: translateY(0);
}


/* img FRETE-CARGA */
.banner-section2 {
    z-index: 2;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.banner-section2.loaded {
    opacity: 1;
    transform: translateY(0);
}


/* 👇 Esta nova seção cuida do fundo isolado, aplicando a máscara só nele */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 85%;
    height: 100%;
    
    background: linear-gradient( rgba(0,0,0,.95), rgba(0,0,0,.72) ), url('https://cargo.loggesys.com/imagens/kangoo-background.png');
    background-size: cover;
    background-position: center;
    
    z-index: -1; /* Joga a imagem para trás do texto */

    /* Aqui fica a sua máscara radial que fecha o foco no centro */
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}



/* RIGHT */

.hero-right{
    display:flex;
    justify-content:center;
    flex-direction: column;
    align-items: center;
}




/* CARD */

.calc-card{
    width:100%;

    background:rgba(20,20,20,.88);

    border:1px solid rgba(255,255,255,.08);

    border-radius:26px;

    padding:28px;

    backdrop-filter:blur(12px);

    box-shadow:
        0 20px 60px rgba(0,0,0,.35);
}

/* BOTÕES */

.btn-main{
    width:100%;
    height:56px;

    border:none;
    border-radius:10px;

    cursor:pointer;

    font-size:20px;
    font-weight:700;

    transition:.25s;

    /* background:#ffd400; */
    background:#ECC400;
    color:#111;
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
    .btn-main:hover{
        background-color: color-mix(in srgb, #ECC400 90%, black);
    }
}

.btn-main2 {
    margin-bottom: 15px;
    width:100%;
    height:114px;
    border:none;
    border-radius:10px;
    font-size:30px;
    font-weight:700;
    transition:.25s;
    background: rgba(236, 196, 0, 0.9);
    color:#111;
    -webkit-tap-highlight-color: transparent;
}
.btn-main2 .frete-expresso {
    margin-bottom: 0px;
    font-style: italic;
}
.btn-main2 .texto-frete {
    min-width: 280px;
    max-width: 280px;
    font-size:13px;
    font-weight: 500;
    -webkit-tap-highlight-color: transparent;
    line-height:1.3;
    text-align: center; /* Centraliza o texto horizontalmente */
    margin: 0 auto;     /* Centraliza o bloco de 400px na tela */
}


.btn-danger{
    margin-top:16px;

    width:100%;
    height:52px;

    border:none;
    border-radius:10px;

    cursor:pointer;

    background:#d92d20;
    color:#E7E7E7;

    font-size:15px;
    font-weight:600;
}

/* RESULTADO */

.result-box h2{
    font-size:22px;
    margin-bottom:20px;
}

.result-item {
    margin-top: 12px;
    margin-bottom: 12px;
    color: #E7E7E7;
    line-height: 1.2;
    font-weight: 500;
}

.result-item + .result-item {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 12px;
}

.valor{
    margin-top:22px;
    font-size:36px;
    font-weight:700;
    color:#32CD32;
}


/* botão debug no html do top da result sheet */
.result-note {
    display: block;
    width: 100%;
    text-align: left !important;
    font-size: 11px;
    color: #E7E7E7;
    opacity: 0.4;
}

.result-note-row {
    margin-top: 4px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
}


.debug-mini-btn{
    background:none;
    border:none;
    padding:0;
    margin:0;
    font-size:15px;
}

#openDebug i {
    color: #E7E7E7;
}


/* senha debug */
.senha-debug-overlay{
    margin-top: -280px;
    position:absolute;
    inset:0;
    background:#333333;
    display:none;
    align-items:center;
    justify-content:center;
    z-index:10000;
    /* DISPARA A ANIMAÇÃO: Nome, duração, velocidade e mantém o estado final */
    animation: fadeDeEntradaSenhaDebug 0.4s ease forwards;
}

.senha-debug-overlay.active{
    display:flex;
}
/* Cria a animação do fade (vai do transparente ao visível) */
@keyframes fadeDeEntradaSenhaDebug {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}



.senha-debug-box{
    width: 300px;
    background:rgba(0, 0, 0, 0.25);
    background:rgba(0, 0, 0, 0.25);
    border-radius:16px;
    padding:25px;
    color:#E7E7E7;
    text-align: center;
}

.senha-debug-box h2{
    margin-bottom:10px;
}

.senha-debug-box h2 span{
    color:#4B86CD;
    font-weight:bold;
}

.senha-debug-box h4{
    font-size:16px;
    text-align: center;
    margin-bottom: 5px;
    font-weight: normal;
}

.senha-debug-box small{
    display: flex;
    align-items:center;
    justify-content:center;
    font-size:11px;
    text-align: center;
    margin-bottom: 30px;
}

.senha-debug-box input{
    display:flex; 
    align-items:center; 
    justify-content:center; 
    margin: 0 auto;
    height:45px; 
    width:100%;
    padding:10px;
    border:1px solid #444;
    border-radius:10px;
    background:#111111; 
    color:#E7E7E7;
    outline:none;
    text-align: center;
}

.senha-debug-box input::placeholder { opacity: 0.95; text-align: center; }
.senha-debug-box input::-webkit-input-placeholder { opacity: 0.95; text-align: center; }
.senha-debug-box input::-moz-placeholder { opacity: 0.95; text-align: center; }
.senha-debug-box input:-ms-input-placeholder { opacity: 0.95; text-align: center; }
            
.senha-debug-box input:-webkit-autofill,
.senha-debug-box input:-webkit-autofill:hover, 
.senha-debug-box input:-webkit-autofill:focus {
    -webkit-text-fill-color: #E7E7E7; /* Cor do texto original */
    -webkit-box-shadow: 0 0 0px 1000px #111111 inset; /* Força o fundo a continuar branco (ou mude #ffffff para a sua cor) */
    transition: background-color 5000s ease-in-out 0s;
}

.senha-debug-actions{
    display:flex;
    gap:0px;
    justify-content:center;
    margin-top:15px;
}

.senha-debug-actions button,
.senha-debug-actions button:focus,
.senha-debug-actions button:active {
    padding:8px 14px;
    border: none;
    outline: none;
    box-shadow: none;
}

#senhaDebugInput {
    margin-bottom: 15px;
}

#confirmarSenhaDebug {
    flex: 1;
    height: 40px;
    border-radius: 10px 0 0 10px;
    background:#ffd400;
    color:#333;
    font-weight:bold;
    cursor:pointer;
    text-decoration:none;
    margin-bottom:5px;
}

#cancelarSenhaDebug {
    flex: 1;
    height: 40px;
    border-radius: 0 10px 10px 0;
    background:rgba(236, 196, 0, 0.85);
    color:#333;
    font-weight:bold;
    cursor:pointer;
    text-decoration:none; 
}



/* SECTIONS */

.content{
    width:100%;
    max-width:1200px;
    margin:auto;
    padding:30px 20px;
}



/* A div controla o local, o fundo redondo e a centralização */
.share {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-top: -67px;
    width: auto;
    background: rgba(0, 0, 0, 0.25);
    padding: 17px;
    border-radius: 99999px;
    display: flex; /* Garante que o botão fique bem alinhado no centro da div */
    align-items: center;
    justify-content: center;
    z-index: 999;           /* Joga o botão para a frente de qualquer outro elemento */
    pointer-events: auto;   /* Garante que o clique seja registrado */
}

/* O botão interno precisa perder o fundo padrão para não cobrir a div */
.share button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    outline: none;
    pointer-events: auto; 
}

/* Ajuste o tamanho e a cor do ícone do Bootstrap se necessário */
.share button i {
    font-size: 1.0rem; /* Altere o tamanho aqui se achar pequeno */
    color: #CCC;    /* Cor do ícone */
    display: block;
}



.grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:30px;
}

.box{
    background:rgba(0,0,0,0.25);
    border:1px solid rgba(255,255,255,0.07);
    border-radius:10px;
    padding:30px;
}

.box h3{
    margin-bottom:20px;
    font-size:22px;
}

.box p{
    line-height:1.6;
    color:#E7E7E7;
}

.fotos-kangoo h3 {
    line-height: 0.9;
    margin: 0px;
}



/* NOTICE */
.notice-item{
    display:flex;
    align-items: flex-start;
    gap:4px;
    margin-bottom:18px;
}

.notice-item p{
    font-size:15px;
    color: rgba(255, 255, 255, 0.7);
    font-weight:normal;
}
.notice-item .bi{
    font-size:28px;
    color: rgba(255, 255, 255, 0.4);
    font-weight:700;
    margin-top: -5px;
    margin-left: -5px;
}

.notice-title{
    margin:30px 0 20px;
}

/* MODAL */

.modal{
    position:fixed;
    inset:0;

    z-index:999;

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

    background:rgba(0,0,0,.65);
    
    opacity:0;
    pointer-events:none;

    transition:.3s;
}

.modal.active{
    opacity:1;
    pointer-events:auto;
}




.sheet{
    position: relative;
    width:100%;
    max-width:560px;
    max-height:90vh;
    overflow-y:auto;
    background:#333;
    border-radius:10px 10px 0 0;
    padding: 0px 28px 0px 28px;
    transform:translateY(100%);
    transition:transform .35s ease;
}

.modal.active .sheet{
    transform:translateY(0);
}

.sheet::-webkit-scrollbar{
    display:none;
}

@keyframes slideUp{
    from{
        transform:translateY(100%);
    }
    to{
        transform:translateY(0);
    }
}

/* FORM */
/* 1. Remove a cor de fundo que o navegador coloca no clique (:focus) */
#formCalculo input:focus {
    background-color: #262626;
    outline: none; 
}

/* 2. Bloqueia a cor amarela/azul do preenchimento automático (Autofill) dos navegadores */
#formCalculo input:-webkit-autofill,
#formCalculo input:-webkit-autofill:hover, 
#formCalculo input:-webkit-autofill:focus {
    -webkit-text-fill-color: #E7E7E7; /* Cor do texto original */
    -webkit-box-shadow: 0 0 0px 1000px #262626 inset; /* Força o fundo a continuar branco (ou mude #ffffff para a sua cor) */
    transition: background-color 5000s ease-in-out 0s;
}

/* TRAVA DEFINITIVA PARA AUTOCOMPLETE DO CHROME ⚡ */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-text-fill-color: #E7E7E7 !important; 
    transition: background-color 999999s ease-in-out 0s !important;
}

/* CAMPO TIME E RELOGINHO */
input[type="time"] {
    accent-color: transparent !important;
}

/* REMOVER O BLOCO AZUL DE SELEÇÃO NOS NÚMEROS (CHROME, EDGE E SAFARI) */
#formCalculo input[type="time"]::-webkit-datetime-edit-hour-field:focus,
#formCalculo input[type="time"]::-webkit-datetime-edit-minute-field:focus,
#formCalculo input[type="time"]::-webkit-datetime-edit-ampm-field:focus {
    background-color: transparent !important; 
    color: #E7E7E7 !important; /* Garante que o texto continue na cor normal legível */
    border-radius: 2px !important;
}

/* 3. BLOQUEAR MUDANÇA DE COR NA CAIXA DO INPUT INTEIRA */
#formCalculo input[type="time"]:focus {
    background-color: #262626 !important; /* Mantém a cor de fundo padrão fixa */
    outline: none !important; 
}

/* 4. Controla o fundo do ícone do reloginho (se quiser mudar ou limpar) */
#formCalculo input[type="time"]::-webkit-calendar-picker-indicator {
    padding: 4px; 
    color: transparent;
    background-color: transparent;
    cursor: pointer;
    filter: invert(95%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(91%) contrast(100%);
}

/* 5. Garante que se o usuário clicar no celular, não apareça aquele flash azul de toque */
#formCalculo input[type="time"] {
    -webkit-tap-highlight-color: transparent !important;
}

#formCalculo input[type="date"]::-webkit-calendar-picker-indicator,
#formCalculo input[type="time"]::-webkit-calendar-picker-indicator{
    filter: invert(0) !important;
    cursor:pointer !important;
}


/* Chrome, Edge, Opera */
#formCalculo input[type="number"]::-webkit-outer-spin-button,
#formCalculo input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
#formCalculo input[type="number"] {
    -moz-appearance: textfield;
}





.form-group{
    margin-bottom:18px;
}

.form-group label{ 
    font-size: 14px !important;
    display:block !important;
    margin-top:20px !important;
    margin-bottom:7px !important;
    color:#E7E7E7 !important;
}

.form-group input,
.form-group select{
    width:100%;
    height:48px;
    border: 1px solid #444;
    outline:none;
    padding:0 14px;
    border-radius:10px;
    background:#262626;
    color:#E7E7E7;
    font-size:14px;
    font-family: inherit;
    font-weight: normal;
}

.form-group input::placeholder{
    font-family: inherit;
    font-weight: normal;
}

.form-group input:focus,
.form-group select:focus{
    border:1px solid rgba(255, 255, 255, 0.3); /* AMARELO #ffd400; */
}

.form-group select{
    cursor: pointer;
    appearance:none;
    -webkit-appearance:none;
    -moz-appearance:none;
}

.form-group select option{
    background:#262626;
    color:#E7E7E7;
}



.submit-btn{
    width:100%;
    height:50px;

    border:none;
    border-radius:10px;

    margin-top:10px;

    transition:.25s;

    background:#ECC400;
    color:#000;
    -webkit-tap-highlight-color: transparent;

    font-size:17px;
    font-weight:700;

    cursor:pointer;
}

@media (hover: hover) {
    .submit-btn:hover{
        background-color: color-mix(in srgb, #ECC400 90%, black);
    }
}





/* Container que força o alinhamento lado a lado em 100% da largura */
.form-row-flex {
    display: flex;
    width: 100%;
    gap: 10px; 
}

/* Configuração base para as duas novas colunas */
.col-data, .col-hora {
    display: flex;
    flex-direction: column; 
}

/* Define a proporção de 2.8 para a Data */
.col-data {
    flex: 1;
}

/* Define a proporção de 1 para o Horário */
.col-hora {
    flex: 1;
}

/* Ajusta o espaçamento superior agora que a label principal sumiu */
.col-data label, 
/* .col-hora label {
    margin-top: 0px !important;     
    margin-bottom: 5px !important;  
    font-size: 13px;                
}
*/




/* data e hora coleta juntos */
.coleta-valcarga-aux {
    display: flex;
    gap: 10px;
    width: 100%;
}

/* Força a label a ficar acima do input dentro de cada coluna */
.coleta-valcarga-aux .col-campo {
    display: flex;
    flex-direction: column;
}

/* Aplica os flex de proporção nas colunas (2, 2 e 1) */
.coleta-valcarga-aux .prop-carga {
    flex: 3.2;
}

.coleta-valcarga-aux .prop-opera {
    flex: 3.2;
}
.prop-opera span { 
    font-size: 10px; 
}

.coleta-valcarga-aux .prop-aux {
    flex: 2.0;
}

/* Corrige o espaçamento superior das novas labels para ignorar os 20px globais */
/* .coleta-valcarga-aux .col-campo label {
    margin-top: 0px !important;    
    margin-bottom: 5px !important;  
    font-size: 13px;               
} */

/* ==================================================
   MÁSCARA ECLUSIVA PARA A LISTA DO SELECT (CSS SEGURO)
================================================== */

/* Alinha o número ao centro no input fechado */
#auxiliares {
    text-align: center;
    text-align-last: center; /* Garante centralização em mais navegadores */
}

/* Injeta os textos auxiliares APENAS dentro da lista de opções aberta */
#auxiliares option[value="0"]::after { content: " Auxiliares"; }
#auxiliares option[value="1"]::after { content: " Auxiliar"; }
#auxiliares option[value="2"]::after { content: " Auxiliares"; }
#auxiliares option[value="3"]::after { content: " Auxiliares"; }





/* Container principal alinha os grupos lado a lado */
.coleta-ceps-km { 
  display: flex; 
  gap: 10px; 
  width: 100%;
} 

/* Garante que os inputs ocupem 100% do seu grupo */
.coleta-ceps-km input {
  width: 100%;
  box-sizing: border-box;
}

/* Distribuição das larguras proporcionais */
.campo-origem { flex: 2.8; } 
.campo-destino { flex: 2.8; } 
.campo-km { flex: 2.4; }

.campo-origem .bi { font-size: 0.8rem; } 
.campo-destino .bi { font-size: 0.8rem; } 
.campo-km span { font-size: 10px; }




/* ERRO */
.erro{
    margin-top:15px;

    background:#401414;

    border:1px solid #7f1d1d;

    padding:16px;

    border-radius:10px;

    color:#fecaca;
}

/* FOOTER */

.footer{
    font-size: 13px;
    
    display:flex;
    flex-direction: column;
    justify-content:center;
    align-items:center;

    padding:10px 10px 30px 10px;
    color:#999;
}
.footer a {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}
.fconfig {
    margin-top: 10px;
}
.fconfig a {
    cursor: pointer;
}
.footer i.bi {
    color: #777 !important;
}




/* RESPONSIVO celular */
@media(max-width:575px){
    
    .hero {
        margin-top: 0px;
    }

    .banner-section {
      padding-bottom: 70px;
    }
    
    .container-pai .banner-background {
      margin-top: -80px;
      max-width: 370px; /* Limita o crescimento e cria o respiro em telas grandes */
      height: 172px; /* Ajuste a altura como preferir */
    }

    .hero-left h1 span1 {
        font-size:34px;
    }
    .hero-left h1 span2 {
        font-size:32px;
    }
    .hero-left h1 span3 {
        font-size:26px;
    }

}
/* RESPONSIVO tablet */
@media (min-width: 576px) and (max-width: 930px) {
    
    .hero {
        margin-top: 0px;
    }
    
    .banner-section {
      padding-bottom: 60px;
    }
    
    .container-pai .banner-background {
      margin-top: -80px;
      max-width: 585px; /* Limita o crescimento e cria o respiro em telas grandes */
      height: 272px; /* Ajuste a altura como preferir */
    }

    .hero-left h1 span1 {
        font-size:46px;
    }
    .hero-left h1 span2 {
        font-size:44px;
    }
    .hero-left h1 span3 {
        font-size:38px;
    }

}
/* RESPONSIVO desktop */
@media (min-width: 931px) {
    
    .hero {
        margin-top: -70px;
    }

    .banner-section {
      padding-bottom: 40px;
    }
    
    .container-pai .banner-background {
      margin-top: -330px;
      max-width: 624px; /* Limita o crescimento e cria o respiro em telas grandes */
      height: 290px; /* Ajuste a altura como preferir */
    }

    .hero-left h1 span1 {
        font-size:46px;
    }
    .hero-left h1 span2 {
        font-size:44px;
    }
    .hero-left h1 span3 {
        font-size:36px;
    }

}

/* RESPONSIVO desktop */
@media(max-width:930px){

    .hero{
        min-height:auto;
        padding-top:50px;
        padding-bottom:70px;
    }

    .hero::before {
        /* Aqui fica a sua máscara radial que fecha o foco no centro */
        -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 90%);
        mask-image: radial-gradient(ellipse at center, black 20%, transparent 90%);

        width: 100%;
        height: 110%;
    }

    .hero-content{
        grid-template-columns:1fr;
        margin-top: 0px;
    }

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

}


/* =========================
   ANIMAÇÃO RESULTADO
========================= */

.result-card {
    animation: aparecerResultado 0.45s ease;
}

@keyframes aparecerResultado {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =========================
   LOADING SCREEN INICIAL
========================= */

.loading-inicial-screen {
    position: fixed;
    inset: 0;

    background: rgba(0,0,0,0.72);

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

    z-index: 999999;

    backdrop-filter: blur(4px);
}

.loading-inicial-screen.active {
    display: flex;
}

.loading-inicial-box {
    text-align: center;
    color: #E7E7E7;
}

.loading-inicial-spinner {
    width: 65px;
    height: 65px;

    border-radius: 50%;

    border: 5px solid rgba(255,255,255,0.15);
    border-top: 5px solid #FFD54A;

    animation: girarinicial 1s linear infinite;

    margin: auto auto 20px auto;
}

.loading-inicial-text {
    font-size: 15px;
    color: #f1f5f9;
    letter-spacing: 0.5px;
}

@keyframes girarinicial {
    to {
        transform: rotate(360deg);
    }
}




/* =========================
   LOADING SCREEN RESULTADO
========================= */

.loading-screen {
    position: fixed;
    inset: 0;

    background: rgba(0,0,0,0.72);

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

    z-index: 99999;

    backdrop-filter: blur(4px);
}

.loading-screen.active {
    display: flex;
}

.loading-box {
    text-align: center;
    color: #E7E7E7;
}

.loading-spinner {
    width: 65px;
    height: 65px;

    border-radius: 50%;

    border: 5px solid rgba(255,255,255,0.15);
    border-top: 5px solid #FFD54A;

    animation: girar 1s linear infinite;

    margin: auto auto 20px auto;
}

.loading-text {
    font-size: 15px;
    color: #f1f5f9;
    letter-spacing: 0.5px;
}

@keyframes girar {
    to {
        transform: rotate(360deg);
    }
}

/* =========================
   RESULT MODAL
========================= */

.result-modal {
    position: fixed;
    inset: 0;

    background: rgba(0,0,0,0.65);

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

    z-index: 9999;

    opacity: 0;
    pointer-events: none;

    transition: 0.3s;
}

.result-modal.active {
    opacity: 1;
    pointer-events: auto;
}



/* ==================================================
   RESULT SHEET
================================================== */
.result-sheet {
    width: 100%;
    max-width: 700px;
    max-height: 94vh;   
    max-height: 94dvh;  
    overflow-y: auto;
    
    /* Esconde a barra de rolagem visualmente */
    scrollbar-width: none; /* Firefox */
    background: #333;
    border-radius: 10px 10px 0 0;
    padding: calc(0px + env(safe-area-inset-top)) 28px 0px 28px;
    box-sizing: border-box; 
    transform: translateY(100%);
    transition: transform 0.35s ease;
}

/* Esconde a barra de rolagem no Chrome, Safari e Edge */
.result-sheet::-webkit-scrollbar {
    display: none;
}

/* ESTILIZAÇÃO DA SETA FLUTUANTE (ULTRA COMPACTA E MINIMALISTA) */
.seta-flutuante {
    position: fixed;    
    bottom: 115px;       
    right: calc(50% - 320px); 
    
    background: rgba(255, 212, 0, 0.7); /* #ffd400; */
    color: #333;         
    
    /* AJUSTE FINO FINAL: Círculo reduzido para 22px */
    width: 22px;        
    height: 22px;       
    border-radius: 50%; 
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* AJUSTE FINO FINAL: Seta interna ultra compacta */
    font-size: 9px;    
    font-weight: bold;
    pointer-events: none; 
    opacity: 0;          
    z-index: 99999;      
    
    animation: pulsar-seta 1.8s infinite ease-in-out;
}

/* Mantém o alinhamento correto acima do rodapé em celulares */
@media (max-width: 768px) {
    .seta-flutuante {
        right: 20px;
        bottom: 125px; 
    }
}

/* EQUILÍBRIO DO PULSO: Onda externa maior para chamar mais atenção */
@keyframes pulsar-seta {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 212, 0, 0.85); /* Começa um pouco mais intensa */
    }
    50% {
        transform: scale(1.08); /* Dá um leve sobressalto no círculo */
        box-shadow: 0 0 0 12px rgba(255, 212, 0, 0); /* AUMENTADO: Onda expande até 12px antes de sumir */
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 212, 0, 0);
    }
}
/* ==================================================
   FAZ PARTE DA RESULT SHEET - NÃO PODE SAIR
================================================== */
.result-modal.active .result-sheet {
    transform: translateY(0);
}







.result-top {
    position: sticky;
    top: 0;
    background: #333;
    z-index: 10;
    display: flex;
    flex-direction:column;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0 20px 0;
    border-bottom: 3px solid rgba(255,255,255,0.08);
}

.result-bottom {
    position: sticky;
    bottom: 0;
    background: #333;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 25px;
    padding-bottom: 30px;
    margin-bottom: 0px;
    border-top: 3px solid rgba(255,255,255,0.08);
}

.result-close {
    width: 34px;
    height: 34px;

    border: none;
    border-radius: 50%;

    background: rgba(255,255,255,0.08);

    color: white;

    cursor: pointer;
    font-size: 15px;
}

.result-inline {
    display: flex;
    justify-content: flex-start;
    /* align-items: center; */
    gap: 10px;
}

.result-inline .result-label {
    margin-bottom: 0;
}

.result-label {
    font-size: 14px;
    color: #E7E7E7;
    margin-bottom: 0px;
    text-transform: uppercase;
    letter-spacing: 0px;
}

.result-inline .result-value {
    text-align: left;
    white-space: normal;
    margin-left: 4px;
    color: #E7E7E7;
    font-weight: 500;
}

.result-value {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5) !important;
}


.result-price {
    background: rgba(50,205,50,0.15);
    border: 1px solid rgba(50,205,50,0.3);
    padding: 0 15px; /* Removemos o padding vertical */
    height: 48px;     /* Forçamos a altura exata */
    border-radius: 10px;
    display: flex;    /* Alinha o texto perfeitamente no meio */
    align-items: center;
    transition: all 0.3s ease; /* Transição suave caso mude de estado */
}

/* Nova regra: Ativa apenas quando o Km for digitado manualmente */
.result-price.manual-price {
    background: rgba(237, 198, 0, 0.15); 
    border: 1px solid rgba(237, 198, 0, 0.3); 
}

.result-price.manual-price strong {
    color: rgba(237, 198, 0, 1.0);
}

.result-price strong {
    font-size: 20px;
    color: #32CD32;
}

.result-btn {
    flex: 1;

    height: 52px;

    border: none;
    border-radius: 10px;

    cursor: pointer;

    font-size: 15px;
    font-weight: 600;
}


.result-title-actions {
    display: flex;
    align-items: center;
    gap: 0px;
    margin-bottom: 5px;
}
.result-title-actions span1 {
    font-size: 26px;
    font-weight: 700;
    color: #4B86CD;
}
.result-title-actions span2 {
    font-size: 24px;
    color: #E7E7E7;
    font-weight: 700;
}
.result-title-cotacao {
    margin-right: auto !important;
    text-align: left !important;
}
.result-title-cotacao span {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    font-weight: 700;
}

.result-mapa-rota-btn {
    margin-right: 3px; /* Espaço entre ele e o PDF */
    padding: 0 12px;   /* Zera o padding vertical para não esticar */
    height: 48px;      /* Mesma altura do preço e PDF */
    font-size: 15px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.15);
    color: #E7E7E7;
    border: 1px solid rgba(255, 255, 255, 0.3);
    
    /* Alinhamento do botão em relação ao PDF */
    display: inline-block;
    vertical-align: middle; 
}

.result-mapa-rota-btn img {
    width: 16px;
    height: 31px; /* Seu tamanho original de volta */
    
    /* Força a imagem a alinhar pelo meio do botão, 
       impedindo que ela empurre o botão para cima */
    vertical-align: middle; 
}

.result-pdf-btn {
    margin-right: 3px; /* Espaço entre ele e o PDF */
    padding: 0 9px;   /* Zera o padding vertical */
    height: 48px;      /* Mesma altura dos outros */
    font-size: 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.15);
    color: #E7E7E7;
    border: 1px solid rgba(255, 255, 255, 0.3);
    
    /* Alinhamento do botão */
    display: inline-block;
    vertical-align: middle;
}

.result-debug {
    padding: 0 9px;   /* Zera o padding vertical */
    height: 48px;      /* Mesma altura dos outros */
    font-size: 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.15);
    color: #E7E7E7;
    border: 1px solid rgba(255, 255, 255, 0.3);
    
    /* Alinhamento do botão */
    display: inline-block;
    vertical-align: middle;
}


#pdfDataHora{
    font-size:10px;
    color:#999;
    text-align:right;
    margin-top:4px;
}


.nome-rotacionado {
    display: inline-block;
    
    /* Gira a palavra em 90 graus no sentido anti-horário (de baixo para cima) */
    transform: rotate(-90deg); 
    transform-origin: center; /* Garante que o giro seja no próprio eixo */
    
    /* 👇 Estilização */
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    color: #E7E7E7;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* Sombra para destacar no fundo */
}

.assinatura-vertical {
    display: inline-block;
    
    /* Usa a fonte estilo assinatura de caneta */
    font-family: 'Reenie Beanie', cursive; 
    font-size: 4.5rem; /* Fontes cursivas costumam precisar ser maiores */
    color: #4B86CD; /* O seu azul vibrante */
    
    /* 👇 O TRUQUE: Valores negativos colam e sobrepõem as letras */
    letter-spacing: -3px; 
    
    /* Gira a assinatura para ler de baixo para cima */
    transform: rotate(-90deg); 
    transform-origin: center;
    
    /* Deixa o traço levemente inclinado para parecer mais natural */
    skewX(-5deg); 
    
    /* Deixa a escrita mais suave na tela */
    -webkit-font-smoothing: antialiased; 
}

.assinatura-subindo {
    display: inline-block;
    font-family: 'Reenie Beanie', cursive; 
    font-size: 4.5rem;
    color: #4B86CD; /* O azul vibrante */
    letter-spacing: -5px; /* Mantém as letras espremidas e corridas */
    
    /* 👇 O SEGREDO: Gira só um pouquinho no sentido anti-horário */
    transform: rotate(-6deg); 
    
    /* Faz a subida começar a partir da primeira letra (esquerda) */
    transform-origin: left center; 
    
    /* Adiciona uma leve inclinação para dar dinâmica de escrita à mão */
    skewX(-5deg); 
}



body.no-scroll {
    overflow: hidden; /* Trava a rolagem vertical e horizontal */
    height: 100vh;    /* Garante que o corpo não passe da altura da tela */
}

.info-kangoo1 {
    margin-top: 5px;
    max-width: 420px;
}
.info-kangoo1 p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}
.info-kangoo2 p {
    margin-top: 5px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}



/* img CARRO-HOMEM */
.container-pai {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0 20px;    /* Seu respiro mínimo em telas pequenas */
    box-sizing: border-box;
}


.banner-background {
    display: block;
    width: 100%;
    /* Define o limite máximo no PC baseado no tamanho que você quer */
    max-width: 624px; 
    
    /* Proporção perfeita baseada na sua imagem original (794x369) */
    aspect-ratio: 794 / 369; 
    
    opacity: 0.9;
    margin: 0 auto; /* Centraliza o elemento na tela */
      
    /* Configurações da imagem de fundo */
    background-image: url('https://cargo.loggesys.com/imagens/kangoo-carrinho.png');
    background-position: center;
    background-repeat: no-repeat;
    
    /* Garante nitidez máxima ao redimensionar em telas modernas */
    background-size: contain; 
    image-rendering: -webkit-optimize-contrast;
}


.modal-handle,
.result-handle{
    width:50px;
    height:5px;
    background:#666;
    border-radius:999px;
    margin:5px auto 20px auto;
}

.modal-header-row,
.result-header-row{
    width:100%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 0px 0px 0px;
}


/* CABECALHO MODAL INPUT */
.modal-top{
    position:sticky;
    top:0;
    background:#333;
    z-index:10;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    align-items:center;
    padding: 10px 0 20px 0;
    border-bottom: 3px solid rgba(255,255,255,0.08);
}

.modal-top h2{
    font-size:22px;
    font-weight:600;
}

.modal-close{
    width:34px;
    height:34px;

    border:none;
    border-radius:50%;

    background:rgba(255,255,255,.08);

    color:#fff;

    cursor:pointer;
    font-size:15px;
}


.modal-bottom{
    position:sticky;
    bottom:0;

    background:#333;

    padding:15px 0px 30px 0px;

    border-top: 3px solid rgba(255,255,255,0.08);

    z-index:10;
}


/* CABECALHO MODAL INPUT */
.geo-info {
    position: fixed;
    z-index: 10;
    top: 5px;
    left: 5px;
    width: auto;
    padding: 5px 10px;
    background: rgba(68,68,68,1.0);
    color: #E7E7E7;
    font-size: 9px;
    cursor: pointer;
    border-radius: 10px;
}
.pin-red {
    font-size: 9px;
    color: red;
}
.pin-green {
    font-size: 9px;
    color: rgba(0,255,0,1.0);
}

/* NOVO ESTILO DO MENU FLUTUANTE */
.vehicle-dropdown {
    position: fixed;
    z-index: 11;
    top: 28px;            /* Fica logo abaixo do seu botão */
    left: 5px;
    background: rgba(68,68,68,1.0);
    border: 1px solid #555;
    border-radius: 6px;
    padding: 4px 0;
    min-width: 190px;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.4);
}

/* CADA ITEM/VEÍCULO DA LISTA */
.dropdown-item {
    color: #E7E7E7;
    font-size: 14px;
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08); 
}

.dropdown-item:last-child {
    border-bottom: none;
}

/* Dá um espaço sutil entre o pin verde e o texto do veículo */
.dropdown-item .list-pin {
    margin-right: 6px;
    font-size: 13px; /* Um pouquinho menor para harmonizar com o texto de 13px */
}

/* Efeito visual quando passa o mouse por cima do veículo */
.dropdown-item:hover {
    background: rgba(100,100,100,1.0);
}

/* Estilo para as placas futuras desabilitadas */
.dropdown-item.disabled {
    color: rgba(255,255,255,0.35);
    cursor: not-allowed;
    pointer-events: none; /* Bloqueia o clique completamente pelo navegador */
}


.btn-ativalocalizacao {
    position: fixed;
    z-index: 10;
    top: 5px;
    right: 5px;
    width: auto;
    padding: 5px 10px;
    background: rgba(68,68,68,1.0);
    color: #E7E7E7;
    font-size: 9px;
    cursor: pointer;
    border-radius: 10px;
}
.btn-ativalocalizacao .icone-ativar-gps{
        color: #00ff78;
        font-size: 9px;
}


/* MODAL DO MAPA */
.map-modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.6);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:99999;
}

/* caixa do mapa */
.map-box{
    width:95%;
    height:90vh;
    background:#111;
    border-radius:14px;
    overflow:hidden;
    position:relative;
}

/* iframe do mapa */
.map-box iframe{
    width:100%;
    height:100%;
    border:none;
}

/* botão fechar */
.map-close{
    position:absolute;
    top:10px;
    right:10px;
    z-index:10;
    background:#111;
    color:#E7E7E7;
    border:none;
    width:34px;
    height:34px;
    border-radius:50%;
    cursor:pointer;
}

/* MOBILE: quase tela inteira */
@media (max-width:768px){
    .map-box{
        width:94%;
        height:88vh;
        border-radius:14px;
    }

}



/* RADIO BUTTONS - PESO MERCADORIA  wagner */
.peso-group {
    display: flex;
    flex-direction: column;
}

.peso-group label{ 
    font-size: 14px !important;
    display:block !important;
    margin-top:20px !important;
    margin-bottom:7px !important;
    color:#E7E7E7 !important;
}

/* LINHA DOS BOTÕES */
.peso-options {
    margin-top: -20px;
    margin-bottom: 15px;
    display: flex;
    gap: 6px;
}

/* BOTÕES */
.peso-btn {
    flex: 1;
    width: 100%;             /* Garante que o botão ocupe o espaço do flex */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;       /* Força a centralização do texto */
    padding: 16px 7px;
    border: 1px solid #444;
    border-radius: 10px;
    background: #222;
    cursor: pointer;
    transition: 0.2s ease;
    font-size: 13px;
    color: #909090;
    white-space: normal;      /* Permite quebra de linha se o espaço acabar */
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.peso-btn span {
    color: #BBBBBB;
}


/* ESCONDE RADIO */
.peso-btn input {
    display: none;
}

/* ESTADO ATIVO */
/* Muda o fundo do botão */
.peso-btn:has(input:checked) {
    background: #CCCCCC;
}

/* Muda a cor de qualquer texto ou elemento dentro do botão selecionado */
.peso-btn:has(input:checked) * {
    color: #151515 !important;
}

/* HOVER */
.peso-btn:hover {
    color: #E7E7E7;
    background-color: #171717;
}






.form-overlay-error {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;

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

    opacity: 0;
    visibility: hidden;
    transform: scale(0.05);

    transition: all 0.25s ease;
}

/* estado ativo */
.form-overlay-error.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* form error */
.form-error-box {
    margin-top: -90px;
    background: #2a1f1f;
    border: 2px solid #ff4d4d;
    color: #ff4d4d;
    padding: 15px 20px 15px 18px;
    border-radius: 6px;
    font-size: 14px;
    max-width: 90%;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    line-height: 1.3;
}

.form-error-box::after {
    content: "Fechar";
    width: 100%;
    padding: 10px 0px;
    background: rgba(255,0,0,0.7);
    border-radius: 10px;
    position: relative;
    top: 15px;
    margin-bottom: 15px;
    font-size: 14px;         /* Aumentado de 11px para 14px para dar leitura */
    font-weight: 900;        /* Mudado de bold para 900 (força o negrito máximo) */
    letter-spacing: 0.5px;   /* Afasta levemente as letras para o negrito não embolar */
    color: rgba(255,255,255,0.9);
    opacity: 1.0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ESTILO ADICIONAL PARA QUANDO FOR SINAL DE SUCESSO/FINALIZAÇÃO */
.form-error-box.sucesso-whats {
    border-color: #25D366; /* Borda verde do WhatsApp */
    color: #ffffff;        /* Texto principal branco para melhor leitura */
    background: #1c2421;   /* Fundo escuro levemente esverdeado */
}

/* Muda a cor do botão "Fechar" gerado pelo CSS para combinar */
.form-error-box.sucesso-whats::after {
    background: rgba(37, 211, 102, 0.6); /* Botão verde transparente */
}


/* ==========================================================================
   1. ESTRUTURA DA JANELA (OVERLAY & BOX PRINCIPAL)
   ========================================================================== */

/* Fundo escuro atrás da janela de debug */
.debug-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    /* DISPARA A ANIMAÇÃO: Nome, duração, velocidade e mantém o estado final */
    animation: fadeDeEntradaDebugOverlay 0.2s ease forwards;
}

/* Ativa a exibição do overlay */
.debug-overlay.active {
    display: flex;
}
/* Cria a animação do fade (vai do transparente ao visível) */
@keyframes fadeDeEntradaDebugOverlay {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


/* Caixa central contendo todo o conteúdo do debug */
.debug-box {
    width: 95vw;
    max-width: 1400px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    background: #111;
    border-radius: 8px;
    padding: 15px;
    z-index: 9999;
}

/* Container das colunas (Pai direto dos painéis) */
.debug-columns {
    flex: 1;
    display: flex;
    flex-direction: row; /* Mantém sempre lado a lado */
    gap: 15px;
    min-height: 0;
    overflow-x: auto;    /* Ativa rolagem horizontal no painel pai caso falte espaço */
}

/* ==========================================================================
   2. PAINÉIS / COLUNAS (COMPORTAMENTO DESKTOP)
   ========================================================================== */

/* Regra geral para as duas colunas dividirem o desktop igualmente (50% / 50%) */
.debug-panel {
    flex: 1 1 50%;
    width: 50%;
    max-width: 50%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 6px;
    padding: 10px;
    box-sizing: border-box; /* Evita que bordas quebrem o cálculo de 50% */
}

/* Títulos internos dos painéis ("DEBUG" e "CONFIG.PHP") */
.debug-title {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 14px;
}

/* ==========================================================================
   3. PAINÉIS DE TEXTO (CONTEÚDO INTERNO: DEBUG & CONFIG)
   ========================================================================== */

/* Estilo da área de texto do DEBUG */
#debugContent {
    flex: 1;
    margin: 0;
    color: #CCCCCC;
    font-size: 14px;
    font-family: monospace;
    line-height: 1.5;
    display: block;
    white-space: pre !important;        
    overflow-x: scroll !important;       /* Força a barra horizontal */
    overflow-y: auto !important;         /* Rolagem vertical funciona por instinto */
    
    /* Firefox não separa eixos visualmente. Definir como 'none' esconde ambas 
       as barras, mas o 'overflow-x: scroll' garante que a rolagem lateral funcione */
    scrollbar-width: none !important;    
    -ms-overflow-style: none !important; 
    -webkit-user-select: text !important;
    user-select: text !important;
}

/* Estilo da área de texto do CONFIG.PHP */
.debug-config {
    flex: 1 1 auto;
    margin: 0;
    color: #00B140;
    font-size: 13px;
    font-family: Consolas, monospace;
    line-height: 1.5;
    display: block;
    white-space: pre !important;        
    overflow-x: scroll !important;       /* Força a barra horizontal */
    overflow-y: auto !important;         /* Rolagem vertical funciona por instinto */
    height: 100%;
    max-height: calc(90vh - 100px);
    
    /* Firefox - Oculta a barra visualmente */
    scrollbar-width: none !important;    
    -ms-overflow-style: none !important; 
    -webkit-user-select: text !important;
    user-select: text !important;
}

/* ==========================================================================
   4. ROLAGENS EXCLUSIVAS (DESKTOP) - CORRIGIDO
   ========================================================================== */

/* Configuração geral: Ativa a estrutura da barra */
#debugContent::-webkit-scrollbar,
.debug-config::-webkit-scrollbar {
    display: block !important;
    width: 0px !important;  /* LARGURA 0: Remove totalmente a barra vertical visualmente */
    height: 6px !important; /* ALTURA 6px: Força a barra horizontal a aparecer e ter espessura */
}

/* Garante o comportamento visual específico de cada eixo nos navegadores Chromium */
#debugContent::-webkit-scrollbar:vertical,
.debug-config::-webkit-scrollbar:vertical {
    width: 0px !important;
    background: transparent !important;
}

#debugContent::-webkit-scrollbar:horizontal,
.debug-config::-webkit-scrollbar:horizontal {
    height: 6px !important;
}

/* Fundo da canaleta (Aplica-se apenas à barra horizontal que restou ativa) */
#debugContent::-webkit-scrollbar-track:horizontal,
.debug-config::-webkit-scrollbar-track:horizontal {
    background: #222222 !important;
    border-radius: 4px;
}

/* Cor do botão arrastável da barra horizontal */
#debugContent::-webkit-scrollbar-thumb:horizontal,
.debug-config::-webkit-scrollbar-thumb:horizontal {
    background: #555555 !important;
    border-radius: 4px;
}

/* Cor do botão arrastável ao passar o mouse */
#debugContent::-webkit-scrollbar-thumb:horizontal:hover,
.debug-config::-webkit-scrollbar-thumb:horizontal:hover {
    background: #777777 !important;
}

/* Remove completamente o quadrado de encaixe do canto */
#debugContent::-webkit-scrollbar-corner,
.debug-config::-webkit-scrollbar-corner {
    background: transparent !important;
}

/* ==========================================================================
   5. BOTÃO FECHAR
   ========================================================================== */
.close-debug {
    background: #151515;
    border-radius: 10px;
    margin-top: 15px;
    cursor: pointer;
    text-align: center;
}

.close-debug .close-debug-btn {
    background: #333333;
    cursor: pointer;
}

.close-debug button,
.close-debug button:focus,
.close-debug button:active {
    padding: 8px 14px;
    border: none;
    outline: none;
    box-shadow: none;
}

/* ==========================================================================
   6. RESPONSIVIDADE (COMPORTAMENTO NO CELULAR)
   ========================================================================== */
@media (max-width: 768px) {
    
    .debug-panel {
        max-width: none !important; /* Desativa a trava de 50% */
        flex: 0 0 auto !important;  /* Desativa a flexibilidade automática */
    }

    /* Largura fixa da coluna DEBUG no celular */
    .debug-panel:nth-child(1) {
        /* width: 560px !important; */
        width: auto !important;
        margin-right: 50px;
    }

    /* Largura fixa da coluna CONFIG.PHP no celular */
    .debug-panel:nth-child(2) {
        /* width: 450px !important; */ 
        width: auto !important; 
    }
}





/* =========================
   MODAL MAPA ROTA (INDEX)
========================= */
#mapaRotaOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

#mapaRotaOverlay.active {
    display: flex;
}

.mapa-rota-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.mapa-rota-overlay.active {
    display: flex;
}

.mapa-rota-box {
    width: 95vw;
    height: 90vh;
    background: #111;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

#iframeMapaRota {
    width: 100%;
    height: 100%;
    border: none;
}

.mapa-rota-close{
    position:absolute;
    top:10px;
    right:10px;
    z-index:10;
    background:#111;
    color:#E7E7E7;
    border:none;
    width:34px;
    height:34px;
    border-radius:50%;
    cursor:pointer;
}


/* ========================================================
    PHONE
======================================================== */
.content .phone {
    margin-bottom: 25px;
}

.phone .box{
    width: 100%;
    padding: 30px 5px;
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
}

.phone .box .bi{
    /* color: #25D366; */
    color: rgba(37, 211, 102, 0.5)
}

.phone a{
    cursor: pointer;
    text-decoration: none;
}

.phone a span{
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 10px;
}

@media (max-width:768px){
    .phone .box{
        font-size: 14px;
        gap: 15px;
    }
}


/* ========================================================
    INSTALL PWA
======================================================== */
/* -----------------------------------------------------
 Painel principal que bloqueia a tela 
-------------------------------------------------------*/
#overlayInstalar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Mudamos de 100vh para 100% para travar o tamanho */
    background-color: #333333;
    color: #E7E7E7;
    font-family: sans-serif;
    text-align: center;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 999999;
    padding: 20px;
    box-sizing: border-box;

    /* TRAVAS CONTRA O ARRASTO */
    overscroll-behavior: none !important;
    touch-action: none !important;
    overflow: hidden !important;
}

/* Containers de conteúdo (Antes e Depois) */
#conteudoInicial {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -150px;
}

/* Container padrão do progresso começa oculto pelo JS */
#conteudoProgresso {
    display: flex;
    flex-direction: column;
    align-items: center;
    display: none;
    margin-top: -146px;
}

/* Emojis e ícones */
.pwa-icone-satelite {
    margin-bottom: 20px;
}
.pwa-icone-celular {
    margin-bottom: 20px;
}

/* Títulos e Textos */
.pwa-titulo {
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: bold;
}
.pwa-titulo span1 {
    font-size:34px;
    color: #4B86CD;
}
.pwa-titulo span2 {
    font-size:30px;
    color: #E7E7E7;
}
.pwa-titulo-progresso {
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: bold;
}
.pwa-titulo-progresso span1 {
    font-size:28px;
    color: #4B86CD;
}
.pwa-titulo-progresso span2 {
    font-size:28px;
    color: #E7E7E7;
}
.pwa-titulo-menor {
    margin-bottom: 10px;
    font-size: 22px;
}
.pwa-texto {
    color: #aaa;
    margin-bottom: 30px;
    font-size: 15px;
    max-width: 280px;
}
.pwa-texto-menor {
    color: #aaa;
    margin-bottom: 30px;
    font-size: 14px;
}
/* Classe que ativa a animação do logo de instalação */
.efeito-zoom {
    animation: pulsoRapido 1.2s ease-in-out; /* Altere 0.8s para mudar a velocidade total */
}

/* Configuração dos 3 tempos e tamanhos */
@keyframes pulsoRapido {
    0% {
        transform: scale(1); /* Tamanho original */
    }
    20% {
        transform: scale(0.2); /* 1º Tempo: Zoom out pequeno (85% do tamanho) */
    }
    75% {
        transform: scale(1.6); /* 2º Tempo: Zoom in maior (120% do tamanho) */
    }
    100% {
        transform: scale(1); /* 3º Tempo: Volta ao tamanho original */
    }
}

/* Classe que faz o elemento surgir suavemente */
.pwa-fade-in {
    animation: surgimentoSuave 0.7s ease-in-out forwards; /* 0.5s é a duração do fade */
}

@keyframes surgimentoSuave {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

#btnFreteExpresso {
    max-width: 320px;
    min-width: 320px;
    background-color: #ECC400;
    color: #151515;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    padding: 16px 15px;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(40,167,69,0.3);
    margin-bottom: 70px;
}
#btnFreteExpresso span1 {
    font-size:26px;
    font-weight:700;
    font-style: italic;
}
#btnFreteExpresso span2 {
    font-size:13px;
    font-weight:500;
    -webkit-tap-highlight-color: transparent;
    line-height:1.3;
    text-align: center; /* Centraliza o texto horizontalmente */
    margin: 0 auto;     /* Centraliza o bloco de 400px na tela */
}

/* Botões do Instalador */
#btnInstalar, #btnEntrarApp {
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
}
#btnInstalar {
    background-color: #ECC400; /* AZUL #4B86CD;  VERDE #20C997;  AMARELO #ECC400;  CINZA #E9ECEF; */
    color: #151515;
    padding: 15px 40px;
    font-size: 16px;
}
#btnEntrarApp {
    background-color: #ECC400; /* AZUL #4B86CD;  VERDE #20C997;  AMARELO #ECC400;  CINZA #E9ECEF; */
    color: #151515;
    display: none;
    padding: 15px 40px;
    font-size: 16px;
}

/* Estrutura da Barra de Progresso */
.pwa-barra-container {
    width: 260px;
    height: 8px;
    background-color: #333;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 30px;
}
#barraProgresso {
    width: 0%;
    height: 100%;
    background-color: #4B86CD;
    transition: width 17s linear; /* Altere o tempo da animação aqui */
}




/* ========================================================
    DEBUG
======================================================== */
/* Abre no topo com espaço de 20px */
.debug-titulo-secao {
    display: inline-block;  /* Mantém na mesma linha do conteúdo */
    /* width: max-content;  /* Força o fundo a esticar até o fim dos traços */
    /* min-width: 100%;     /* Se a linha for curta, preenche toda a largura visível */
    width: auto;            /* Força o fundo a esticar até o fim dos traços */
    /* min-width: 100%;        /* Se a linha for curta, preenche toda a largura visível */
    box-sizing: border-box;
    white-space: nowrap !important; /* Garante que os tracinhos nunca quebrem para baixo */
    font-weight: bold;
    padding: 6px 10px;
    margin-top: 15px;
    margin-bottom: 5px;
    border-radius: 4px;
    color: #fff;
    text-transform: uppercase;
}

    /* Cores personalizadas para cada título */
    .cor-branco-opaco { background-color: rgba(255,255,255,0.5); border-left: 5px solid #ffffff; }
    .cor-azul-bootstrap { background-color: #2196f3; border-left: 5px solid #0d47a1; }
    .cor-laranja { background-color: #ff9800; border-left: 5px solid #e65100; }
    .cor-vermelho-claro { background-color: #f7a29c; border-left: 5px solid #bd6a64; }
    .cor-vermelho { background-color: #f44336; border-left: 5px solid #b71c1c; }
    .cor-lilas { background-color: #9c27b0; border-left: 5px solid #4a148c; }
    .cor-azul-claro { background-color: #00bcd4; border-left: 5px solid #006064; }
    .cor-azul-jeans-claro { background-color: #607d8b; border-left: 5px solid #263238; }
    .cor-marrom { background-color: #795548; border-left: 5px solid #3e2723; }
    .cor-verde-claro { background-color: #4caf50; border-left: 5px solid #1b5e20; }
    .cor-verde-escuro { background-color: #2e7d32; border-left: 5px solid #1b5e20; font-weight: bold; }
    .cor-verde-escuro-plus { background-color: #235f26; border-left: 5px solid #124115; font-weight: bold; }



/* ========================================================
    BUSCA CEP
======================================================== */
/* 1. Mantenha o flex fixo aqui junto com os controles de opacidade */
.search-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh; height: 100dvh;
    background: rgba(0, 0, 0, 1);
    z-index: 10000;
    
    display: flex;             /* Deixe fixo aqui */
    align-items: flex-start; 
    justify-content: center;
    padding-top: 20px; 
    
    /* Estados iniciais escondidos */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;      
    
    /* Tempo do fade */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* 2. REMOVA o display: flex daqui de dentro */
.search-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;      /* Torna clicável novamente */
}

#searchResultBlock {
    animation: fadeInResult 0.4s ease forwards;
}

@keyframes fadeInResult {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}



.search-sheet {
    background: #1c1c1c; 
    width: 96%; 
    max-width: 450px;
    padding: 20px; 
    border-radius: 8px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.search-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.search-header h3 { font-size: 16px; color: #E7E7E7; }
.search-header button { background: none; border: none; color: #fff; font-size: 18px; cursor: pointer; }

.search-body input[type="text"] {
    width: 100%; background: #2a2a2a; border: none; padding: 10px;
    color: #fff; border-radius: 8px;; margin-bottom: 10px; outline: none;
}
.search-row { display: flex; gap: 10px; }

.search-select-label {
    width: 100%;
    background: #333;
    margin-bottom: 0px;
    padding: 20px 10px;
    text-align: center;
    font-size: 14px;
    font-weight: normal;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5)
}

#searchUF { width: 60px; text-transform: uppercase; text-align: center; }

#btnExecutarBusca, #btnConfirmarCep {
    width: 100%; background: #ffd400; color: #111; border: none;
    padding: 12px; border-radius: 8px; font-weight: 700; cursor: pointer;
}
#btnConfirmarCep { background: #ffd400; color: #111; margin-top: 10px; }

/* Transforma o select nativo em uma lista aberta com scroll escuro */
.custom-select-scroll {
    width: 100%;
    background: #2a2a2a !important;
    color: #fff !important;
    border: 1px solid #444 !important;
    border-radius: 0 0 10px 10px;
    padding: 5px;
    margin-bottom: 10px;
    outline: none;
    font-size: 14px;
    height: auto !important; 
    overflow-x: scroll;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    /* Impede a seleção de texto */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE 10+ e Edge antigo */
    user-select: none;         /* Padrão (Chrome, Edge atual, Opera) */

}
.custom-select-scroll option {
    display: table; 
    min-width: 100%;
    width: 100%;
    padding: 10px;
    border-bottom: 1px solid #3a3a3a;
    background: #2a2a2a;
    color: #fff;
    border-radius: 8px;
}
.custom-select-scroll option:checked {
    color-scheme: dark; 
    
    /* O truque definitivo: injeta um gradiente cinza por cima da cor azul do navegador */
    background-image: linear-gradient(0deg, #E7E7E7 0%, #E7E7E7 100%) !important;
    background-color: #E7E7E7 !important;
    
    /* Altera a cor do texto para destacar no fundo cinza */
    color: #151515 !important;
    font-weight: bold;
    
    /* Mantém os seus estilos de sombra e reset */
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1) inset !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Evita que o navegador jogue o azul padrão de foco ao selecionar */
.custom-select-scroll:focus option:checked {
    background-image: linear-gradient(0deg, #E7E7E7 0%, #E7E7E7 100%) !important;
    background-color: #E7E7E7 !important;
    color: #151515 !important;
}

/* Garante o comportamento correto no hover */
.custom-select-scroll option:hover {
    background-image: linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.03) 100%) !important;
    background-color: rgba(255, 255, 255, 0.03) !important;
    color: #fff !important;
    cursor: pointer;
}



/* ========================================================
    BTN AJUSTE KM COM + DENTRO DO INPUT
======================================================== */
.km-wrapper-interno {
  position: relative !important;
  width: 100%;
  display: block;
}

/* padding-left aumentado para 32px para dar total segurança contra cliques acidentais */
.km-input-field {
  padding-left: 32px !important; 
  box-sizing: border-box !important;
}

/* Alinha a digitação perfeitamente na direita */
.km-alinhado-direita {
  text-align: right !important;
  padding-right: 10px !important;
}

/* Botão jogado bem para a esquerda (left: 4px) */
.km-toggle-btn {
  position: absolute !important;
  left: 4px !important; 
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: transparent !important;
  border: none !important;
  font-size: 18px !important;
  font-weight: bold !important;
  color: #E7E7E7 !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  z-index: 5 !important;
  width: 24px !important; /* Boa área de clique na esquerda */
  height: 24px !important;
}




/* ==========================================================================
   CARROSSEL DE IMAGENS
   ========================================================================== */
/* ==========================================================================
   CARROSSEL DE IMAGENS (COM INDICADOR DE ARRASTAR)
   ========================================================================== */

.carrossel-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.meu-slide-box {
  width: 100%;
  height: 50vh;
}

.carrossel {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  cursor: grab;
}

.carrossel::-webkit-scrollbar {
  display: none;
}

.carrossel img {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  object-fit: cover;
  object-position: center;
  scroll-snap-align: start;
  user-select: none;
  -webkit-user-drag: none;
  border-radius: 16px;
  padding: 5px;
}

/* Novo container do indicador abaixo da imagem */
.indicador-arrastar {
  display: flex;
  flex-direction: column; /* Coloca o texto abaixo da mãozinha */
  align-items: center;
  justify-content: center;
  margin-top: 12px; /* Espaço entre a imagem e o indicador */
  gap: 4px;
  user-select: none;
  pointer-events: none; /* Garante que não atrapalhe cliques na região */
}

/* Estilização e animação da mãozinha */
.icone-mao {
  font-size: 24px;
  display: inline-block;
  animation: arrastarMao 2s infinite ease-in-out;
}

.icone-mao .bi {
  color: #999;
}

/* Texto de apoio sutil */
.texto-indicador {
  font-size: 13px;
  color: #999;
  font-family: sans-serif;
}

/* Animação que faz a mão ir para a direita, voltar para a esquerda e resetar */
@keyframes arrastarMao {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(15px); }  /* Move para a direita */
  70% { transform: translateX(-15px); } /* Move para a esquerda */
}


/* ====================================================================
    SPLASH SCREEN - OVERLAY DE CARREGAMENTO -->
   ==================================================================== */
#custom-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: #333333; /* Cor de fundo sem transparência (ajuste se quiser) */
    z-index: 99999;           /* Garante que fica por cima de ABSOLUTAMENTE tudo */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.5s ease; /* Transição do Fade Out final */
}

/* Conteiner do conteúdo */
.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* Animação da Imagem vindo de cima com Fade In */
.preloader-img {
    max-width: 150px; /* Ajuste o tamanho da sua logo aqui */
    height: auto;
    opacity: 0;
    animation: entrarDeCima 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Animação do Texto vindo de baixo com Fade In */
.preloader-text {
    color: #E7E7E7;
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    opacity: 0;
    animation: entrarDeBaixo 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Definição dos movimentos */
@keyframes entrarDeCima {
    from {
        opacity: 0;
        transform: translateY(-160px); /* Começa 60px acima */
    }
    to {
        opacity: 1;
        transform: translateY(0);     /* Para no centro */
    }
}

@keyframes entrarDeBaixo {
    from {
        opacity: 0;
        transform: translateY(160px);  /* Começa 60px abaixo */
    }
    to {
        opacity: 1;
        transform: translateY(0);     /* Para no centro */
    }
}



/* ==========================================================================
   TABELA OFICIAL DE BREAKPOINTS PARA CONSULTA 
   ========================================================================== */
/* @media (max-width: 576px)  {  Celulares pequenos e médios em pé  } */
/* @media (max-width: 768px)  {  Celulares grandes e Tablets em pé   } */
/* @media (max-width: 992px)  {  Tablets grandes ou normais deitados  } */
/* @media (max-width: 1200px) {  Notebooks comuns e Tablets gigantes } */
/* @media (max-width: 1400px) {  Monitores grandes de Desktop        } */


