#contents{position: relative;}
input[type="text"], input[type="number"], input[type="tel"], input[type="email"], textarea{width: 97%;}
input.sti_submit[type="submit"][disabled]{opacity: 0.5;cursor: auto;}


/*select {
    -moz-appearance: none;
    -webkit-appearance: none;
    -o-appearance: none;
    -ms-appearance: none;
    appearance: none;
    border-radius: 0;
    border: 0;
    margin: 0;
    padding: 0;
    background: none transparent;
    font-size: inherit;
    color: inherit;
    box-sizing: content-box;
}*/

.p-form-step {
  padding: 65px 0;
  background: url(../img/rainbow-ar.png) center 0 no-repeat #73bded;
  color: #fff;
  position: relative;
}

.p-form-step .p-form-step__back {
  border-radius: 50%;
  background: #ff9000;
  cursor: pointer;
  font-size: 14px;
  height: 52px;
  line-height: 52px;
  width: 52px;
  text-align: center;
  position: absolute;
  bottom: 15px;
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: 2;
  transition: opacity 0.2s;
  display: none;
}

.p-form-step .p-form-step__back:hover {
  opacity: 0.8;
}

.p-form-step .p-form-step__back span {
  padding-left: 13px;
}
.p-form-step .p-form-step__back:before {
  content: "";
  border-top: 7px solid transparent;
  border-right: 9px solid #fff;
  border-bottom: 7px solid transparent;
  position: absolute;
  top: 19px;
  left: 6px;
}

.p-form-step .p-form-step__header {
  background: #0164a7;
  padding-top: 15px;
  padding-bottom: 15px;
}

.p-form-step .p-form-step__header-title {
  border: none;
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 30px;
}

.p-form-step .p-form-step__header-title img {
  margin-right: 10px;
}

.p-form-step .p-form-step__header-text {
  font-size: 18px;
}

.p-form-step .p-form-step__body {
  width: 600px;
  margin: auto;
}
.form_bottom {padding:0 0 50px;}

.footer_top img{
  width: 30%;
}

@media only screen and (max-width: 768px) {
.footer_top img{
  width: 60%;
}
}

.p-form-step .p-form-step__form {
  /*margin-top: 40px;*/
  position: relative;
  transition: height 0.2s;
}

.p-form-step__group {
  display: none;
}
.p-form-step__group:first-child {
  display: block;
}

.p-form-step .p-form-step__form-title {
  font-size: 30px;
  text-align: center;
}

.p-form-step .p-form-step__form-items {
  display: flex;
  flex-wrap: wrap;
  margin-top: 60px;
}

.p-form-step .p-form-step__form-item {
  box-sizing: border-box;
  /*flex: 0 0 50%;*/
  width: 50%;
}

.p-form-step .p-form-step__form-item:nth-child(odd) {
  padding-right: 30px;
}

.p-form-step .p-form-step__form-item:nth-child(even) {
  padding-left: 30px;
}

.p-form-step .p-form-step__form-item:nth-child(n + 3) {
  margin-top: 30px;
}

.p-form-step .p-form-step__form-btn {
  background: #0164a7;
  border-radius: 5px;
  cursor: pointer;
  display: block;
  text-align: center;
  font-size: 40px;
  line-height: 1;
  padding: 40px 0;
  transition: background 0.2s;
}

.p-form-step .p-form-step__form-btn:hover {
  background: #ff9000;
  cursor: pointer;
}

.p-form-step .p-form-step__form-item input[type="radio"] {
  display: none;
}

.p-form-step
  .p-form-step__form-item
  input[type="radio"]:checked
  + .p-form-step__form-btn {
  background: #ff9000;
}

.p-form-step #footer .footer_top {
  background: #499fd7 url(../images/fomt_stepfooter_bg.png) bottom left repeat-x;
  background-size: contain;
  height: auto;padding-top:80px;
}

.p-form .p-form__title {
  font-size: 30px;
  margin-top: 0;
  margin-bottom: 70px;
}

.p-form .p-form__group {
  margin-top: 20px;
}

.p-form .p-form__label {
  font-size: 18px;
}

.p-form .p-form__req {
  color: #ff0000;
  font-size: 14px;
  margin-left: 5px;
}

.p-form .p-form__error {
  color: #fff;
  font-size: 14px;
  background: #fa2e4b;
  padding: 0 5px;
  width: 99%;
}

