.newsletter-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  position: relative;
}

@media screen and (min-width: 768px) {
  .newsletter-form {
    align-items: flex-start;
    margin: 0 auto;
    /* max-width: 36rem; */
    max-width: 511.14px;
  }
}

.newsletter-form__field-wrapper {
  width: 100%;
}

.newsletter-form__field-wrapper .field__input {
  padding-right: 5rem;
  background-color: #dcdcdc;
  border:1px solid rgba(var(--color-foreground), .1);
  padding: 5px 5px 5px 24px;
  padding-right: 154px ;
  height: 6rem;
  outline: 0;
  box-shadow: none;
}

.newsletter-form__field-wrapper .field {
  z-index: 0;

}

.newsletter-form__message {
  justify-content: center;
  margin-bottom: 0;
}

.newsletter-form__message--success {
  margin-top: 2rem;
}

@media screen and (min-width: 768px) {
  .newsletter-form__message {
    justify-content: flex-start;
  }
}

.newsletter-form__button {
    background-color: #f7f5f1;
    border: 1px solid #d8d2c6;
    color: #111;
  width: 4.4rem;
  margin: 0;
  right: var(--inputs-border-width);
  top: 0;
  height: 100%;
  z-index: 2;
}

/* .newsletter-form__button:focus-visible {
  box-shadow: 0 0 0 0.3rem rgb(var(--color-background)), 0 0 0 0.4rem rgba(var(--color-foreground));
  background-color: rgb(var(--color-background));
}

.newsletter-form__button:focus {
  box-shadow: 0 0 0 0.3rem rgb(var(--color-background)), 0 0 0 0.4rem rgba(var(--color-foreground));
  background-color: rgb(var(--color-background));
} */

/* .newsletter-form__button:not(:focus-visible):not(.focused) {
  box-shadow: inherit;
  background-color: inherit;
} */

.newsletter-form__button .icon {
  width: 1.5rem;
}
.newsletter-form__button{
    background-color: rgba(var(--color-foreground), .1);
    border: 1px solid rgba(var(--color-foreground), .1);
  width: 154px;
  border-radius: 1rem;
  height: 5rem;
  top: 6px;
  right: 5px;
  font-size: 1.4rem;
  transition: all .3s ease-in-out;
  font-weight: 500;
  filter: brightness(1.005);
}

.newsletter-form__button:hover{
  background-color: var(--secondary-button-hover-color);
  color: var(--secondary-color);
}
@media (max-width: 989px) {
  .newsletter-form__field-wrapper .field__input{
    padding: 5px 154px 5px 20px;
  }
  .newsletter-form__button{
    width: 144px;
  }
  .newsletter-form__field-wrapper .field__input{
    height: 5.6rem;
  }
  .newsletter-form__button{
    height: 4.6rem;
  }
}
