*{
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

main{
    padding: 8rem 5rem 2rem; 
}

body{
    font-weight: 600;
}

/*Cabeçalho*/


.cabecalho {
    display: flex;
    flex-direction: row;
    font-size: 1.2rem;
    font-weight: 500;
    align-items: center;
    justify-content: space-between;
    padding: 10px 2rem;

    position: fixed;   
    top: 0;
    left: 0;
    right: 0;
    background-color: white; 
    z-index: 1000;     
    border-bottom: 1px solid #ccc; 
}

#botoes{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

#barraBuscar{
    justify-content: center;
}

.cabecalho img{
    width: 8rem;
}

.cabecalho a{
    color: black;
    text-decoration: none;
    padding: 1rem;
}

.cabecalho button{
    border: none;
    background-color: black;
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
}
.cabecalho button:hover{
    background-color: #2B89ED;
    transition: 0.3s ease;
}

/*Formulário*/

.formulario {
    display: flex;
    flex-direction: column;
    margin: 5% auto;       /* centraliza horizontalmente */
    padding: 2rem 2rem;    /* reduz padding para telas pequenas */
    border: solid 1px #373737;
    max-width: 500px;      /* largura máxima do formulário */
    width: 90%;            /* ocupa 90% da tela em mobiles */
    box-sizing: border-box;
}

h1{
    text-align: center;
    margin-bottom: 2rem;
}



.button{
    background-color: #000000;
    border: none;
    color: white;
    font-size: 1rem;
    padding: 1rem;
    margin: 1rem 0;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
}

.button:hover{
    background-color: #2B89ED;
    transition: 0.3s ease;
}


input{
    margin-bottom: 1rem;
    border: solid 2px #E0E0E0;
    border-radius: 5px;
    font-size: 1rem;
    height: rem;
    padding: 10px;
}

p{
    margin: 1rem 0;
}

.error{
    color: red;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

.input-error{
    border-color: red !important;
}

fieldset {
    border: 1px solid #ccc;   
    border-radius: 8px;       
    padding: 20px;            
    margin-top: 20px;         
}

legend {
    font-weight: bold;
    padding: 0 10px;          
    margin-bottom: 15px;      
}

label{
    padding: 5px 0;
}

fieldset label,
fieldset input {
    margin-top: 10px;
}

.button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Estilo para grupo de rádio */

.radio-container {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.radio-container > label {
    display: block;
    font-weight: 600;
}

.radio-options {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
}

.radio-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    cursor: pointer;
}

.radio-options input[type="radio"] {
    transform: scale(1.1);
    cursor: pointer;
    margin-bottom: 0;
    width: auto;
}

.submit-message {
    background-color: #28a745; 
    color: white;
    font-weight: 500;
    text-align: center;
    padding: 0.8rem;
    border-radius: 6px;
    margin-top: 0.5rem;
    display: none; 
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

input, .button {
    width: 100%;
    box-sizing: border-box;   /* inclui padding na largura total */
}

.radio-options {
    flex-direction: column;   /* já está, mas reforça para mobiles */
}
