* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font);
}

/* Variáveis globais */

:root {
    --white: #fff;
    --bg-img: #2135A6;
    --orange: #F3541c;
    --semantic-error: #DC2626;
    --text-primary: #292524;
    --text-secondary: #57534E;
    --text-tertiary: #8F8881;
    --bg-disabled: #E7E5E4;
    --font: 'Poppins', sans-serif;
    --smooth: 0.3s all ease;
    --text-small: 15px;
}

body {
    position: relative;
    width: 100vw;
    height: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow-x: hidden;
}

/* ================ PRIMEIRO CONTAINER ============== */

.box-form {
    position: relative;
    width: 50vw;
    height: auto;
    background-color: var(--white);
    padding: 3vmax 6vmax;
}

.icon-voltar {
    position: relative;
    display: flex;
    justify-content: start;
    align-items: center;
    width: auto;
    height: auto;
    cursor: pointer;
    padding: 0.5vmax 1vmax;
    border-radius: 0.5vmax;
    height: 5vh;
    width: 10vw;
    transition-duration: 1s;

}

.icon-voltar:hover,
.icon-voltar:hover h2 {
    transition: cubic-bezier(0.075, 0.82, 0.165, 1);
    background-color: var(--orange);
    color: var(--white);
}

.icon-voltar h2 {
    font-weight: 300;
    color: var(--text-primary);
    padding-left: 1vmax;
    font-size: 1.4vmax;
    transition-duration: 1ms;
}

.text-title {
    position: relative;
    width: 100%;
    height: auto;
    padding: 1.3vmax 0;
}

.text-title h1 {
    font-size: 1.7vmax;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5vmax;
}

.text-title p {
    font-size: 1.1vmax;
    font-weight: 400;
    color: var(--text-primary);
}

form h2 {
    font-size: 1.2vmax;
    font-weight: 600;
    color: var(--text-primary);
    margin: 2.2vmax 0 1.7vmax 0;
}

.form-grupo {
    position: relative;
    width: inherit;
    height: auto;
    display: flex;
    justify-content: start;
    align-items: start;
    flex-direction: column;
    margin: 2vmax 0;
}

.form-grupo .fa-eye,
.fa-eye-slash {
    position: absolute;
    top: 60%;
    left: 93%;
    font-size: 1.1vmax;
    color: var(--text-secondary);
    cursor: pointer;
}

.form-grupo input,
select {
    position: relative;
    width: 100%;
    height: auto;
    padding: 0.8vmax 1vmax;
    border-radius: 0.5vmax;
    border-color: var(--bg-disabled);
    border-width: 1px;
    transition: border-color 0.3s ease;
}

.form-grupo input:focus,
select:focus {
    box-shadow: 0 0 0 1px var(--orange);
    border-color: var(--orange);
    border-width: 0.1vmax;
    outline: none;

}

.form-grupo label,
option {
    color: var(--text-secondary);
    margin-bottom: 0.5vmax;
}

input[type="text"],
input[type="date"],
input[type="email"],
input[type="tel"] {
    color: var(--text-tertiary);
}

input[type="email"] {
    border-width: 0.1vmax;
}

