/*------------- #SUBSCRIBE --------------*/


#subscribe-section {
  color: #fff;
  background-color: var(--primary-accent-color);
}

.subscribe {
  padding: 72px 15px;
  overflow: hidden;
  position: relative;

  @media (max-width: 1024px) {
    padding: 72px 15px 170px;
  }

  form {
    margin-bottom: 25px;
  }

  .subscribe-title {
    margin-bottom: 23px;
    color: inherit;
  }

  .sub-title {
    opacity: .75;
    float: left;
  }

  .images-block, .images {

    img {
      position: absolute;
      opacity: 0;
      max-height: 90%;

      &.mail {
        left: 0;
        bottom: -100%;

        @media (max-width: 1199px) {
          width: 11%;
        }

        @media (max-width: 768px) {
          width: 35%;
        }

        @media (max-width: 640px) {
          width: 40%;
        }

        @media (max-width: 360px) {
          width: 60%;
        }
      }

      &.gear {
        top: 50px;
        right: 0;

        @media (max-width: 800px) {
          top: 10px;
        }
      }

      &.mail-2 {
        bottom: -50px;
        right: -100%;
      }

    }
	  &.not-animated{
		  img{
			  opacity: 1;
			  &.mail {
				  opacity: 1;
				  bottom: 0
			  }
			  &.gear{
				  opacity: 1;
			  }
			  &.mail-2{
				  opacity: 1;
				  right: 20px;
			  }
		  }

	  }
  }
}

.form-subscribe {
  display: flex;
  flex-flow: row wrap;

  @media (max-width: 460px) {
    flex-direction: column;
    height: auto;
  }

  & > * {

    @media (max-width: 460px) {
      flex-direction: column;
      height: auto;
    }
  }

  input {
    background-color: $white-color;
    padding: 17px 40px;
    font-size: 16px;
    color: #797676;
    border-color: transparent;
    border-radius: 50px 0 0 50px;
    width: 69%;
    margin-bottom: 0;
    margin-right: 1px;

    @media (max-width: 460px) {
      width: 100%;
      margin-bottom: 20px;
      border-radius: 50px;
    }

    &:focus {
      box-shadow: 17px 0 60px #d3dcdc;
    }
  }

  &.with-name {
    input {
      width: 34%;
      margin-right: 1px;
    }

    .name{
      border-radius: 0;
      border-left: 1px solid $border-color;
    }

    @media (max-width: 460px) {
      input {width: 100%;}
      .name{
        border-radius: 50px;
        border-left: none;
      }
    }

	&.name-field-swap {
	  input {
		width: 35%;
		border-radius: 0;
		@media (max-width: 460px) {
		  width: 100%;
		  border-radius: 50px;
		}
	  }

	  .name{
		border-radius: 50px 0 0 50px;
		border-left: 1px solid $border-color;

		@media (max-width: 460px) {
		  width: 100%;
		  border-radius: 50px;
		}
	  }
	}
  }

  button {
    display: inline-block;
    padding: 18px 40px;
    border-radius: 0 50px 50px 0;
    font-size: 15px;
    text-transform: uppercase;
    width: 30%;
    cursor: pointer;
    position: relative;
    color: $white-color;
    text-align: center;
	background-color: var(--secondary-accent-color);

    @media (max-width: 480px) {
      padding: 17px 10px;
    }

    @media (max-width: 460px) {
      padding: 20px;
      width: 100%;
      border-radius: 50px;
    }
  }
}

.subscribe .emaillist {
  form {
    display: flex;
    align-items: flex-end;
  }

  .es-field-wrap {
    margin-bottom: 0;
    margin-right: 1px;

    &:first-child {
      input {
        border-radius: 50px 0 0 50px;
      }
    }

    &:nth-child(2) {
      input {
        border-radius: 0;
      }
    }
  }

  input {
    margin-bottom: 0;
  }

  br {
    display: none;
  }

  .es_subscription_form_submit {
    display: inline-block;
    background-color: #2f2c2c;
    padding: 20px 40px;
    font-size: 15px;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    color: #fff;
    text-align: center;
    width: auto;
    border-radius: 0 50px 50px 0;
  }
}


@media (max-width: 640px) {
  .subscribe .emaillist {
    form {
      flex-direction: column;
    }

    input {
      width: 100%;
    }

    .es-field-wrap {
      margin-bottom: 20px;
      width: 100%;

      &:first-child {
        input {
          border-radius: 50px;
        }
      }

      &:nth-child(2) {
        input {
          border-radius: 50px;
        }
      }
    }

    .es_subscription_form_submit {
      width: 100%;
      border-radius: 50px;
    }
  }
}