:root {
    --pri: #0063a3;
    --seg: #fff;
    --err: rgb(255, 0, 0);
    --com: #00cc44;
}

* {
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

body {
    width: 90%;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    max-width: 800px;
    min-height: 100vh;
    background-color: var(--pri);
    font-family: "Roboto", sans-serif;
    font-size: 30px;
    color: var(--seg);
    box-sizing: border-box;
    background-image: url(logo_marca_up/serra.png), url(logo_marca_up/logo.png);
    background-repeat: no-repeat, no-repeat;
    background-position: top right, left bottom;
    background-size: 45%, 10%;
}

.steps ol {
    display: flex;
    justify-content: space-between;
    list-style: none;
    gap: 5px;
    padding: 5px 0;
}

.steps .step {
    flex: 1;
    height: 15px;
    background: #b0b0b0;
    border-radius: 4px;
}

.steps .atual {
    background: #00ff66;
}

.steps .completada {
    background: var(--com);
}

.nome,
.cnpj,
.nomeEmpresa {
    width: 100%;
    border: var(--seg) solid 4px;
    border-radius: 5px;
    background: none;
    text-align: center;
    font-size: 25px;
    height: 55px;
    color: var(--seg);
    margin: 3px 0 0 0;
}

.button {
    position: relative;
    width: 100%;
}

.advance {
    width: 200px;
    height: 50px;
    position: absolute;
    right: 0;
    border: var(--com) solid 3px;
    background: none;
    border-radius: 5px;
    color: var(--com);
    cursor: pointer;
    margin: 5px 0 0 0;
}

.voltar {
    width: 200px;
    right: 0;
    height: 50px;
    border: var(--seg) solid 3px;
    background: none;
    border-radius: 5px;
    color: var(--seg);
    cursor: pointer;
    margin: 5px 0 0 0;
}

.reiniciar {
    position: absolute;
    width: 200px;
    bottom: 10px;
    right: 10px;
    height: 50px;
    border: rgb(255, 187, 0) solid 3px;
    background: none;
    border-radius: 5px;
    color: rgb(255, 187, 0);
    cursor: pointer;
    margin: 5px 0 0 0;
}

#fim {
    text-align: center;
    display: flex;
}

.novopedido {
    width: 60%;
    height: 55px;
    font-size: 30px;
    border: var(--seg) solid 3px;
    background: none;
    border-radius: 5px;
    color: var(--seg);
    cursor: pointer;
    margin: 5px 0 0 0;
}

#text {
    margin: 70px auto;
}

h2 {
    text-align: center;
    margin: 50px;
}

h3 {
    text-align: center;
    margin: 50px;
    font-size: 33px;
}

.assunto {
    width: 100%;
    border: var(--seg) solid 4px;
    border-radius: 5px;
    background: none;
    text-align: center;
    font-size: 25px;
    height: 55px;
    color: var(--seg);
    margin: 10px auto;
    cursor: pointer;
}

.information {
    width: 100%;
    height: 300px;
    padding: 10px;
    font-size: 25px;
    color: var(--seg);
    background: none;
    border: 4px solid var(--seg);
    border-radius: 5px;
    line-height: 1.4;
    overflow: auto;
    resize: none;
}

.title {
    width: 100%;
    border: var(--seg) solid 4px;
    border-radius: 5px;
    background: none;
    text-align: center;
    font-size: 25px;
    height: 50px;
    color: var(--seg);
    margin: 10px auto;
}

.anexos {
    text-align: center;
}

.dropzone {
    text-align: center;
    border-radius: 5px;
    border: var(--seg) dashed;
    height: 250px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.dropzone.is-dragover {
    background: rgba(255, 255, 255, 0.452);
    border-color: #00ff00d3;
}

#img-videos {
    display: none;
}

.imgs {
    display: none;
    margin: 5px auto;
    height: 150px;
    overflow-x: auto;
    scrollbar-color: rgb(255, 255, 255) rgba(255, 255, 255, 0);
}

.imgs.has-items {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    align-items: center;
}

.imagens {
    position: relative;
    flex: 0 0 120px;
    border-radius: 8px;
    border: solid #afafaf;
    height: 120px;
    width: 120px;
    box-sizing: border-box;
    overflow: hidden;
}

.imagens .deletar {
    position: absolute;
    top: 1px;
    right: 1px;
    width: 19px;
    height: 19px;
    border-radius: 10px;
    background: rgba(231, 10, 10, 0.712);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .6);
    cursor: pointer;
    display: grid;
}

.imagens:empty {
    display: none;
}

.imagens img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.hidden {
    display: none;
}

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

input.erro,
textarea.erro {
    border: 5px solid var(--err);
}

.msg-erro {
    color: var(--err);
    font-size: 30px;
    margin-top: 8px;
    text-align: center;
}

.dropzone.erro {
    border-color: var(--err);
}

input.erro::placeholder,
textarea.erro::placeholder {
    color: var(--err);
    opacity: 1;
}

.selecionado {
    border: var(--com) solid 4px;
    color: var(--com);
}

.pag {
    display: none;
}

/* mensagem informativa (não-erro) */
.msg-info {
    color: var(--seg);
    font-size: 30px;
    margin-top: 8px;
    text-align: center;
}

@media (max-width: 768px) {

    body {
        width: 100%;
        max-width: 100%;
        font-size: 20px;
        padding: 16px 16px 24px;
        background-image: url(logo_marca_up/logo.png);
        background-repeat: no-repeat;
        background-position: 50% 56px;
        background-size: 120px;
    }

    .steps {
        position: relative;
        z-index: 2;
        margin: 0 auto 8px;
        width: 100%;
        max-width: 800px;
    }

    .pag {
        margin-top: 140px;
    }

    h2 {
        margin: 24px 0;
        text-align: center;
    }

    h3 {
        margin: 24px 0;
        font-size: 24px;
        text-align: center;
    }

    #text {
        margin: 24px auto;
    }

    .nome,
    .cnpj,
    .title {
        font-size: 18px;
        height: 48px;
        border-width: 3px;
    }

    .assunto {
        font-size: 18px;
        height: 52px;
        border-width: 3px;
    }

    .information {
        height: 180px;
        font-size: 18px;
        border-width: 3px;
    }

    .dropzone {
        height: 180px;
    }

    .imgs {
        height: 100px;
    }

    .imagens {
        width: 100px;
        height: 100px;
    }

    .steps ol {
        gap: 4px;
    }

    .button {
        display: flex;
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 10px;
        width: 100%;
        margin-top: 16px;
    }

    .reiniciar{
    position: static !important;
    width: 100%;
    height: 50px;
    font-size: 18px;
    margin: 10px 0 0 0;
    }

    .button .advance,
    .button .voltar{
        position: static !important;
        width: 100%;
        height: 50px;
        font-size: 18px;
        margin: 0;
    }

    .novopedido {
        width: 100%;
        height: 54px;
        font-size: 18px;
    }

    .msg-erro,
    .msg-info {
        font-size: 18px;
    }
}

@media (max-width: 375px) {
    body {
        font-size: 18px;
        background-position: 50% 52px;
        background-size: 96px;
    }

    .pag {
        margin-top: 120px;
    }

    .button .advance,
    .button .voltar {
        height: 50px;
    }

    .nome,
    .cnpj,
    .title {
        height: 46px;
    }

    .assunto {
        height: 48px;
    }
}