/* Reset e base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Roboto, sans-serif;
  background-color: #f4f8fb;
  color: #2c3e50;
  line-height: 1.6;
  padding: 20px;
}

header {
  background: linear-gradient(90deg, #1d3557, #457b9d);
  color: #fff;
  text-align: center;
  padding: 40px 20px;
  font-size: 2.5rem;
  font-weight: bold;
  border-radius: 8px;
  margin-bottom: 40px;
}

section {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

section h2 {
  font-size: 1.8rem;
  color: #1d3557;
  margin-bottom: 20px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 10px;
}

.palestrante {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.palestrante img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.palestrante h3 {
  color: #2c3e50;
  font-size: 1.5rem;
  margin-bottom: 8px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

label {
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
}

input[type="text"],
input[type="email"] {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus {
  border-color: #457b9d;
  outline: none;
}

fieldset {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 15px;
  margin-top: 10px;
}

legend {
  font-weight: bold;
  color: #2c3e50;
}

button {
  padding: 12px;
  background-color: #1d3557;
  color: #fff;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #457b9d;
}

#mensagem {
  display: none;
  color: green;
  font-weight: bold;
  margin-top: 20px;
}

footer {
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  color: #666;
  border-top: 1px solid #ddd;
  margin-top: 40px;
}

@media (max-width: 768px) {
  header {
    font-size: 2rem;
    padding: 30px 10px;
  }
}