/* footer top */
.footer-top-background {
  background-color: var(--brand2);
  min-height: 400px;
  max-width: 1920px;
  margin: auto;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding: 40px 0;
  margin-top: 120px;
  margin-bottom: 50px;
  position: relative;
  height: 400px;
}
/* image */
.footer-image {
  width: 724px;
  height: auto;
}
.footer-image img {
  display: block;
  width: 100%;
  height: 100%;
}

/* newsletter */
.footer-newsletter {
  background: var(--black1);
  color: #fff;
  padding: 50px;
  border-radius: 8px;
  width: 600px;
  position: absolute;
  right: 0;
  top: 93px;
  display: flex;
  flex-direction: column;
}

.newsletter-title-description-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 60px;
  margin-top: 40px;
}

.newsletter-form input[type="email"] {
  padding: 14.5px 24px;
  border: 1px solid var(--grey1);
  background: transparent;
  color: var(--grey1);
  border-radius: 8px;
  height: 50px;
}

.newsletter-form input[type="email"]:hover {
  border-color: var(--white1);
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--white1);
  color: var(--white1);
}

.newsletter-form input[type="email"]:focus-visible {
  outline: unset;
}

.newsletter-form button.button1 {
  z-index: 3;
  background: var(--brand1);
  border: none;
  padding: 12px 32px;
  cursor: pointer;
  border-radius: 8px;
  transition: 0.3s ease all;
  color: var(--black1);
  -webkit-text-fill-color: var(--black1);
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  position: relative;
}

.newsletter-form button.button1::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: var(--brand1);
  z-index: -1;
}

.newsletter-form button.button1:hover:not(:disabled),
.newsletter-form button.button1:focus {
  background-color: var(--brand2);
  transition: 0.3s ease all;
  color: var(--black1);
  -webkit-text-fill-color: var(--black1) !important;
}

.newsletter-form button.button1:disabled {
  pointer-events: none;
  color: var(--grey1);
  -webkit-text-fill-color: var(--grey1);
}

/* Iphone autofill fix */
.newsletter-form,
.newsletter-form * {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-color: transparent !important;
}

.newsletter-note {
  color: var(--grey1);
  border-top: 1px solid var(--grey1);
  padding: 24px 52.5px 0px 52.5px;
  display: flex;
  justify-content: center;
  text-align: center;
}

.newsletter-msg {
  margin-top: -8px;
  margin-bottom: -18px;
  text-align: center;
}

/* Footer menu columns */
.footer-menus {
  display: flex;
  gap: 140px;
  margin-bottom: 32px;
}
.footer-menus .body4 {
  color: var(--grey1);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-menus .button2 {
  text-transform: capitalize;
}
.footer-menu-item .menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* Legal links */
.legal-links-wrapper {
  border-top: 1px solid var(--brand1);
  padding: 32px 0;
  display: flex;
  justify-content: space-between;
}
.legal-links-wrapper .button2 {
  color: var(--grey1);
  text-transform: capitalize;
}
.legal-menu {
  display: flex;
  row-gap: 16px;
  -moz-column-gap: 24px;
  column-gap: 24px;
  flex-wrap: wrap;
}
.legal-menu li,
.legal-menu li a {
  font-family: "HalisR";
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  color: var(--grey1);
  text-transform: capitalize;
}

.legal-menu a:hover,
.footer-menu-item .menu .menu-item:hover,
.legal-links-wrapper .webrom-link a:hover {
  text-decoration: underline;
  color: var(--black1);
}

.legal-links-wrapper .webrom-link a,
.legal-links-wrapper .webrom-link {
  text-transform: none;
}

@media (max-width: 1365px) {
  .footer-image {
    width: 600px;
  }
  .footer-newsletter {
    width: 530px;
  }
}
@media (max-width: 1180px) {
  .footer-top {
    flex-direction: column;
    align-items: center;
    height: auto;
    gap: 32px;
    margin-top: 50px;
  }

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

  .footer-image {
    width: 100%;
    max-width: 400px;
  }

  .footer-newsletter {
    position: static;
    width: 100%;
    max-width: 600px;
    margin-top: 0;
  }

  .legal-links-wrapper {
    flex-direction: column;
    gap: 32px;
  }
}

@media (max-width: 621px) {
  .footer-menus {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer-menus .footer-menu-item:nth-child(2) {
    justify-self: flex-end;
  }
  .footer-image {
    max-width: 318px;
  }
  .footer-newsletter {
    padding: 32px 24px;
  }
  .footer-top-background {
    background-color: unset;
    position: relative;
  }

  .footer-top-background::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 246px;
    background-color: var(--brand2);
    z-index: -1;
  }
  .footer-top {
    padding-top: 40px;
    padding-bottom: 0px;
  }
  .newsletter-form {
    margin: 32px 0;
  }
  .newsletter-note {
    padding-top: 24px;
    padding-left: 0px;
    padding-right: 0px;
  }
  .newsletter-form input[type="email"] {
    padding: 0 16px;
    height: 45px;
  }
}
