/* QUIZ STEPS ---------------------------------------- */
#step-panel {
  display: none;
}

/* structure */
.step .step-head {
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e9e9e9;
}
.step .step-content {
  margin-bottom: 20px;
  min-height: 350px;
}
.step .step-bottom {
  padding-top: 20px;
  width: 100%;
  border-top: 1px solid #e9e9e9;
}
.step-mid {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* main */
.step .step-title {
  margin-bottom: 20px;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.2;
}
.step .step-subtitle {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.4;
  color: #676767;
}

/* items */
.step .items {
  margin: 0 -7px;
}
.step .item {
  padding: 10px 7px;
}
.step .item .field {
  height: 100%;
}
.step .item .img {
  margin-bottom: 10px;
  width: 100%;
  height: 110px;
  background-color: #f2f2f2;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: auto 80%;
}
.step .fields .field:not(:last-child) {
  margin-bottom: 15px;
}
.step .field .input {
  padding: 0 15px;
  width: 100%;
  height: 46px;
  border-radius: 4px;
  border: 1px solid #ddd;
}
.step-izdelie .item:last-child .img {
  background-size: auto 50%;
}
.step-files .field {
  position: relative;
  padding-left: 20px;
}
.step-files .fields .field:before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  font-size: 16px;
  line-height: 1;
}
.step-files .fields .field:nth-child(1):before {
  content: "1";
}
.step-files .fields .field:nth-child(2):before {
  content: "2";
}
.step-files .fields .field:nth-child(3):before {
  content: "3";
}

/* buttons */
.step .btns {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.step1 .btns {
  justify-content: flex-end;
}
.step .btns .btn:not(:last-child) {
  margin-right: 20px;
}
.step .btn-prev,
.step .btn-next {
  position: relative;
  padding: 0 15px;
  width: 130px;
}
.step .btn-prev span,
.step .btn-next span {
  height: 18px;
  line-height: 18px;
}
.step .btn-prev span {
  padding-left: 25px;
  background: url("../img/arrow-left-red.svg") no-repeat left center;
  background-size: 14px auto;
}
.step .btn-prev:hover span {
  background-image: url("../img/arrow-left-white.svg");
}
.step .btn-next span {
  padding-right: 25px;
  background: url("../img/arrow-right-white.svg") no-repeat right center;
  background-size: 18px auto;
}
.step .btn-prev.disabled,
.step .btn-next.disabled {
  color: #1b1b1b;
  background-color: #ccc;
  cursor: default;
  opacity: 0.5;
}
.step .btn-prev.disabled span {
  background-image: url("../img/arrow-left.svg");
}
.step .btn-next.disabled span {
  background-image: url("../img/arrow-right.svg");
}

/* btn-change */
.step .btn-change {
  position: relative;
  display: block;
  margin-bottom: 30px;
  padding: 0;
  padding-left: 30px;
  height: 20px;
  line-height: 20px;
  font-size: 16px;
  font-weight: 500;
  background: none;
  border: 0;
  cursor: pointer;
  background: url("../img/return.svg") no-repeat left center;
  background-size: 16px auto;
}
.step .btn-change span {
  color: #1b1b1b;
  border-bottom: 1px dotted;
  transition: all 0.3s;
}
.step .btn-change:hover {
  color: #06b2fe;
  border-bottom-color: #06b2fe;
  background-image: url("../img/return-red.svg");
}
.step .btn-change:hover span {
  color: #06b2fe;
  border-bottom-color: #06b2fe;
}

/* errors */
.step .error-txt,
.step .error-txt2 {
  display: none;
  margin: 10px auto 20px auto;
  padding: 10px;
  width: 100%;
  font-size: 14px;
  text-align: center;
  color: #06b2fe;
  border-radius: 8px;
  border: 1px solid #06b2fe;
}

/* progress */
.step.step-progress .step-title {
  margin-top: 20px;
  text-align: center;
}
.step .progress {
  height: 40px;
  border-radius: 50px;
}
.step .progress-sec {
  margin-bottom: 60px;
  font-size: 16px;
  text-align: center;
  color: #676767;
}
.step .progress-wrap {
  position: relative;
  overflow: hidden;
  margin: 0 auto 20px auto;
  width: 500px;
  border-radius: 32px;
  background: url("../img/progress.png") repeat-x 0 0 transparent;
}
.step .progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  border-radius: 0;
  background: #eaeaea;
}
.step .percent {
  font-size: 36px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  color: #121212;
}
.step .percent div {
  display: inline-block;
}

/* final */
.step.final .step-head {
  margin-bottom: 30px;
}
.step.final .btn-box .btn {
  width: auto;
}
.step.final .pers {
  padding: 20px 0;
  font-size: 14px;
  color: #676767;
}
.step.final .note {
  font-size: 13px;
  color: #999;
}

/* MEDIA ------------------------------------------------------------ */
@media (max-width: 1200px) {
  .step .step-content {
    min-height: 250px;
  }
}

@media (max-width: 992px) {
  .step .step-content {
    padding-bottom: 30px;
    min-height: 150px;
  }
  .step-mid {
    padding: 40px;
  }
  .step .btn-change {
    text-align: left;
    width: 280px;
    font-size: 15px;
  }

  .step .item .img {
    height: 130px;
  }

  .step.final .fields {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin: 0 -10px;
  }
  .step.final .field {
    padding: 0 10px;
  }
  .step.final .field-name,
  .step.final .field-phone,
  .step.final .field-email {
    width: 33.3%;
  }
  .step.final .btn-box {
    width: 66.6%;
  }
  .step.final .pers {
    width: 33.3%;
  }
}

