/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/

#contact {
  width: 100vw;
}

#contact form {
  padding-bottom: 20px;
  position: relative;
}

#contact .input {
  position: relative;
  width: 100%;
}

#contact .input::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: black;
  left: 0;
  bottom: 0;
}

#contact .input label {
  -webkit-transition: all .25s;
  -o-transition: all .25s;
  transition: all .25s;
  width: 100%;
  display: block;
}

#contact .input label {}

#contact .input label,
#contact .input input {
  color: black;
  font-size: 54px;
  font-weight: 400;
  letter-spacing: 0.54px;
  line-height: 120%;
  padding-bottom: 12px;
}

#contact .input input {
  position: absolute;
  border: none;
  left: 0;
  top: 0;
  width: 85%;
  height: 100%;
  background: transparent;
  /* z-index: -1; */
}

#contact .input:has(input.not-empty) label,
#contact .input:has(input:focus) label {
  opacity: 0;
  pointer-events: none;
}

#contact input:focus {
  outline: none;
}

#contact button {
  cursor: pointer;
  border: 1.5px solid black;
  max-width: 200px;
  width: 100%;
  gap: 71px;
  padding: .12rem 1.74rem;

  position: absolute;
  right: 0;
  top: 0;
  z-index: 9999;
}

#bottom {
  padding-top: 336px;
  width: 100vw;
}

#bottom svg {
  display: block;
  width: 100%;
}

.successMsg, .errorMsg {
  font-size: 2rem;
}
.successMsg {
  opacity: 0;
  position: absolute;
  top: 0;
  transform: scale(0.5);
  font-size: 3rem;
  transition: opacity 0.15s cubic-bezier(0.33, 1, 0.68, 1),transform 0.15s cubic-bezier(0.33, 1, 0.68, 1);
  width: 100%;
  text-align: center;
  pointer-events: none;
}
.errorMsg {
  margin-top: 0.5rem;
  display: none;
  color: #FF5353;
}
.error .errorMsg,
.success .successMsg {
  display: block;
}
.input, #subscribe {
  transition: opacity .1s0.15s cubic-bezier(0.33, 1, 0.68, 1),transform 0.15s cubic-bezier(0.33, 1, 0.68, 1);
}
.success .input, .success #Subscribe {    
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}
.success .successMsg {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  z-index: auto;
  pointer-events: all;
}

@media (max-width: 1000px) {
  #contact form {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #contact .input {
    width: 100%;
    margin-bottom: 2rem;
  }

  #contact .input label,
  #contact .input input {
    font-size: 24px;
    font-weight: 400;
    line-height: 120%;
    letter-spacing: 0.24px;
  }

  #contact form button {
    position: static;
  }

  #bottom {
    padding-top: 166px;
    width: 100vw;
  }

  #bottom svg {
    height: auto;
  }

  .successMsg, .errorMsg {
    margin-top: 1rem;
    font-size: 1.5rem;
  }
}