@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700&family=Nunito:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*{
    margin: 0;
    padding: 0;
}

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

h1, h2, h3{
    line-height: 1.25;
    font-weight: 700;
}


#input-diferenciado{
    display: none;
}

#garantia-diferenciada{
    display: none;
}

#garantia-diferenciada-pf{
    display: none;
}

:root {
--main-cotor: #0C0E3C;
--secondary-color: #9d1047;
--Lighter-color: #e0e0e7;
--Tight-color: #b0b0c0;
--dark-color: #52505e;;
--font-smalter: 14px;
--font-bigger: 26px
}

body{
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
    color: var(--dark-color);
}

html{
    scroll-behavior: smooth;
}

a{
    text-decoration: none;
    color: inherit;
}
ul{
    list-style: none;
}

.container{
    max-width: 1110px;
    margin: 0 auto;
    padding: 0 2em;
}

.form-box{
    display: flex;
    flex-direction: column;
    margin-top: 5em;
    border: 8px solid var(--Lighter-color);
    border-radius: 15px;
    background-color: #faf9ff;
}
.form-box .progress{
    position: relative;
    padding: 1em;
}

.logo{
    font-size: 1.75em;
    color: var(--dark-color);
    font-weight: 800;
    padding: 40px 48px;
    text-align: center;
}
.logo span{
    color: var(--secondary-color);
}

.progress ul.progress-steps {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2em;
}
.progress ul.progress-steps li{
    display: flex;
    align-items: flex-start;
    position: relative;
    margin-top: 2em;
}

.progress ul.progress-steps li > span{
    position: relative;
    width: 40px;
    height: 40px;
    font-size: var(--font-smalter);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1em;
    border-radius: 50%;
    background-color: var(--Lighter-color);
    z-index: 1;
}

.progress ul.progress-steps li.active > span{
    background-color: var(--main-cotor);
    color: white;
    border: 4px solid var(--secondary-color);
    z-index: 1;
}

.progress ul.progress-steps li p span{
    font-size: var(--font-smalter);
    color: var(--Tight-color);
    display: none;
}


.progress ul li p{
    position: absolute;
    top: -4em;
    font-size: 12px;
}


.form-box form{
    width: 100%;
    padding: 3em 1em;
    background-color: white;
    border-radius: 30px 30px 15px 15px;

}
form > div {
    max-width: 400px;
    margin: 0 auto;
}

form > div p {
    color: var(--Tight-color);
    margin-bottom: 2em;
 }
 
form label{
    font-size: var(--font-smalter);
    margin-bottom: 0.5em;
    font-weight: 600;
}

 form > div > div:not(.checkbox){
    display: flex;
    flex-direction: column;
    margin-bottom: 2em;
 }

 form :where(input, select):not([type="file"]){
    height: 40px;
    padding: 0 1em;
    border-radius: 7px;
    outline-color: var(--secondary-color);
    border: 1px solid var(--Lighter-color);
    background-color: transparent;
 }

 form input[type="file"] {
    height: 40px;
}



 .btn-group{
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    margin-top: 2em;
 }

 .btn-group [class*= "btn-"]{
    background-color: var(--main-cotor);
    color: white;
    padding: 1em 2.5em;
    border: 4px solid var(--secondary-color);
    border-radius: 30px;
    cursor: pointer;
    -webkit-transition:background-color .3s, border-color .3s ease-out; 
    transition: background-color .3s, border-color .3s ease-out;
 }

 .btn-group [class*= "btn-"]:disabled{
    background-color: var(--Tight-color);
    border-color: var(--Lighter-color);
    cursor: text;
 }
 .btn-group [class*= "btn-"]:disabled{
    background-color: var(--Tight-color);
    border-color: var(--Lighter-color);
    cursor: text;
 }

 .btn-group .btn-enviar{
    display: none;
 }


::placeholder{
    color: var(--Tight-color);
}

form > div:not(.btn-group){
    display: none;
    -webkit-animation: fadeIn .6s cubic-bezier(0.39, 0.575, 0.565, 1) both;
    animation: fadeIn .6s cubic-bezier(0.39, 0.575, 0.565, 1) both;
} 
@keyframes fadeIn{
    0%{
        opacity: 0;
        -webkit-animation: translateY(10%);
         animation: translateY(10%);
    }
    100%{
         opacity: 1;
        -webkit-animation: translateY(0);
         animation: translateY(0);  
    }
}

form > div.active{
    display: block;
}

.form-three.active ~ .btn-group .btn-next{
    display: none;
}
.form-three.active ~ .btn-group .btn-enviar{
    display: block;
}
.form-three.active ~ .btn-group {
    justify-content: space-between;
}


/*
form > div .bg-svg{
    width: 96%;
    max-width: 200px;
    height: 50px;
}

form > .form-one .bg-svg{
    background: url("/static/image/teste.png");
}
form > .form-two .bg-svg{
    background: url("/static/image/teste.png");
}

form > .form-three .bg-svg{
    background: url("/static/image/teste.png");
}
*/

@media screen and (min-width: 768px){

    .form-box{
        flex-direction: row;
    }

    .form-box .progress{
        flex: 1 0 35%;
        min-width: 300px;
        padding: 3em;
    }
    .logo{
        margin: -48px -48px 48px
    }

    .progress ul.progress-steps{
        flex-direction: column;
        gap: 0;
    }

    .progress ul.progress-steps li:not(:last-child)::before{
        content: "";
        position: absolute;
        left: 20px;
        top: 30px;
        width: 2px;
        height: 65px;
        background-color: var(--Lighter-color);
    }
    
    .form-box form{
        padding: 3em;
        border-radius: 0 15px 15px 0;
    }

    .progress ul li p{
        position: relative;
        top: auto;
        font-size: inherit;
    }
    .progress ul.progress-steps li p span{
        display: block;
        visibility: hidden;
    }
    
}
