:root {
  --mainColor: #309A8A;
  
}

.contactH2 {
  text-align: center;
  margin: 1em;
}

.desc {
  width: 50%;
  margin: 0 auto;
  text-align: center;
  letter-spacing: 2px;
  line-height: 1.8em;
}

.contactForm {
  padding: 0 10em;
  padding-bottom: 8em;
  max-width: 1000px;
  margin: 0 auto;
  margin-top: 3em;
}

.contactForm p {
  margin: 1em 0;
}

textarea {
  width: 100%;
  min-height: 8em;
  resize: vertical;
  padding: 20px;
}

.agree {
  font-size: 1em;
  margin: 2em 0;
}

.btns {
  display: flex;
  justify-content: center;
  height: 100%;
}

.btns button {
  border: none;
  color: #FFF;
  background: var(--mainColor);
  padding: 0.8em 3em;
}

.clearValue {
  margin-left: 2em;
}

.form-field {
  position: relative;
}

.captcha {
  margin-top: 2em;
}


/* You can use "input ~ label" selector too */
input + label {
  position: absolute;
  left: 20px;
  top: 1.15em;
  transition: transform 200ms ease;
  color: #222;
  font-weight: 500;
  /* You have to use this to make it clickable through*/
  pointer-events: none;
}

::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #222;
}
::-ms-input-placeholder { /* Microsoft Edge */
  color: #222;
}

input:focus + label,
input + label.freeze {
  font-size: 0.7em;
  font-weight: 400;
  
  /* Use "Translate" function instead of classic positioning for better performance */
  transform: translateY(-3em);
}




/* Just design stuff */
/* ----------------- */
.form-field {
  width: calc(50% - 1em);
  margin-bottom: 2em;
}

.form-field:last-of-type {
  margin-bottom: 0;
}

input[type="text"], input[type="email"] {
  width: 100%;
  padding: 1em 20px;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  box-sizing: border-box;
}

input:focus {
  outline: none;
}

.flexInput {
  display: flex;
  display: flex;
  justify-content: space-between;
}

.downBlock {
  border-top: 1px solid #CCC;
  margin: 0 14em;
  text-align: center;
  padding: 4em 0;
}

.downBlock p {
  color: var(--textColor);
  font-size: 1.3rem;
  text-align: left;
  padding-left: 25%;
}

.downBlock img {
  width: 8em;
  
}


#id_trouble {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0;
  margin: 1em 0.6em;
}

#id_trouble li {
  list-style-type: none;
  padding: 0.5em 0;
}


@media screen and (max-width: 500px) {
  .contactForm {
    padding: 0 1em;
    padding-bottom: 2em;
  }
  .flexInput {
    flex-direction: column;
  }
  .form-field {
    width: 100%;
    margin-bottom: 2em;
  }
  .form-field:last-of-type {
    margin-bottom: 2em;
  }
  .btns button {
    padding: 0.8em 2em;
  }
  .desc {
    width: 80%;
  }
  .downBlock {
    margin: 0 auto;
  }
  .downBlock p {
    font-size: 1.2rem;
    text-align: center;
    padding-left: unset;
}
}




