/* contactstyles.css */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #f4f6f8;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 1rem;
}

main {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  width: 100%;
  max-width: 500px;
}

h1 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #222;
}

form div {
  margin-bottom: 1rem;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

input,
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 3px rgba(0, 123, 255, 0.3);
}

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

p[id^="error-"] {
  color: #d32f2f;
  font-size: 0.9rem;
  margin-top: 0.3rem;
  height: 1rem; /* keeps space even if no error */
}

button {
  width: 100%;
  background: #007bff;
  color: white;
  font-size: 1rem;
  padding: 0.75rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

button:hover {
  background: #0056b3;
}

[data-testid="test-contact-success"] {
  text-align: center;
  margin-top: 1rem;
  color: #388e3c;
  font-weight: 600;
}

/* Navigation between pages */
body > nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(244, 246, 248, 0.9);
  padding: 1rem;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body > nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

body > nav a {
  text-decoration: none;
  color: #007bff;
  font-weight: 500;
  transition: color 0.2s ease;
}

body > nav a:hover {
  color: #0056b3;
  text-decoration: underline;
}

body > nav a:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

/* Adjust body padding to account for fixed nav */
body {
  padding-top: 4rem;
}

/* ✅ Responsive layout */
@media (max-width: 600px) {
  main {
    padding: 1.5rem;
  }

  input,
  textarea,
  button {
    font-size: 0.95rem;
  }
}
