:root{
    --solid1: #041F4F;
    --solid2: #061633;
    --solid3: #0c2550;

    --transparent1 : #04204f79;
    --transparent2 : #04204f23;
}

*{
    margin: 0;
    border: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    background: #1D1E3A;
    background-image: url(assets/bg.webp);
    background-position: 50% 10%;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 5vh 0 10vh;
    overflow-x: hidden;
}
form{
    display: block;
    margin-inline: auto;
    width: 90vw;
    padding: 2rem;
    border-radius: 2rem;
    max-width: 1000px;

    box-shadow: 0px 10px 10px black;
    background-color: var(--transparent2);
    backdrop-filter:blur(32px) saturate(1.2);
    -webkit-backdrop-filter: blur(32px), saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.322);
    border-top: 4px solid rgba(255, 255, 255, 0.37);
}
form .logo{
    width: 12rem;
    display: block;
    margin: 0 auto 2rem;
    border-radius: 10px;
}
form .step-bar{
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
}
form .step-bar::before{
    content: "";
    position: absolute;
    height: 2px;
    right: 0;
    left: 0;
    background-color: #ffffff52;
    top: 50%;
    z-index: -1;
}
form .step-bar .step{
    width: max-content;
    display: none;
    gap: 1rem;
    align-items: center;
    border: 3px solid var(--solid3);
    background-color: #0a1b3f;
    backdrop-filter: opacity(0);
    -webkit-backdrop-filter: opacity(0);
    border-radius: 2rem;
    padding: 0rem 1rem 0rem 0rem;
}
form .step-bar .step.active{
    width: 100%;
    display: flex;
    justify-content: start;
    background-color: var(--solid3);
    box-shadow: 0px 0px 20px -5px #e62e5983;
    transition: background-color 300ms;
}
form .step-bar .step.active p{
    color: white;
}
form .step-bar .step.active p:first-child{
    color: #E62E59;
}
form .step-bar .step p{
    font: 700 0.8rem 'Arial';
    color: #ffffff52;
}
form .step-bar .step p:first-child{
    font-size: 1.3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    border-radius: 1.5rem;
    background-color: #ffffff14;
    color: #ffffff52;
    width: 2rem;
    height: 2rem;
}



.form-step{
    display: none;   
}
.form-step.active{
    display: block;
    animation: opacity 0.3s linear;
}
@keyframes opacity{
    0%{opacity: 0;}
    100%{opacity: 1;}
}
  
.form-step .wrapper{
    display: block;
    margin-top: 2rem;
    gap: 5vw;
}
.form-step .wrapper .column{
    width: 100%;
}
.form-step .flex{
    display: flex;
    gap: 1rem;
}
.form-step .flex .flexChield{
    width: 100%;
}
.form-step p.description{
    margin-top: 2rem;
    font: 500 1rem 'Arial';
    color: #ffffff;
}
.form-step p.question{
    display: block;
    font: 700 1rem 'Arial';
    color: #ffffff;
}
.form-step p.instruction{
    font: 500 0.8rem 'Arial';
    color: rgba(255, 255, 255, 0.753);
    margin-top: 0.5rem;
}
.form-step input,
.form-step select{
    width: 100%;
    font: 700 1rem 'Arial';
    padding: 0.8rem;
    border: none;
    border-radius: 10px;
    margin-top: 0.5rem;
    margin-bottom: 1.8rem;
    outline: none;
    color: #ffffff;
    background-color: #ffffff14;
    background-color: var(--transparent1);
    border: 1px solid rgba(255, 255, 255, 0.315);
}
.form-step input:focus,
.form-step select:focus{
    box-shadow: 0px 0px 5px rgba(255, 255, 255, 0.301);
}
.form-step select option{
    width: 100%;
    font: 700 1rem 'Arial';
    color: #ffffff52;
    background-color: #343254;
    border: none;
    
}

/*input type="file"*/
.upload-field {
    display: flex;
    border-radius: 8px;
    position: relative;
    gap: 10px;
    white-space: nowrap;
    max-width: 400px;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    background-color: var(--transparent1);
}
.upload-field .file-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 10px;
    flex: 1;
    padding: 0.5rem;
    overflow: hidden;
    font: 500 1rem 'Arial';
    color: #ffffff;
}
.upload-field .file-label .file-icon img {
    width: 2rem;
    height: 2rem;
}
.upload-field .file-label .file-placeholder {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1rem;
    color: #ccc;
    display: inline-block;
}
.upload-field input[type="file"] {
    display: none;
}
.upload-field .delete-btn {
    background: #E62E59;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: none;
}

