
:root {
    --background-color: #0a0a23;
    --dot-color: #ffffff;
    --size: 5px;
    --cor-principal: #ff9700;
    --cor-texto: #333;
    --cor-fundo: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    /* font: Impact; */
    font: Arial, Helvetica, sans-serif;
}

body {
    color:rgb(0, 0, 0);
    background-color:rgb(255, 255, 255); 
    font-family: Arial, Helvetica, sans-serif;
}

header ul {
    background-color: var(--cor-principal);
    color: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    width: 100%; 
    box-sizing: border-box;
}
  
a {
    color: #000;
    text-decoration: none;
}

header a p {
    text-decoration: underline;
}

header img.logo {
    width: 100px;
    height: auto;
}

.usrlogo {
    position: relative;
    top: 5px;
    width: 25px;
    height: 25px;   
}

section{
    height:100vh;
    position: relative;

    & .info-cotacao{
        color: rgb(0, 0, 0);
        width: 90vw;
        height: 30%;
        margin: auto;
        position: relative;
        top: 2.5vw;

        & h1{
            font-size: 40px;
        }

        & p{
            font-size: 18px ;
        }
    }

    & .container-cotacao{
        position: relative;
        margin: auto;
        width: 100vw;
        height: 80vh;

        & .line{
            & ul{
                & li{
                    position: absolute;
                    width: 100vw;
                    height: 3px;
                    top: 2.5vh;
                    background-color: var(--cor-principal);
                    opacity: 0.6;
                }
            }
        }

        & .lined{
            & ul{
                & li{
                    position: absolute;
                    width: 100vw;
                    height: 3px;
                    top: 2.5vh;
                    background-color: var(--cor-principal);
                    opacity: 0.6;
                }
            }
        }

        & img{
            position: absolute;
            width: 100%;
            height: 100%;
            object-fit: cover;
            top: 3%;
            z-index: -1;
            opacity: 0.4;
        }

        & .cotacao{
            position: relative;
            padding-top: 5vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 100%;

            & h2{
                font-size: clamp(2rem, 8vw, 3rem);
                color: rgb(0, 0, 0);
                text-align: center;
                margin-bottom: 20px;

                & a{
                    position: absolute;
                    font-size: 20px;
                }
            } 

            & form{
                background: white;
                padding: 30px;
                border-radius: 12px;
                box-shadow: 0 8px 25px rgba(0,0,0,0.1);
                display: flex;
                flex-direction: column;
                gap: 15px;
                width: 100%;
                max-width: 480px;
                box-sizing: border-box;
                transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
                
                & .form-group {
                    display: flex;
                    flex-direction: column;
                    text-align: left;
                }
                & label{
                    font-size:  0.9rem;
                    font-weight: 600;
                    margin-bottom: 5px;
                    color: #333;
                }

                & input{
                    width: 100%;
                    height: 45px;
                    font-size: 1rem;
                    padding: 0 12px;
                    border-radius: 8px;
                    border: 1px solid #ccc;
                    transition: all 0.3s ease;
                }
                
                & input:focus {
                    outline: none;
                    border-color: #ff9700;
                    box-shadow: 0 0 5px rgba(255, 151, 0, 0.4);
                }

                & .btnenviar{
                    width: 100%;
                    height: 48px;
                    margin-top: 10px;
                    font-size: 1.1rem;
                    font-weight: bold;
                    border-radius: 8px;
                    border: none;
                    cursor: pointer;
                    background-color: #55514e;
                    color: white;
                    transition: background-color 0.3s ease, opacity 0.3s ease;
                
                }

                & .btnenviar.enabled{
                    font-size: 20px;
                    border-radius: 5px;
                    border: 1px solid var(--cor-principal);
                    cursor: pointer;
                    background-color: var(--cor-principal);

                    &:hover{
                        background-color: var(--cor-principal);/**/
                    }
                }
            }
            
            & .container-loading{
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background-color: rgba(255, 255, 255, 0.7);
                display: none; 
                justify-content: center; 
                align-items: center;
                border-radius: 12px; 
                border: 1px solid #add8e6;
                z-index: 20; 
        
            }
            
            & .loading{
                background-color: var(background-color);
                width: 100%;
                height: 100%;
                position: relative;
                top: 0;
                left: 0;
                z-index: 9999;
                overflow: hidden;
                display: flex;
                align-items: center;
                justify-content: center;

            }
            
            & .dot {
                border: var(--size) solid var(--dot-color);
                border-radius: 50%;
                margin: calc(var(--size)*2);
            }
            & .dot:nth-child(1) {
                animation: processing-loading 0.6s ease-in-out infinite alternate;
            }
            & .dot:nth-child(2) {
                animation: processing-loading 0.6s ease-in-out infinite alternate .2s;
            
            }
            & .dot:nth-child(3) {
                animation: processing-loading 0.6s ease-in-out infinite alternate .4s;
            }
        }
    }
}

.loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid var(--cor-principal);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite; 
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

footer{
    position: relative;
    width: 100%;
    height: 120px;
    top: 100vh;
    margin-top: 40px;
    display: grid;
    align-items: start;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    z-index: 2;
    background-color: var(--cor-principal);
    padding: 15px 20px;
    box-sizing: border-box;
}

footer .a-img{
    width: 100px;
    grid-column:1;
    align-self: center;
}

footer .a-img .logo-footer {
    margin-left: 0px;
    width: 120px;
}

footer .trademark {
    grid-column: 2;
    margin-top: 28px;
}

footer .trademark .linkAP {
    text-decoration: underline; 
}

footer nav { 
    grid-column: 3;      
    justify-self: end;    
}

footer nav ul {
    display: grid;
    grid-template-columns: repeat(2, auto); 
    width: auto;        
    gap: 10px;          
    list-style: none;   
    padding: 0;        
    margin: 0;         
}

footer nav ul li .btn-cotacao,
footer nav ul li .btn-perfil {
    width: 70px; 
    padding: 8px 12px; 
    height: 30px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    margin-top: 28px;
}

footer nav ul li .btn-cotacao {
    background-color: #000000;
    color: #ffffff;
}

footer nav ul li .btn-perfil {
    background-color: #bdbdbd;
    color: #000000;
}

footer div.trademark + nav + div { 
    grid-column: 2;    
    margin-top: 15px;   
}

.rodape-form{
    width:100%;
    text-align: left;

    & td{
        padding: 10px;
        padding-left: 0;
    }
}

.social-icons {
    grid-column: 3;
    width: auto;
    display: flex; 
    gap: 10px; 
    justify-self: end; 
    margin-top: 15px; 
}

.social-icons img{
    width: 30px;
    height: 30px;
}


.noto-sans-jp-regular {
    font-family: "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
    font-weight: 800;
    font-style: normal;
}

@keyframes processing-loading {
    100% {
        transform: scale(2);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100%); 
    }
    100% {
        transform: translateX(0); 
    }
}

.lista {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 80px;
    padding: 40px 0;
    flex-wrap: wrap;
}
  
.card {
background-color: #fff;
border-radius: 12px;
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
flex: 1 1 300px;
max-width: 400px;
height: 525px;
text-align: center;
padding: 20px;
margin: 0;
transition: transform 0.3s ease;
}

.card img {
width: 100%;
height: 359.41px;
border-radius: 8px;
margin-bottom: 12px;
}

.card h3 {
margin-top: 16px;
font-size: 18px;
font-weight: 600;
color: #000;
}

.card p {
font-size: 14px;
color: #666;
margin-top: 8px;
line-height: 1.4;
}

.resultado-frete {
    background-color: #f0f8ff;
    border: 1px solid #add8e6;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-size: 1.2rem;
}

.resultado-frete.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.resultado-frete strong {
    color: #00008b;
    font-size: 1.3rem;
}

.resultado-frete strong {
    color: #00008b; 
}

#resultado-frete {
    font-size: 1.2rem;
}

/* .resultado-frete p.error-message {
    color: red;
    font-weight: 600;
    font-size: 1rem;
} */

.error-message {
    color: red;
    font-weight: 600;
    font-size: 1rem;
}

#cotacao-form input:focus {
    outline: none;
    border-color: var(--cor-principal);
    box-shadow: 0 0 5px rgba(255, 151, 0, 0.5); 
}

#cotacao-wrapper {
    position: relative;
    display: flex;
    justify-content: center; 
    align-items: flex-start;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

#info-panel {
    position: absolute;
    top: 0;
    left: 50%;
    width: 100%;
    max-width: 480px;
    min-height: 415px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100vw);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

#cotacao-wrapper.calculando #cotacao-form {
    transform: translateX(-105%);
}

#cotacao-wrapper.calculando #info-panel {
    transform: translateX(5%);
    opacity: 1;
    visibility: visible;
}

@media (max-width: 992px) {
    #cotacao-wrapper {
        flex-direction: column;
        align-items: center;
    }
    
    #info-panel {
        position: relative;
        left: auto;
        margin-top: 20px;
        transform: translateY(20px);
        min-height: auto;
    }
    /*Configuração para o mobile*/
    #cotacao-wrapper.calculando #cotacao-form {
        transform: translateX(0);
    }

    #cotacao-wrapper.calculando #info-panel {
        transform: translateY(0);
    }
}

#container-loading, #resultado-frete {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 20px;
    box-sizing: border-box;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000; 
    
    display: none; 
    justify-content: center;
    align-items: center;
    
    animation: fadeIn 0.3s ease;
}

.modal-backdrop.visible {
    display: flex;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.25);
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
}

.modal-icon {
    width: 60px;
    margin-bottom: 15px;
}

.modal-content h2 {
    margin-bottom: 15px;
    color: #333;
}

.modal-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #888;
    cursor: pointer;
    line-height: 1;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}