/* ===== Reset & Base ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  background-color: #f7f7f7;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.back-arrow {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #4a8f29;
  text-decoration: none;
  font-weight: bold;
}

.back-arrow:hover {
  text-decoration: underline;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== Header ===== */
header {
  background-color: #2f7b2f;
  color: white;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
}

.logo img {
  height: 48px;
  max-width: 100%;
}

/* ===== Nav (Desktop) ===== */
nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

nav a {
  color: white;
  font-weight: 500;
  text-decoration: none;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background 0.3s ease;
}

nav a:hover,
nav a.active {
  background-color: rgba(255, 255, 255, 0.2);
}

/* ===== Menu Toggle Button (Mobile) ===== */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
}

.popup-message {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #4caf50;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: bold;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: opacity 0.4s ease;
}

.popup-message.error {
  background: #e74c3c;
}

.popup-message.success {
  background: #2ecc71;
}


/* ===== Responsive Menu ===== */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #2f7b2f;
    padding: 1rem;
    gap: 1rem;
    z-index: 100;
  }

  nav.open {
    display: flex;
  }

  nav a {
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }
}

/* ===== Main Container ===== */
main.container {
  width: 100%;
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
  flex-grow: 1;
}

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

/* ===== Contact Form ===== */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

form input,
form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  resize: vertical;
}

form textarea, 
form input {
  min-height: 120px;
}

form button {
  background-color: #2f7b2f;
  color: white;
  border: none;
  padding: 0.75rem;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

form button:hover {
  background-color: #256325;
}

/* ===== Footer ===== */
footer {
  background-color: #2f7b2f;
  color: white;
  text-align: center;
  padding: 1rem 2rem;
  font-size: 0.9rem;
  margin-top: auto;
}