@media (max-width: 860px) {
  .step-mid {
    padding: 35px;
  }
  .step-progress .step-mid {
    padding: 20px 35px;
  }

  .step .btn-prev,
  .step .btn-next {
    width: 110px;
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .step-mid {
    padding: 40px;
  }
  .step-progress .step-mid {
    padding: 60px 40px;
  }

  .step .error-txt {
    font-size: 13px;
  }

  .step .progress-wrap {
    width: 400px;
  }

  .step.final .step-subtitle {
    font-size: 16px;
  }
  .step.final .fields {
    width: 100%;
  }
  .step.final .field label {
    font-size: 15px;
  }
  .step.final .field .input {
    font-size: 16px;
  }
}

@media (max-width: 700px) {
  .step.final .field-name {
    width: 100%;
  }
  .step.final .field-phone,
  .step.final .field-email {
    width: 50%;
  }
  .step.final .btn-box,
  .step.final .pers {
    width: 100%;
  }
  .step.final .btn-box .btn {
    width: 100%;
  }
  .step.final .pers {
    margin-bottom: 20px;
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  .step .item .img {
    height: 110px;
  }
}

@media (max-width: 576px) {
  .step-mid {
    padding: 35px;
  }
  .step-progress .step-mid {
    padding: 50px 35px;
  }

  .step .step-head {
    font-size: 13px;
  }

  .step .btn-prev,
  .step .btn-next {
    width: 100px;
  }

  .step .progress-wrap {
    width: 350px;
  }
  .step .progress {
    height: 30px;
  }
  .step .percent {
    font-size: 40px;
  }
  .step .progress-sec {
    font-size: 16px;
  }

  .step.final .step-subtitle {
    font-size: 14px;
  }
  .step.final .field label {
    display: none;
  }
  .step.final .btn-box .btn {
    width: 100%;
  }

  .step .btn-change {
    margin-bottom: 30px;
  }

  .step.final .fields {
    margin: 0;
    flex-direction: column;
  }
  .step.final .fields .field {
    padding-left: 0;
    padding-right: 0;
  }
  .step.final .field-phone,
  .step.final .field-email {
    width: 100%;
  }
}

@media (max-width: 468px) {
  .step .step-title {
    font-size: 18px;
  }
  .step .step-subtitle {
    font-size: 14px;
  }

  .step .items {
    margin: 0;
  }
  .step .items .item:not(:last-child) {
    margin-bottom: 20px;
  }
  .step .item {
    padding: 0;
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }

  .step .btns {
    justify-content: center;
    width: 100%;
  }
  .step .btn-prev,
  .step .btn-next {
    height: 48px;
    line-height: 46px;
    font-size: 14px;
  }

  .step .btn-change {
    margin-bottom: 30px;
    padding-left: 0;
    width: auto;
    font-size: 14px;
    background: none;
  }
  .step .btn-change:before {
    display: none;
  }

  .step .error-txt,
  .step .error-txt2 {
    font-size: 14px;
  }

  .step-progress .step-title {
    margin-top: 0;
  }
  .step .progress-wrap {
    width: 300px;
  }
  .step .progress-sec {
    margin-bottom: 30px;
    font-size: 14px;
  }

  .step.final .step-head {
    margin-bottom: 20px;
  }
  .step.final .btn-box .btn {
    padding: 0 10px;
    font-size: 15px;
  }
}

@media (max-width: 400px) {
  .step .progress-wrap {
    width: 100%;
  }
  .step .percent {
    font-size: 32px;
  }
}

@media (max-width: 360px) {
  .step-mid {
    padding: 30px;
  }
  .step-progress .step-mid {
    padding: 35px 30px;
  }

  .step .field .input {
    font-size: 14px;
  }

  .step .btns {
    justify-content: space-between;
  }
  .step1 .btns {
    justify-content: center;
  }
  .step .btn-prev,
  .step .btn-next {
    padding: 0;
    width: 46px;
    height: 46px;
    font-size: 0;
  }
  .step .btn-prev:after,
  .step .btn-next:after {
    content: "";
    position: absolute;
    z-index: 3;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 24px auto;
  }
  .step .btn-prev:after {
    background-image: url("../img/arrow-right-red.svg");
  }
  .step .btn-prev:hover:after {
    background-image: url("../img/arrow-right-white.svg");
  }
  .step .btn-next:after {
    background-image: url("../img/arrow-right-white.svg");
  }
  .step .btn-prev {
    transform: rotate(180deg);
  }

  .step .btn-change {
    width: 150px;
    white-space: normal;
    line-height: 1.2;
  }

  .step .error-txt {
    font-size: 13px;
  }

  .step.final .fields .field {
    margin-bottom: 15px;
  }
  .step.final .field .input {
    padding: 0 15px;
    font-size: 15px;
  }
  .step.final .btn-box .btn {
    padding: 15px;
    height: auto;
    line-height: 1.2;
    white-space: normal;
  }
}

@media (max-width: 270px) {
  .step-mid {
    padding: 20px;
  }
  .step-progress .step-mid {
    padding: 25px 20px;
  }

  .step .btn-prev,
  .step .btn-next {
    width: 40px;
    height: 40px;
  }
}
