/* Fomularz kontaktu */

.form-container {
  position: relative;
  display: flex;
  display: -moz-flex;
  display: -webkit-flex;
  display: -ms-flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  font-family: "Fira Sans", sans-serif;
  padding: 0 8em 1.5em 8em;
  height: auto;
  background: url("../images/bg-form.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 100% 100%;
  z-index: 20;
}

.remove-form-container {
  display: none;
}

.form-contact {
  width: 35em;
  height: auto;
}

.form-contact > p {
  padding: 0.5em 0.4em;
  text-align: center;
  font-size: 1.45em;
  width: 14em;
  color: #ffb03b;
  text-transform: uppercase;
  font-weight: bold;
  background-color: #fff;
}

.wpcf7 {
  width: 100%;
  height: auto;
}

.wpcf7 label {
  display: block;
  font-size: 0.8em;
  color: #468966;
  margin: 2.5em 0;
}

.wpcf7-form p:nth-child(6) label {
  margin: 0;
  padding: 0;
}

.wpcf7-form p:nth-child(6) label .wpcf7-form-control-wrap .zalacznik {
  min-width: 300px;
}

.wpcf7-not-valid-tip {
  line-height: 0;
  margin-top: 1em;
}

.wpcf7 .wpcf7-validation-errors {
  font-size: 0.8em;
  line-height: 1em;
  margin: 0.8em 0 0 0;
  padding: 0;
}

.wpcf7 label br {
  display: none;
}

.wpcf7-textarea {
  width: 100%;
  height: 160px;
  border: none;
  resize: none;
  font-family: "Fira Sans", sans-serif;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"] {
  -webkit-appearance: none;
  display: block;
  width: 25em;
  line-height: 2.5em;
  font-family: "Fira Sans", sans-serif;
}

.wpcf7 input[type="submit"] {
  padding: 0.2em 2em;
  text-transform: uppercase;
  margin-top: 0.8em;
  text-align: center;
  font-size: 1.05em;
  outline: none;
  border: none;
  cursor: pointer;
  font-family: "Fira Sans", sans-serif;
  background-color: #fff;
  color: #468966;
  font-weight: 600;
  transition: all 0.3s;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  -ms-transition: all 0.3s;
  -o-transition: all 0.3s;
}

.wpcf7 input[type="submit"]:hover {
  border-left: 5px solid #ffb03b;
  opacity: 0.8;
}

.wpcf7-textarea,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"] {
  border: none;
  font-size: 1.3em;
  padding: 0.4em 1em;
  padding-left: 35px;
}

.wpcf7-textarea::placeholder,
.wpcf7 input[type="text"]::placeholder,
.wpcf7 input[type="email"]::placeholder {
  color: #555454 !important;
  font-size: .9em;
  opacity: 1;
  font-weight: 300 !important;
}

.wpcf7-textarea:focus,
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus {
  -webkit-box-shadow: inset 0px 0px 5px 0px rgba(70, 137, 102, 0.8);
  -moz-box-shadow: inset 0px 0px 5px 0px rgba(70, 137, 102, 0.8);
  box-shadow: inset 0px 0px 5px 0px rgba(70, 137, 102, 0.8);
}

.wpcf7-textarea:focus::placeholder,
.wpcf7 input[type="text"]:focus::placeholder,
.wpcf7 input[type="email"]:focus::placeholder {
  color: #fff;
}

.wpcf7 .wpcf7-not-valid-tip {
  font-weight: 400;
  color: #ff3333;
}

.wpcf7 .wpcf7-validation-errors,
.wpcf7 .wpcf7-mail-sent-ok {
  border: none;
  font-weight: 400;
  color: #ff3300;
}

.wpcf7 form .wpcf7-response-output {
  border: none !important;
  font-weight: 400;
  color: #37af37 !important;
  padding: 0 !important;
  margin: 2em 0 1em !important;
  font-size: 18px;
  line-height: 2;
}

@media screen and (max-width: 1080px) {
  .form-container {
    padding: 0 3em 1.5em 3em;
  }

  .form-contact {
    width: 30em;
    height: auto;
  }

  .form-contact > p {
    padding: 0.4em 0.4em;
    font-size: 1.3em;
    width: 13em;
  }

  .info-container > .form-contact p {
    color: #ffb03b;
    font-weight: 400;
  }

  .wpcf7 {
    width: 100%;
    height: auto;
  }

  .wpcf7 label {
    font-size: 0.7em;
  }

  .wpcf7 input[type="submit"] {
    padding: 0.1em 1.8em;
    font-size: 1em;
  }

  .wpcf7-textarea,
  .wpcf7 input[type="text"],
  .wpcf7 input[type="email"] {
    border: none;
    font-size: 1.2em;
    padding: 0.4em 1.6em;
  }

  .wpcf7-textarea::placeholder,
  .wpcf7 input[type="text"]::placeholder,
  .wpcf7 input[type="email"]::placeholder {
    font-size: 1.1em;
  }
}

@media screen and (max-width: 980px) {
  .form-container {
    padding: 0 1.6em 1.5em 1.6em;
  }

  .form-contact > p {
    padding: 0.3em 0.4em;
    font-size: 1.1em;
    width: 13em;
  }

  .wpcf7 label {
    font-size: 0.65em;
  }

  .wpcf7 input[type="submit"] {
    padding: 0.1em 1.5em;
    font-size: 0.95em;
  }

  .wpcf7 input[type="text"],
  .wpcf7 input[type="email"] {
    width: 24em;
  }
}

@media screen and (max-width: 736px) {
  .form-container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0 1em 1.5em 1em;
    background: url("../images/bg-form-mobile.jpg");
    height: auto;
  }

  .form-contact {
    width: 100%;
    height: auto;
  }

  .form-contact > p {
    padding: 0.5em 0.6em;
    font-size: 1.2em;
    width: 13em;
  }

  .wpcf7 {
    width: 100%;
    height: auto;
  }

  .wpcf7 label {
    font-size: 0.7em;
  }

  .wpcf7-textarea {
    width: 100%;
    height: 140px;
  }

  .wpcf7 input[type="text"],
  .wpcf7 input[type="email"] {
    width: 85%;
    line-height: 2.5;
  }

  .wpcf7 input[type="submit"] {
    padding: 0.2em 1.8em;
    font-size: 0.9em;
  }

  .wpcf7-textarea,
  .wpcf7 input[type="text"],
  .wpcf7 input[type="email"] {
    font-size: 1.2em;
    padding-left: 20px;
  }
}

@media screen and (max-width: 338px) {
  .form-container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0 1em 1.5em 1em;
    height: auto;
  }

  .form-contact {
    width: 100%;
    height: auto;
  }

  .form-contact > p {
    padding: 0.4em 0.6em;
    font-size: 2vh;
    width: 14em;
  }

  .wpcf7 {
    width: 100%;
    height: auto;
  }

  .wpcf7 label {
    font-size: 0.6em;
  }

  .wpcf7-textarea {
    width: 100%;
    height: 140px;
  }

  .wpcf7-validation-errors {
    margin: 0;
    padding: 0;
  }

  .wpcf7 input[type="text"],
  .wpcf7 input[type="email"] {
    width: 20em;
    line-height: 2.5;
  }

  .wpcf7 input[type="submit"] {
    padding: 0.1em 1.3em;
    font-size: 0.8em;
  }

  .wpcf7-textarea,
  .wpcf7 input[type="text"],
  .wpcf7 input[type="email"] {
    font-size: 1.1em;
    padding-left: 20px;
  }
}
