* {
    box-sizing: border-box;
}

main {
    margin: 0;
    padding-bottom: 60px; /* Add padding to the bottom to accommodate the footer */
    position: relative; /* Add relative positioning to the main element */
}

.contact-container {
  padding: 20px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h2 {
  color: #333;
  font-size: 28px;
  margin-bottom: 20px;
}

p {
  color: #555;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.contact-details {
  display: flex; /* Display the contact details in a row */
  justify-content: space-between; /* Add space between the details */
  align-items: center; /* Vertically center the details */
  margin-bottom: 20px;
}

.contact-details p {
  margin: 0;
}

.form-group {
  margin-bottom: 20px;
}

label {
  font-size: 16px;
  color: #333;
  display: block;
  margin-bottom: 5px;
}

input[type="text"],
input[type="email"],
textarea,
select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

textarea {
  resize: vertical;
}

button[type="submit"] {
  background-color: #007BFF;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #0056b3;
}

.success-message {
  background-color: #4CAF50;
  color: white;
  text-align: center;
  padding: 10px;
  margin-top: 10px;
}

.name-fields {
  display: flex;
  gap: 10px;
}

.name-fields input {
  flex: 1;
}
