.formWrapper {
  margin: 50px 0;
  overflow: hidden;
}

#mainError {
  margin-bottom: 7px;
}

section {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 93%;
  /*background: linear-gradient(-45deg, var(--dark), var(--light));*/

  /*border-radius: 2px;*/
  margin: 0 auto;
}

.box {
  position: relative;
  /*background: linear-gradient(-45deg, var(--dark), var(--light));*/
}

.box .square {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  /*backdrop-filter: blur(5px);*/
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  animation: square 10s linear infinite;
  animation-delay: calc(-1s * var(--i));
}

@keyframes square {
  0%, 100% {
    transform: translateY(-20px);
  }
  50% {
    transform: translateY(20px);
  }
}

.box .square:nth-child(1) {
  width: 100px;
  height: 100px;
  top: -15px;
  right: -45px;
}

.box .square:nth-child(2) {
  width: 150px;
  height: 150px;
  top: 105px;
  left: -125px;
  z-index: 2;
}

.box .square:nth-child(3) {
  width: 60px;
  height: 60px;
  bottom: 85px;
  right: -45px;
  z-index: 2;
}

.box .square:nth-child(4) {
  width: 50px;
  height: 50px;
  bottom: 35px;
  left: -95px;
}

.box .square:nth-child(5) {
  width: 50px;
  height: 50px;
  top: -15px;
  left: -25px;
}

.box .square:nth-child(6) {
  width: 85px;
  height: 85px;
  top: 165px;
  right: -155px;
  z-index: 2;
}

.container {
  position: relative;
  width: 650px;
  min-height: 380px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  /* box-shadow: 0 25px 45px rgba(0, 0, 0, 0.2); */
}

.form {
  position: relative;
  height: 380px;
  text-align: center;
  display: flex;
  background: var(--whiteColor);
  width: 100%;
}

form {
  border: 1px solid var(--dark);
  border-radius: 0 2px 2px 0;
  width: 50%;
  display: flex;
  padding: 30px;
  flex-direction: column;
  justify-content: center;
}

.form h2 {
  color: #fff;
  letter-spacing: 2px;
  margin-bottom: 30px;
}

.form .inputBx {
  position: relative;
  width: 100%;
  margin-bottom: 10px;
}

.form .inputBx input, .form .inputBx textarea {
  width: 100%;
  outline: none;
  border: none;
  resize: none;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: rgba(0, 0, 0, 0.1);
  padding: 8px 10px;
  padding-left: 15px;
  border-radius: 2px;
  color: var(--dark);
  font-size: 16px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: .2s;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.form .inputBx input:focus, .form .inputBx textarea:focus {
  background: rgba(0, 0, 0, 0.1);
}


.form .inputBx input::placeholder, .form .inputBx textarea::placeholder {
  color: var(--light) !important;
  opacity: .5;
}

.form .inputBx textarea {
  height: 150px;
}

.form .inputBx p {
  color: var(--light);
  margin: 10px 0;
  margin-bottom: 0;
  display: none;
}

.form .inputBx input[type=submit] {
    background: #fff;
    color: var(--light);
    padding: 8px 10px;
    box-shadow: none;
    letter-spacing: 1px;
    cursor: pointer;
    transition: .2s;
    border: 1px solid rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.2);
}

.form .inputBx input[type=submit]:hover {
  background: rgba(0, 0, 0, 0.15);
  color: var(--dark);
  border: 1px solid var(--dark);
}

.form .inputBx input::placeholder {
  color: #fff;
}

.form .inputBx span {
  position: absolute;
  left: 30px;
  padding: 10px;
  display: inline-block;
  color: #fff;
  transition: 0.5s;
  pointer-events: none;
}

.form .inputBx input:focus ~ span,
.form .inputBx input:valid ~ span {
  transform: translateX(-30px) translateY(-25px);
  font-size: 12px;
}

.form p {
  color: #fff;
  font-size: 15px;
  margin-top: 5px;
}

.form p a {
  color: #fff;
}

.form p a:hover {
  background-color: #000;
  background-image: linear-gradient(to right, #434343 0%, black 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contactInfo {
    color: #fff;
    background: linear-gradient(-45deg, var(--dark), var(--light));

    height: 100%;
    width: 50%;

    border-radius: 2px 0 0 2px;

    padding: 30px;
    margin-bottom: 20px;
    
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contactInfo h1 {
  text-align: left;
  font-size: 35px;
}

.contactInfo i {
  margin-right: 10px;
}

.socialWrapper {
    display: flex;
    margin-bottom: 10px;
}

.contactInfoAddresses, .contactInfoPhones {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;

  text-align: initial;
}

.contactInfoAddresses a, .contactInfoPhones a {
  text-decoration: none;
  display: flex;
  align-items: center;
  margin: 10px 0;
}

.contactInfoAddresses a p, .contactInfoPhones a p {
  margin: 0 !important;
}

.contactInfoAddresses a img, .contactInfoPhones a img {
  margin-right: 8px;
}

@media (max-width: 768px) {

  section {
    padding: 0 25px;
    width: 100%;
    border-radius: 0;
  }

  .box {
    width: 100%;
  }

  .container {
    width: 85%;
    margin: 0 auto;
  }

  .box .square {
    display: none;
  }

  .form {
    height: auto;
    flex-direction: column;
  }

  .contactInfo {
    width: 100%;
    margin-bottom: 0;
    border-radius: 2px 2px 0 0;
  }

  form {
    width: 100%;
    border-radius: 0 0 2px 2px;
  }

}

@media (max-width: 500px) {
  
  section {
    overflow: hidden;
    padding: 0 15px;
  }

  .container {
    width: 100%;
    padding: 25px;
  }

}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--dark);
  transition: background-color 5000s ease-in-out 0s;
  box-shadow: 0 0 0px 1000px rgba(255, 255, 255, 0.01) inset;
  -webkit-box-shadow: 0 0 0px 1000px rgba(255, 255, 255, 0.01) inset;
}