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

/* 2. Estilos Gerais do Corpo (body) */
body {
    background-color: #222; 
    color: #eee; 
    font-size: 16px; 
    font-family: sans-serif;
    text-align: center; 
    padding: 20px;
}

/* 3. Estilos do Cabeçalho (header) */
header {
    background-color: #333;
    margin-bottom: 30px;
    padding: 20px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Título principal do blog (h1) */
header h1 {
    color: #4CAF50;
    font-size: 2.8em; 
    margin-bottom: 15px;
}

/* Parágrafo de introdução (p) */
header p {
    color: #bbb;
    font-size: 1.1em;
    margin-bottom: 25px;
    /* Alinhamento: Justifica o texto */
    text-align: justify; 
    max-width: 600px; 
    margin-left: auto;
    margin-right: auto;
}

/* Imagem principal */
header img {
    max-width: 80%;
    height: auto;
    display: block; 
    margin-left: auto;
    margin-right: auto;
}


/* 4. Estilos do Conteúdo Principal (main) */
main {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px 0;
}

/* Seção do Formulário */
#formulario {
    background-color: #333;
    padding: 30px;
    margin-top: 30px;
    text-align: center;
    max-width: 500px; 
    margin-left: auto;
    margin-right: auto;
}

/* Título do formulário (h2) */
#formulario h2 {
    color: #4CAF50;
    font-size: 2em;
    margin-bottom: 25px;
}


/* 5. Estilos do Formulário (form) - SIMPLIFICADO */
form {
    /* Alinhamento: Centraliza o formulário */
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 1px;
}

/* Labels dos campos do formulário */
form .form-group label {
    color: #eee;
    font-size: 1.05em;
    text-align: left;
    display: block; /* Ocupa sua própria linha */
    margin-bottom: 5px; 
    margin-top: 15px; 
}

/* Campos de input e textarea */
form .form-group input[type="text"],
form .form-group input[type="email"],
form .form-group textarea {
    background-color: #444;
    color: #fff;
    padding: 10px;
    width: calc(100% - 20px); 
    font-size: 1em;
    border: 1px solid #555; /* Borda simples */
}

/* Botão de envio */
form button[type="submit"] {
    background-color: #4CAF50;
    color: white;
    padding: 12px 20px;
    font-size: 1.1em;
    width: 100%; 
    border: none;
    cursor: pointer; /* Muda o cursor ao passar por cima */
    margin-top: 20px;
}

/* Estilos do Rodapé (footer) */
footer {
    background-color: #111;
    color: #888;
    padding: 20px;
    margin-top: 40px;
    text-align: center;
    font-size: 0.9em;
    width: 100%; 
}