* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100dvh;
    background-image: url('../assets/img/6lds_nvw5_190113.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    position: relative;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Ajuste a opacidade conforme necessário */
    z-index: 1;
}

.container {
    z-index: 2;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 700px;
    width: 100%;
    height: auto;
    padding-bottom: 30px;
}

h5 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 20px;
}

.input-field input, 
.input-field select {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-bottom: 15px;
    font-size: 1em;
    box-sizing: border-box;
}

.input-field label {
    font-size: 0.85em;
    color: #666;
    margin-top: 5px;
    transition: all 0.3s ease;
}

.input-field input:focus,
.input-field select:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5); 
}

.form-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.form-row .input-field {
    flex: 1 1 200px;
    min-width: 0;
}

/* Rua ocupa mais espaço, Nº é pequeno */
.row-rua { flex-wrap: nowrap; }
.field-rua { flex: 3 1 0; }
.field-num  { flex: 1 1 0; max-width: 80px; }

/* UF pequeno, CEP maior */
.row-uf-cep { flex-wrap: nowrap; }
.field-uf  { flex: 1 1 0; max-width: 110px; }
.field-cep { flex: 2 1 0; }

.form-step {
    display: none;
    padding: 20px;
    margin-top: 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-step.active {
    display: block;
}

.form-step h5 {
    color: #333;
    font-weight: bold;
    margin-bottom: 20px;
}

#step1 {
    display: block; 
}

.btn {
    margin-top: 20px;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: none;
}

.logo-topo {
    max-height: 130px;
    margin-top: 16px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.form-step .btn-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.form-step .btn-group .btn {
    margin-top: 0;
    flex: 0 1 auto;
    min-width: 120px;
    padding: 0 24px;
}

.login-btn {
    background-color: green; /* Cor vermelha */
    color: white;
}

.next-btn{
    margin-top: 0px;
}

.btn:hover {
    background-color: #0056b3;
}

/* Botão anterior */
.prev-btn {
    background-color: #6c757d;
}

.prev-btn:hover {
    background-color: #5a6268;
}

.prev-btn:hover {
    background-color: #5a6268;
}

/* Botão de voltar ao login */
.back-btn {
    background-color: #28a745;
    margin-top: 20px;
}

.back-btn:hover {
    background-color: #218838;
}

.submit-btn {
    background-color: #28a745;
}

.submit-btn:hover {
    background-color: #218838;
}

.form-container {
    padding: 20px;
}

input {
    margin-bottom: 20px;
}

/* Estilização para os campos de entrada */
input[type="text"], input[type="email"], input[type="tel"] {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 14px;
}

/* Estilização para o estado ativo do campo */
input:focus, select:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

@media (max-width: 600px) {

    body {
        background-attachment: scroll;
        background-size: cover;
        background-position: center top;
        align-items: center;
        padding: 0;
    }

    .container {
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.3);
        height: auto;
        min-height: unset;
        padding: 10px 8px 24px;
        margin: 16px 8px;
        width: calc(100% - 16px);
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-row .input-field {
        flex: 1 1 100%;
    }

    /* Rua + Nº e UF + CEP mantêm layout horizontal no mobile */
    .row-rua,
    .row-uf-cep {
        flex-direction: row;
        gap: 10px;
    }

    .row-rua .input-field,
    .row-uf-cep .input-field {
        flex: 1 1 0;
    }

    .field-num { max-width: 70px; }
    .field-uf  { max-width: 100px; }
    .field-uf select {
        font-size: 11px;
        padding: 4px 2px;
    }
    .field-uf label {
        font-size: 11px;
    }

    .form-step {
        padding: 16px 12px;
    }

    .logo-topo {
        max-height: 80px;
        margin-top: 12px;
        margin-bottom: 12px;
    }

    .form-step .btn-group {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }

    .form-step .btn-group .btn {
        flex: 0 1 auto;
        min-width: 110px;
        max-width: 160px;
        padding: 0 16px;
        height: 40px;
        line-height: 40px;
        font-size: 13px;
        text-align: center;
    }

    .back-btn {
        display: inline-block;
        width: auto;
        padding: 0 20px;
        height: 40px;
        line-height: 40px;
        font-size: 13px;
        text-align: center;
    }

    .btn {
        margin-top: 10px;
        font-size: 13px;
        height: 40px;
        line-height: 40px;
        padding: 0 16px;
    }

    h5 {
        font-size: 1.1em;
    }
}