body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    font-size: 16px;
}

h1 {
    color: #333;
    text-align: center;
    margin-top: 1rem;
}

.abaTop{
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 1rem;
}

.abaButton{
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
}

.FormEntregue{
    display: flex;
    gap: 50px;
}

.FormEntregue .labelRadio{
    width: 20%;
}

.FormEntregue label{
    width: 50%;
}

.labelRadio {
    width: 15%;
}

.ButtonAba{
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    padding: 10px 20px;
    background-color: #5c0f1e;  
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.ButtonAba:hover {
    background-color: #981630;
}

.layout {
    width: 800px;
    font-size: 1.2rem;
    margin: 0 auto;
    background-color: #fff;
    padding: 1.1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.required {
    color: red;
}

label {
    display: inline-block;
    width: 25%;
    margin-bottom: 10px;
    color: #333;
    font-weight: bold;
}

.tempoAfastadoLabel{
    width: 20%;
}

input[type="text"][name="tempoAfastado"] {
    width: 15%;
}

input[type="text"], input[type="date"] {
    width: calc(55% + 14% + 1%);
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

button[type="submit"] {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #5c0f1e;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
}

#cep, #cpf {
    width: 55%;  
    padding: 10px;
    border-radius: 5px;
}

.btn-consultar {
    width: 14%;
    padding: 10px;
    font-size: 12px;
    font-weight: bold;
    border: 1px solid;
    border-radius: 3px;
    cursor: pointer;
}

button[type="submit"]:hover {
    background-color: #981630;
}

footer p {
    font-family: Arial, sans-serif;
    color: #333;
    white-space: nowrap;
    justify-content: center;
    display: grid;
    font-size: 14px;
}

.metodo label {
    width: 30%;
}

@media (max-width: 768px) {
    form {
        display: contents;
    }

    .layout {
        width: 90%;
    }

    .labelRadio {
        display: flex;
        align-items: center;
        margin-bottom: 0.5rem;
    }

    .labelRadio input[type="radio"] {
        margin-right: 0.5rem;
    }

    label {
        display: inline-block;
        margin-bottom: 10px;
        color: #333;
        font-weight: bold;
    }

    .FormEntregue{
        flex-direction: column;
        gap: 10px;
    }

    .FormEntregue label{
        width: 100%;
    }
    
    .abaTop{
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: .5rem;
        flex-direction: column;
        align-content: center;
        flex-wrap: wrap;
    }

    .abaButton{
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: .5rem;
        flex-direction: column;
        align-content: center;
        flex-wrap: wrap;
    }

    #cep, #cpf {
        width: 38%;  
        padding: 10px;
        border-radius: 5px;
    }
    
    .btn-consultar {
        padding: 10px;
        font-size: 12px;
        font-weight: bold;
        border: 1px solid;
        border-radius: 3px;
        cursor: pointer;
    }

    button[type="button"] {
        width: 50%;
    }

    h1 {
        margin-top: .5rem;
        font-size: 1.5rem;
    }

    form {
        width: 80%; /* Reduza a largura do formulário */
        font-size: 0.8rem;
    }

    label {
        width: 100%; /* Ocupa a largura total */
        margin-bottom: .5rem;
    }

    input[type="text"], input[type="date"] {
        width: 90%; /* Ocupa a largura total */
    }

    button[type="submit"] {
        width: 100%;
    }


}