body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f1e7;
  color: #333;
  line-height: 1.6;
}

h2 {
  text-align: center;
}

.wrapper nav ul {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  background-color: #4a7c59;
  margin: 0;
  padding: 1rem 2rem;
}

nav ul li {
  margin-left: 2rem;
}

nav ul li a {
  color: #f5f1e7;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: 0.3s;
}

nav ul li a:hover,
nav ul li a:focus {
  color: #fff;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

#hero {
  position: relative;
  min-height: 60vh;
  background: url("pexels-surene-palvie-2062061.jpg") center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}
#hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-text {
  color: #fff;
  font-size: 3rem;
  border: 4px double #fff;
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
  animation: fadeIn 2s ease-in-out;
}

.btn {
  padding: 0.7rem 2rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: 0.3s;
  z-index: 2;
}

.gradient-btn {
  background: linear-gradient(135deg, #c5d6b3, #4a7c59);
  color: #fff;
}

.gradient-btn:hover,
.gradient-btn:focus {
  background: linear-gradient(135deg, #4a7c59, #c5d6b3);
  outline: 2px solid #333;
}

#join-mailing:hover,
#join-mailing:focus {
  box-shadow: 0 0 15px rgba(197, 214, 179, 0.7);
  transform: translateY(-2px);
}

.parent {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
}

.forms {
  background-color: #4a7c59;
  padding: 2rem;
  border-radius: 10px;
  max-width: 500px;
  width: 100%;
  color: white;
  transition: transform 0.3s ease;
}

.forms:hover {
  transform: translateY(-5px);
}

.forms label {
  display: block;
  margin-bottom: 1rem;
}

.forms input,
.forms select {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.3rem;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
}

.forms input:focus,
.forms select:focus {
  outline: 2px solid #c5d6b3;
}

.checkbox {
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 30px;
  cursor: pointer;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkbox .checkmark {
  position: absolute;
  left: 0;
  top: 0;
  height: 20px;
  width: 20px;
  background-color: #fff;
  border: 2px solid #4a7c59;
  border-radius: 4px;
  transition: background-color 0.3s, transform 0.15s;
}

.checkbox input:checked ~ .checkmark {
  background-color: #4a7c59;
  transform: scale(1.1);
}

.checkbox .checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox input:checked ~ .checkmark:after {
  display: block;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.confirmation {
  background-color: #c5d6b3;
  color: #333;
  padding: 1rem 1.5rem;
  margin-top: 1rem;
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  text-align: center;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pop {
  transform: scale(1.1);
  transition: transform 0.15s ease-in-out;
}

.accordion {
  max-width: 500px;
  width: 100%;
  background-color: #4a7c59;
  border-radius: 10px;
  overflow: hidden;
  color: white;
  transition: transform 0.3s ease;
}

.accordion:hover {
  transform: translateY(-5px);
}

.accordion button {
  width: 100%;
  text-align: left;
  padding: 1rem;
  border: none;
  background-color: #6aa973;
  cursor: pointer;
  outline: none;
  transition: 0.3s;
  font-size: 1rem;
}

.accordion button:hover,
.accordion button:focus {
  background-color: #5b9962;
  outline: 2px solid #fff;
}

.answer {
  background-color: #fff;
  color: #333;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1rem;
}

.socialmedia {
  text-align: center;
  margin: 2rem 0;
}

.socialmedia a {
  font-size: 2rem;
  margin: 0 0.5rem;
  color: #4a7c59;
  transition: 0.3s;
}

.socialmedia a:hover,
.socialmedia a:focus {
  color: #333;
  outline: 2px solid #4a7c59;
  border-radius: 50%;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  animation: fadeInModal 0.3s ease-in-out;
}

.modal-content {
  background-color: #fff;
  padding: 2rem;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  position: relative;
  animation: slideDown 0.3s ease-in-out;
}

.modal-content input {
  width: 80%;
  padding: 0.5rem;
  margin: 1rem 0;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.modal-content button {
  padding: 0.6rem 1.5rem;
  background-color: #4a7c59;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

.modal-content button:hover,
.modal-content button:focus {
  background-color: #6aa973;
  outline: 2px solid #333;
}

.modal-content .close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
}

#mailing-message {
  margin-top: 1rem;
  font-weight: 600;
  color: #4a7c59;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInModal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (min-width: 768px) {
  .parent {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
  }
}