.form-grupo span {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-grupo .upload-box {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 30vh;
    border: 2.5px dashed var(--bg-disabled);
    border-radius: 10px;
    cursor: pointer;
}

.upload-box:hover {
    border: 2.5px dashed var(--orange);
    color: var(--orange);
}

.upload-box img {
    position: relative;
    width: 4vmax;
    height: auto;
    margin-bottom: 1vmax;
}

.form-grupo .upload-box p {
    color: var(--text-tertiary);
}

.form-grupo.inline {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.inline .box-1 {
    position: relative;
    width: 65%;
    height: auto;
}

.inline .box-2 {
    position: relative;
    width: 32%;
    height: auto;
}

.box-1 input,
.box-2 input,
.box-2 select {
    margin-bottom: 2vmax;
}


.form-grupo .box h3 {
    font-size: 1vmax;
    font-weight: 400;
    color: var(--text-secondary);

}

.form-trilhas {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    height: auto;
}

.form-trilhas .box {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 18vw;
    height: 10vw;
    border: 0.16vmax solid var(--bg-disabled);
    border-radius: 0.8vmax;
    transition: var(--smooth);
    cursor: pointer;
}

.form-trilhas .box img {
    position: relative;
    width: 2.5vmax;
    height: auto;
    margin-bottom: 1vmax;
}

.form-trilhas .box:focus-within {
    border: 0.16vmax solid var(--orange);
    transition: var(--smooth);

}

.form-trilhas .box input[type="radio"] {
    position: absolute;
    top: 0.4vmax;
    left: 0.4vmax;
    width: 1.2vmax;
    height: 1.2vmax;
}

.form-condicoes {
    position: relative;
    width: 100%;
    height: auto;
}

.form-condicoes input[type="checkbox"] {
    width: 1vmax;
    height: 1vmax;
    margin-right: 0.5vmax;

}

.form-condicoes label {
    font-size: 1vmax;
    font-weight: 400;
    color: var(--text-secondary);
}

.form-condicoes label span {
    color: var(--orange);
}

.buttons {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    justify-content: end;
    align-items: center;
    margin: 3vmax 0;
}

.buttons button {
    position: relative;
    width: auto;
    height: auto;
    padding: 0.8vmax 1.8vmax;
    border-radius: 0.7vmax;
    border: none;
    cursor: pointer;
}

.buttons button:nth-child(1) {
    border: 0.15vmax solid var(--orange);
    background-color: transparent;
    color: var(--orange);
    font-size: 1vmax;
    font-weight: 500;
}

.buttons button:nth-child(2) {
    margin-left: 2vmax;
    border: 0.15vmax solid var(--orange);
    background-color: transparent;
    color: var(--orange);
    font-size: 1vmax;
    font-weight: 500;
    opacity: 0.5;
    pointer-events: none;
}

#cancelar:hover,
#inscrever:hover {
    background-color: var(--orange);
    color: var(--white);
}

/* ================ SEGUNDO CONTAINER ============== */

.box-img {
    position: fixed;
    top: 0;
    left: 50%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: column;
    padding: 2vmax 0;
    right: 0;
    bottom: 0;
    width: 50vw;
    height: 100vh;
    background-color: var(--bg-img);
    overflow: hidden;
}

.box-img img {
    position: relative;
    width: auto;
    height: auto;
    object-fit: cover;
}

.box-img img:nth-child(2) {
    width: 60%;
}

.error-text {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    color: var(--semantic-error);
}

input.error,
select.error {
    border-color: var(--semantic-error) !important;
}

/* ================ RESPONSIVIDADE ============== */

@media screen and (max-width: 992px) {
    body {
        flex-direction: column-reverse;
    }

    .form-grupo .fa-eye,
    .fa-eye-slash {
        left: 95%;
        font-size: 14px;
    }

    h2,
    h3 {
        font-size: var(--text-small) !important;
    }

    .box-form {
        width: 100vw;
    }

    .box-img {
        position: relative;
        width: 100vw;
        top: 0;
        left: 0;
        margin-bottom: 50px;
    }

    .box-img img:nth-child(1) {
        width: auto;
    }

    .box-img img:nth-child(2) {
        width: auto;
    }

    .form-trilhas {
        justify-content: space-around;
    }

    .form-trilhas .box {
        width: 400px;
        height: 200px;
        margin: 10px 0;
        border: 3px solid var(--bg-disabled);
    }

    .form-trilhas .box input[type="radio"] {
        top: 7px;
        left: 7px;
        width: 15px;
        height: 15px;
    }

    .form-condicoes label {
        font-size: 12px;
    }
}

@media screen and (max-width: 498px) {

    .form-grupo .fa-eye,
    .fa-eye-slash {
        left: 93%;
    }

    .box-form {
        padding: 20px;
    }

    .icon-voltar h2 {
        font-size: 18px !important;
    }

    .text-title h1 {
        font-size: 20px !important;
    }

    .text-title p {
        font-size: 15px !important;
    }

    form h2 {
        margin: 40px 0 10px 0;
    }

    .upload-box p {
        font-size: 14px;
    }

    .box-img img:nth-child(1) {
        width: 90%;
    }

    .form-trilhas .box {
        width: 100%;
        height: 200px;
    }

    .form-trilhas .box img {
        width: 50px;
    }

    .form-trilhas .box h3 {
        font-size: 16px !important;
    }

    .buttons button {
        padding: 12px 20px;
        font-size: 12px !important;
    }

    .form-condicoes input[type="checkbox"] {
        width: 15px;
        height: 15px;
    }

    .form-condicoes label {
        font-size: 12px;
    }
}