@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;
}

/* 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:54px;
    color: #4B86CD;
}
.hero-left h1 span2 {
    font-size:50px;
    color: #E7E7E7;
}

.hero-left p {
    font-family: 'Roboto', sans-serif;
    font-size:16px;
    color:#ddd;
    max-width:650px;
    line-height:1.3;
    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:94px;
    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;
}
.btn-main2 .texto-frete {
    max-width: 330px;
    font-size:14px;
    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: 12px;
    color: #E7E7E7;
    opacity: 1;
}

.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: -320px;
    position:absolute;
    inset:0;

    background:rgba(0,0,0,.75);

    display:none;

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

    z-index:10000;
}

.senha-debug-overlay.active{
    display:flex;
}

.senha-debug-box{
    width:300px;
    max-width:90%;

    background:#111;

    border:1px solid #333;
    border-radius:8px;

    padding:20px;

    color:#fff;
}

.senha-debug-box h4{
    margin:0 0 15px;
    font-size:16px;
}

.senha-debug-box input{
    width:100%;
    padding:10px;
    border:1px solid #444;
    border-radius:4px;
    background:#222;
    color:#fff;
    box-sizing:border-box;
}

.senha-debug-actions{
    display:flex;
    gap:10px;
    justify-content:flex-end;
    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;
}

#confirmarSenhaDebug {
    border-radius: 10px;
    background:#ffd400;
    color:#333;
    font-weight:bold;
    cursor:pointer;
}

#cancelarSenhaDebug {
    border-radius: 10px;
    background:#444;
    color:#E7E7E7;
    font-weight:bold;
    cursor:pointer;
}



/* SECTIONS */

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

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

.box{
    background:#171717;
    border:1px solid rgba(255,255,255,.06);
    border-radius:10px;
    padding:30px;
}

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

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

/* NOTICE */

.notice-item{
    font-size:15px;
    display:flex;
    gap:12px;
    margin-bottom:18px;
}

.notice-item span{
    color:#D1F2F7;
    font-weight:normal;
}

.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;
    display:block;
    margin-top:20px;
    margin-bottom:5px;
    color:#E7E7E7;
}

.form-group label .cents{ 
    font-size: 11px !important;
}

.form-group input,
.form-group select{
    width:100%;
    height:48px;
    border:none;
    outline:none;
    padding:0 16px;
    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 #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);
    }
}



/* data e hora coleta juntos */
.coleta-data-hora{
    display:flex;
    gap:10px;
}

.coleta-data-hora input{
    flex:1;
}

/* valor da carga maior que auxiliares */
.coleta-data-hora input[name="valorcarga"]{
    flex:3;
}

.coleta-data-hora select[name="auxiliares"]{
    flex:2;
}



/* 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 .fconfig {
    margin-top: 10px;
}
.footer i.bi {
    color: #777 !important;
}


/* RESPONSIVO celular */
@media(max-width:575px){
    
    .banner-section {
      padding-bottom: 35px;
    }
    
    .container-pai .banner-background {
      margin-top: -80px;
      max-width: 300px; /* Limita o crescimento e cria o respiro em telas grandes */
      height: 139px; /* Ajuste a altura como preferir */
    }

}
/* RESPONSIVO tablet */
@media (min-width: 576px) and (max-width: 930px) {
    
    .banner-section {
      padding-bottom: 25px;
    }
    
    .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 */
    }
    
}
/* RESPONSIVO desktop */
@media (min-width: 931px) {
    
    .banner-section {
      padding-bottom: 5px;
    }
    
    .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 */
    }
    
}
/* 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;
    }

    .hero-left h1 span1 {
        font-size:40px;
    }
    .hero-left h1 span2 {
        font-size:38px;
    }

    .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
========================= */

.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 {
    width: 100%;
    max-width: 700px;

    max-height: 92vh;
    
    overflow-y: auto;
    scrollbar-width: none;

    background: #333;

    border-radius: 10px 10px 0 0;

    padding: 0 28px 0px 28px;

    transform: translateY(100%);
    transition: transform 0.35s ease;
}

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

.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: 15px;
    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-inline .result-value {
    text-align: left;
    white-space: normal;
    margin-left: 4px;
    color: #E7E7E7;
    font-weight: 500;
}

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

.result-value {
    font-size: 15px;
    color: #9ca3af !important;
}

