.footer {
  width: 100%;
  /*bottom: 0;*/
  padding: 48px 24px;
  background: #e8edeb;
  border-top: 1px solid #7f775b;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.newsletter-section {
  width: 384px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 16px;
}

.newsletter-title {
  align-self: stretch;
  text-align: center;
  color: #1b5035;
  font-size: 20px;
  font-family: Heebo, sans-serif;
  font-weight: 500;
  word-wrap: break-word;
}

.newsletter-form {
  align-self: stretch;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.submit-icon {
  width: 24px;
  height: 24px;
}

.email-input {
  flex: 1;
  height: 45px;
  background: white;
  border: 1px solid #b7c6bf;
  border-right: none;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  padding: 0 12px;
  font-family: Inter, sans-serif;
  font-size: 16px;
  outline: none;
}

.email-input:focus {
  border-color: #1b5035;
  box-shadow: 0 0 0 2px rgba(27, 80, 53, 0.1);
}

.email-input::placeholder {
  color: #b7c6bf;
}

.submit-btn {
  width: 48px;
  height: 45px;
  padding: 6px 7px;
  background: #1b5035;
  border: none;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background: #0f3a26;
}

.submit-btn:active {
  background: #0a2a1a;
}

.footer-links {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 24px;
  padding-left: 24px;
}

.footer-link {
  color: #1b5035;
  font-size: 16px;
  font-family: Inter, sans-serif;
  font-weight: 600;
  text-decoration: none;
  word-wrap: break-word;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #0f3a26;
  text-decoration: underline;
}

.copyright {
  color: #1b5035;
  font-size: 16px;
  font-family: Inter, sans-serif;
  font-weight: 400;
  word-wrap: normal;
}

@media (max-width: 768px) {
  .footer {
    flex-direction: column;
    gap: 32px;
    padding: 32px 16px;
    text-align: center;
  }

  .newsletter-section {
    width: 100%;
    max-width: 384px;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer .logo-wrap,
  .footer .logo-anchor {
    width: 100%;
  }

  .footer .main-logo {
    height: 22px;
  }

  .footer-links {
    flex-direction: column;
    gap: 16px;
  }

  .newsletter-title {
    font-size: 18px;
  }
}

/*
 * footerTheme: 'forest': copyright on the left and the links on the right in
 * Cloud text, on whatever green section the page wraps around the footer.
 */
.footer.footer--forest {
  display: block;
  padding: 0;
  border: 0;
  background: none;
}

.footer--forest .footer-links {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 20px;
  padding: 0;
}

.footer--forest .footer-link,
.footer--forest .copyright {
  color: #e8edeb;
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
}

.footer--forest .footer-link:hover {
  color: #fff;
}

.footer--forest .copyright {
  order: -1;
  margin-right: auto;
}

@media (width < 860px) {
  .footer--forest .footer-links {
    flex-direction: row;
    justify-content: center;
    gap: 6px 16px;
    text-align: center;
  }

  .footer--forest .footer-link,
  .footer--forest .copyright {
    font-size: 12px;
  }

  .footer--forest .copyright {
    flex-basis: 100%;
    margin: 0 0 4px;
  }
}
