* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
}

.test__progress {
  padding-top: 64px;
  padding-bottom: 64px;
  text-align: center;
}

.test__step {
  font-size: 0.875em;
  text-transform: uppercase;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  border-left: 1px solid #ccc;
  padding-left: 22px;
  padding-right: 7px;
  height: 40px;
  line-height: 40px;
  display: inline-block;
  position: relative;
  margin-right: 8px;
  color: #ccc;
  text-decoration: none;
  cursor: default;
}

.test__step:first-child {
  padding-left: 19px;
}

.test__step::before,
.test__step::after,
.test__step > span::before,
.test__step > span::after {
  content: '';
  width: 0;
  height: 0;
  border-right: 15px solid transparent;
  border-top: 19px solid transparent;
  border-bottom: 20px solid transparent;
  top: 0;
}

.test__step::before,
.test__step::after {
  position: absolute;
  border-left: 15px solid #ccc;
}

.test__step::before {
  left: -1px;
  z-index: 10;
}

.test__step::after {
  z-index: 11;
  right: 0;
  border-left-color: #ffff;
  margin-right: -42px;
}

.test__step:first-child::before {
  opacity: 0;
}

.test__step > span {
  display: block;
}

.test__step > span::before,
.test__step > span::after {
  position: absolute;
  border-left: 15px solid #ccc;
  right: 0;
  margin-right: -30px;
  z-index: 12;
}

.test__step > span::after {
  border-left-color: #ffffff;
  margin-right: -29px;
}

/* style for done  */

.test__step_done {
  border-color: #2b3748;
  background-color: #2b3748;
  color: #fff;
  cursor: pointer;
}

.test__step_done::before {
  border-left-color: #2b3748;
}

.test__step_done > span::before,
.test__step_done > span::after {
  border-left-color: #2b3748;
}

/* /style for done */

/* style for active */
.test__step_active {
  border-color: #2b3748;
  color: #2b3748;
  cursor: pointer;
}

.test__step_active::before {
  border-left-color: #2b3748;
}

.test__step_active > span::before {
  border-left-color: #2b3748;
}
/* /style for active */

.test__item {
  display: none;
}

.test__item_visible {
  display: block;
}

.test__question-title {
  font-family: open sans, sans-serif;
  font-weight: 700;
  font-size: 1.6em;
  line-height: 1.6em;
  text-align: center;
}

.test__answer-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.test__answer {
  text-align: center;
  cursor: pointer;
  flex: 0 0 25%;
  padding: 3em 0;
}

.test__radio {
  opacity: 0;
  z-index: -1;
  position: absolute;
}

.test__checkmark {
  width: 50px;
  height: 50px;
  color: #0074c34a;
  fill: #0074c34a;
  border: 1px solid #0074c3;
  border-radius: 50%;
  display: inline-block;
  transition: all 0.2s ease-out;
}

.test__checkmark .fas {
  font-size: 24px;
  line-height: 2;
}

.test__radio:checked + .test__checkmark {
  fill: #fff;
  color: #fff;
  background-color: #0074c3;
}

.test__description {
  margin-top: 25px;
  margin-bottom: 25px;
}

.test__btn {
  text-align: center;
}

/* style for input number */

input[type='number']::-webkit-outer-spin-button,
input[type='number']::-webkit-inner-spin-button {
  -webkit-appearance: none; // Yeah, yeah everybody write about it
}

input[type='number'],
input[type='number']:hover,
input[type='number']:focus {
  appearance: none;
  -moz-appearance: textfield;
}

input[type='number'] {
  outline: none;
  border: none;
  border-bottom: 3px solid #ccc;
  transition: all 0.5s;
}

input[type='number']:focus {
  border-bottom: 3px solid #2b3748;
  transition: all 0.5s;
}
/* /style for input number */

/* style for input file */

.inputfile {
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  z-index: -1;
}

.labelinput {
  display: inline-block;
  font-weight: bold;
  cursor: pointer;
  color: white;
  background-color: #0074c3;
  border-radius: 25px;
  padding: 15px 35px;
  box-shadow: 1px 5px 6px 3px #3a3a3b45;
  transition: all 0.5s;
}

.labelinput:hover {
  background-color: #0074c3cc;
}

/* / style for input file */

/* style for inputs last parts */
.test__name,
.test__city,
.test__tel,
.test__email {
  outline: none;
  border: none;
  border-bottom: 3px solid #ccc;
  transition: all 0.5s;
}

.test__name:focus,
.test__city:focus,
.test__tel:focus,
.test__email:focus {
  border-bottom: 3px solid #2b3748;
  transition: all 0.5s;
}

.test__name::placeholder,
.test__city::placeholder,
.test__tel::placeholder,
.test__email::placeholder {
  color: #ccc;
}

/* /style for inputs last parts */

/* style for automatically fill inputs */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 30px white inset;
}

/* / style for automatically fill inputs */

/* style or button */

button {
  font-size: 0.875em;
  font-weight: 700;
  border: 1px solid transparent;
  border-radius: 25px;
  text-align: center;
  padding: 7px 64px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s ease-out, color 0.2s ease-out;
  cursor: pointer;
  height: 48px;
  outline: none;
}

button.yellow {
  background-color: #deeaf6;
  color: #474335;
}

button.yellow.fill:hover {
  background-color: #deeaf6b3;
}

button.disabled {
  background-color: #deeaf6b3;
  cursor: default;
}

button.yellow.disabled:hover {
  background-color: #deeaf680;
}

.error {
  color: red;
  font-size: 14px;
}

.error sup {
  font-size: 10px;
}

.labelinput.errorfile {
  box-shadow: 0px 0px 26px 13px #ff000045;
}

@media (min-width: 768px) {
  .test__answer-list.nowrap {
    flex-wrap: nowrap;
  }
  .test__answer-list.nowrap .test__answer {
    flex: 0 0 16%;
  }
}