/*radio-wrapper*/
.radio-wrapper{
    display: flex;
    flex-direction: row;
    gap: 2rem;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
}
.radio-wrapper .item{
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.radio-wrapper .item input{
    display: none;
}
.radio-wrapper .item label.check{
    padding: 3px;
    border: 3px solid #ffffff;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.radio-wrapper .item label.check span{
    opacity: 0;
    display: block;
    width: 1rem;
    height: 1rem;
    border-radius: 50px;
    background-color: #E62E59;
}
.radio-wrapper .item input:checked + label.check span{
    opacity: 1;
    transition: opacity 300ms;
}
.radio-wrapper .item p.option{
    display: block;
    font: 700 1rem 'Arial';
    color: #ffffff
}

/* choices plugin*/
.choices__inner{
    background-color: #ffffff14;
    border-radius: 20px;
    border: none;
    margin-top: 1rem;
}
/*estiliza o foco*/
.choices__list--dropdown .choices__item--choice{
    background-color: #1D1E3A;
    color: #ffffff;
    font: 700 0.8rem 'Arial';
}
.choices__list--dropdown .choices__item--choice:hover{
    color: #ffffff;
}
/*estiliza o foco*/
.choices__list--dropdown .choices__item--choice.is-highlighted {
    color: #1D1E3A;
}
/*estiliza as tags */
.choices__list--multiple .choices__item {
    border-radius: 100px;
    font: 700 0.8rem 'Arial';
    color: #ffffff;
    border: none;
    background-color: #1D1E3A;
}

/*buttons*/
.button-group {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: 1rem;
    gap: 2rem;
}
.button-group p.legend{
    font: 500 1rem 'Arial';
    color: #787bba;
}
.button-group .buttons{
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}
button{
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 0.8rem 1rem;
    border: 4px solid #ffffff52;
    border-radius: 10px;
    text-align: left;
    font: 700 1rem 'Arial';
    cursor: pointer;
    color: #ffffff;
    background-color: #ffffff00;
}
button img{
     width: 1.2rem;
}
button.left{
    border: none;
    color: #787bba;
}
button.left img{
    transform: rotate(180deg);
}    
button:hover {
    transition: all 300ms;
    box-shadow: 0px 0px 0px 5px #e62e5956;
}
button[disabled] {
    cursor: not-allowed;
    opacity: 0;
}

/*terms*/
.terms{
    display: flex;
    gap: 0.5rem;
    align-items: start;
}
.terms input{
    display: none;
}
.terms label{
    display: block;
    border-radius: 10px;
    padding: 3px;
    background-color: #ffffff14;
}
.terms label img{
    width: 1.5rem;
    height: 1.5rem;
    opacity: 0;
}
.terms input:checked + label{
    width: max-content;
    background-color: #E62E59;
}
.terms input:checked + label img{
    opacity: 1;
}
.terms p{
    font: 700 0.8rem 'Arial';
    color: #ffffff
}
.terms p a{
    text-decoration: none;
    color: #1cd3d3;
}


input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] {
    appearance: texfield;
}

/*animation*/
#loader{
    overflow: hidden;
    display: none;
}
.feedback{
    padding: 2rem;
    width: 80vw;
    height: max-content;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #1D1E3A;
    border-radius: 20px;
    z-index: 2;
}
.feedback p.title{
    font: 700 1.5rem 'Arial';
    color: #ffffff;
    text-align: center;
}
.feedback-bg{
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.507);
}
.newtons-cradle {
    --uib-size: 50px;
    --uib-speed: 1.2s;
    --uib-color: #ffffff;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-inline: auto;
    margin-top: 2rem;
    width: var(--uib-size);
    height: var(--uib-size);
}
.newtons-cradle__dot {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    width: 25%;
    transform-origin: center top;
}
.newtons-cradle__dot::after {
    content: '';
    display: block;
    width: 100%;
    height: 25%;
    border-radius: 50%;
    background-color: var(--uib-color);
}
   
.newtons-cradle__dot:first-child {
    animation: swing var(--uib-speed) linear infinite;
}
   
.newtons-cradle__dot:last-child {
    animation: swing2 var(--uib-speed) linear infinite;
}
   
@keyframes swing {
    0% {
        transform: rotate(0deg);
        animation-timing-function: ease-out;
    }
   
    25% {
        transform: rotate(70deg);
        animation-timing-function: ease-in;
    }
   
    50% {
        transform: rotate(0deg);
        animation-timing-function: linear;
    }
}   
@keyframes swing2 {
    0% {
        transform: rotate(0deg);
        animation-timing-function: linear;
    }
   
    50% {
        transform: rotate(0deg);
        animation-timing-function: ease-out;
    }
   
    75% {
        transform: rotate(-70deg);
        animation-timing-function: ease-in;
    }
}
   


@media screen and (min-width: 1280px){
    form{
        width: max-content;
    }
    .form-step .wrapper{
        display: flex;
        margin-top: 2rem;
        gap: 5vw;
    }
    form .step-bar .step{
        display: flex;
        justify-content: space-between;
    }
    form .step-bar .step.active{
        width: max-content;
    }
    .feedback{
        padding: 5rem;
        width: max-content;
    }
}
