/* General form styling */
main {
  max-width: 600px;
  margin: 50px auto;
  padding: 2rem 1rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

h1 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Form container */
form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Honeypot field (hidden from users) */

.honeypot {
    position: absolute;
    left: -9999px;
  }


/* Field styling */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

label {
  font-size: 1rem;
  font-weight: 500;
  color: #333;
}

label abbr {
  color: #e63946;
  text-decoration: none;
}

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

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* Error and success messages */
.alert {
  padding: 0.75rem;
  border-radius: 5px;
  font-size: 0.9rem;
}

.alert.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  display: block;
  margin-top: 0.5rem;
}

/* Submit button */
input[type="submit"] {
  padding: 0.75rem 1.5rem;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

input[type="submit"]:hover {
  background-color: #0056b3;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }

  input[type="text"],
  input[type="email"],
  textarea {
    font-size: 0.9rem;
  }

  input[type="submit"] {
    padding: 0.6rem 1.2rem;
  }
}