.result-price {
    background: rgba(50,205,50,0.12);
    border: 1px solid rgba(50,205,50,0.25);
    padding: 0 17px; /* 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;
}

.result-price span {
    color: #9ca3af;
    margin-right: 5px;
}

.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: 10px;
}

.result-mapa-rota-btn {
    margin-right: 4px; /* 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 {
    padding: 0 9px;   /* Zera o padding vertical */
    height: 48px;      /* Mesma altura dos outros */
    font-size: 13px;
    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:12px;
    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: 10px;
    max-width: 420px;
}
.info-kangoo1 p {
    font-size: 15px;
}
.info-kangoo2 p {
    margin-top: 10px;
    font-size: 15px;
}



/* 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 5px 10px;
    background: rgba(68,68,68,1.0);
    color: #E7E7E7;
    font-size: 9px;
    cursor: pointer;
    border-radius: 10px;
}
.geo-info .pin-red {
    font-size: 9px;
    color: red;
}
.geo-info .pin-green {
    font-size: 9px;
    color: rgba(0,255,0,1.0);;
}

.btn-ativalocalizacao button {
    position: fixed;
    z-index: 10;
    top: 5px;
    right: 5px;
    padding: 5px 10px 5px 10px;
    background: rgba(68,68,68,0.4);
    color: #E7E7E7;
    font-size: 9px;
    font-style: normal;
    cursor: pointer;
    border-radius: 8px;
    padding:5px 10px;
}
.btn-ativalocalizacao .bi-crosshair{
        color: #E7E7E7;
}
.btn-ativalocalizacao button,
.btn-ativalocalizacao button:focus,
.btn-ativalocalizacao button:active {
    border: none;
    outline: none;
    box-shadow: none;
}


/* 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;
    }

    .map-modal{
        padding:12px; /* cria “respiro” externo */
    }
}



/* RADIO BUTTONS - PESO MERCADORIA  wagner */
.peso-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom:20px;
}

/* LABEL EM CIMA */
.peso-label {
    font-size: 14px;
    margin-bottom: 5px;
    color: #E7E7E7;
}

/* LINHA DOS BOTÕES */
.peso-options {
    margin-top: -10px;
    display: flex;
    gap: 2px;
}

/* BOTÕES */
.peso-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    border-radius: 999px;
    background: #222;
    cursor: pointer;
    transition: 0.2s ease;
    font-size: 13px;
    color: #707070;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

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

/* ESTADO ATIVO */
.peso-btn:has(input:checked) {
    background: #BBBBBB;
    color: #000;
    font-weight: bold;
}

/* HOVER */
.peso-btn:hover {
    color: #E7E7E7;
    background-color: color-mix(in srgb, #E7E7E7 30%, black);
}


.form-overlay-error {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
    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);
}

.form-error-box::after {
    content: "Fechar";
    width: 100%;
    height: 30px;
    background: rgba(255,0,0,0.7);
    border-radius: 10px;
    position: relative;
    top: 15px;
    margin-bottom: 15px;
    font-size: 11px;
    color: rgba(255,255,255,0.9);
    opacity: 1.0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;

}


/* debug calculos */
/* DEBUG CALCULOS */
#debugContent {
    white-space: pre-wrap;
}

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

.debug-overlay.active {
    display: flex;
}

.debug-box {
    width: 95vw;
    max-width: 1400px;
    height: 90vh;

    display: flex;
    flex-direction: column;

    background: #111;
    border-radius: 8px;
    padding: 15px;

    z-index: 9999;
}

.debug-columns {
    flex: 1;

    display: flex;
    gap: 15px;

    min-height: 0;
}

.debug-panel {
    flex: 1;

    display: flex;
    flex-direction: column;

    min-width: 0;

    border: 1px solid rgba(255,255,255,.12);
    border-radius: 6px;
    padding: 10px;
}

.debug-title {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 14px;
}

#debugContent {
    flex: 1;
    overflow: auto;
    margin: 0;
    color: #00ff66;
    font-size: 14px;
    white-space: pre;
}

.debug-config {
    flex: 1;
    overflow: auto;
    margin: 0;

    color: orange;

    white-space: pre;
    font-family: Consolas, monospace;
    font-size: 13px;
}

#closeDebug {
    margin-top: 15px;
}

@media (max-width: 768px) {

    .debug-columns {
        flex-direction: column;
    }

    .debug-panel {
        min-height: 250px;
    }

}

/* Chrome, Edge, Safari */
#debugContent::-webkit-scrollbar,
.debug-config::-webkit-scrollbar {
    width: 0;
    height: 0;
}

/* Firefox */
#debugContent,
.debug-config {
    scrollbar-width: none;
}

/* IE antigo */
#debugContent,
.debug-config {
    -ms-overflow-style: none;
}



/* =========================
   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;
}