.p-form input[type="text"],
.p-form input[type="email"],
.p-form input[type="tel"],
.p-form textarea,
.p-form select {
  border-radius: 4px;
  border: solid 1px #0164a7;
}

.p-form input[type="text"],
.p-form input[type="email"],
.p-form input[type="tel"],
.p-form textarea {
  padding: 15px 10px;
  height: auto;
  line-height: 1;
}

.p-form select {
  box-sizing: border-box;
  color: #464646;
  font-size: 18px;
  width: 100%;
  padding: 15px 10px;
}

.p-form a {
  color: #fff;
}

.p-form .p-form__checkbox {
  position: relative;
}
.p-form .p-form__checkbox .checkbox {
  position: relative;
  top: 7px;
}
.p-form .p-form__checkbox .checkbox:before {
  content: "";
  display: inline-block;
  width: 27px;
  height: 27px;
  background: #fff;
  border-radius: 7px;
  border: solid 3px #0164a7;
  box-sizing: border-box;
}
.p-form .p-form__checkbox .checkbox:after {
  content: "";
  position: absolute;
  top: -2px;
  left: 10px;
  width: 5px;
  height: 9px;
  border-right: 3px solid #0164a7;
  border-bottom: 3px solid #0164a7;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
  opacity: 0;
}
.p-form .p-form__checkbox input[type="checkbox"] {
  display: none;
}

.p-form .p-form__checkbox input[type="checkbox"]:checked + .checkbox:after {
  opacity: 1;
}

.p-form .p-form__select {
  position: relative;
}
.p-form .p-form__select select {
  background: #fff;
  cursor: pointer;
}
.p-form .p-form__select:before,
.p-form .p-form__select:after {
  content: "";
  position: absolute;
  cursor: pointer;
  pointer-events: none;
}
.p-form .p-form__select:before {
  right: 0;
  border-radius: 0 4px 4px 0;
  background: #0164a7;
  width: 70px;
  height: 100%;
}
.p-form .p-form__select:after {
  right: 25px;
  top: 20px;
  border-right: 10px solid transparent;
  border-top: 15px solid #fff;
  border-left: 10px solid transparent;
}

.p-form .p-form__submit {
  margin-top: 20px;
}

.p-form .p-form__submit button {
  background: #ff9000;
  box-shadow: 2px 2px 0 4px #995600;
  border: none;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  display: block;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  padding: 15px 10px;
  width: 100%;
}

.p-form .p-form__submit button:disabled {
  background: #727272;
  box-shadow: 2px 2px 0 4px #333333;
}

@media only screen and (max-width: 768px) {
  input[type="text"], input[type="number"], input[type="tel"], input[type="email"], textarea {
    width: 94%;
}
  .p-form-step .p-form-step__back {
    /*position: fixed;*/
    top: auto;
    bottom: 10px;
    left: 10px;
    width: 45px;
    height: 45px;
    line-height: 45px;
    font-size: 12px;
  }

  .p-form-step .p-form-step__back:before {
    border-top: 6px solid transparent;
    border-right: 8px solid #fff;
    border-bottom: 6px solid transparent;
    top: 17px;
  }

  .p-form-step .p-form-step__back:hover {
    opacity: 1;
  }

  .p-form-step .p-form-step__body {
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
  }

  .p-form-step .p-form-step__header {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .p-form-step .p-form-step__header-title {
    font-size: 20px;
    text-align: center;
    margin-bottom: 10px;
  }

  .p-form-step .p-form-step__header-title img {
    width: 120px;
  }

  .p-form-step .p-form-step__form-title {
    font-size: 20px;
  }

  .p-form-step .p-form-step__form-items {
    margin-top: 30px;
  }

  .p-form-step .p-form-step__form-item:nth-child(odd) {
    padding-right: 15px;
  }

  .p-form-step .p-form-step__form-item:nth-child(even) {
    padding-left: 15px;
  }

  .p-form-step .p-form-step__form-item:nth-child(n + 3) {
    margin-top: 15px;
  }

  .p-form-step .p-form-step__form-btn {
    font-size: 20px;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .p-form-step #footer {
    margin-bottom: 0;
  }
  .p-form-step #footer .footer_top {
    padding-left: 10px;
    padding-right: 10px;
  }
}
