.custom {
  /* 专属定制部分 */
  overflow: hidden;
}

.custom .step {
  margin: 20px 0;
}

.custom .step .title {
  display: flex;
  font-size: 20px;
  align-items: center;
  margin: 16px 0;
}

.custom .step .title span {
  width: 32px;
  height: 32px;
  color: #eee;
  font-size: 18px;
  background: #bd4f4b;
  border-radius: 50%;
  line-height: 32px;
  text-align: center;
  margin-right: 6px;
}

.custom .step .main {
  display: flex;
  /* flex项目等宽显示 */
  justify-content: space-evenly;
}

.custom .step .main .radio {
  display: inline-flex;
  flex-direction: column;
  cursor: pointer;
  padding: 0 5px;
}

.custom .step .radio input[type='radio'] {
  /* 隐藏原始的radio,太丑 */
  display: none;
}

.custom .step .radio img {
  width: 100%;
  height: 100%;
  padding: 2px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px dashed #999;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
}

.custom .step .radio input[type='radio']:checked + img {
  /* 选中该radio时把图片边框改为实线,选中状态 */
  border: 2px solid #bd4f4b;
}

.custom .step .radio .name {
  font-size: 18px;
  text-align: center;
  margin: 8px 0;
  -webkit-transition: color 0.3s;
  -moz-transition: color 0.3s;
  -o-transition: color 0.3s;
  transition: color 0.3s;
}

.custom .step .radio input[type='radio']:checked ~ .name {
  color: #bd4f4b;
}

.custom .step .radio .color {
  /* 颜色块,采用大圆角 */
  position: relative;
  width: 55px;
  height: 30px;
  border-radius: 25px;
  line-height: 30px;
  text-align: center;
  color: #fff;
  font-size: 15px;
  text-shadow: 0 0 10px #555;
}

.custom .step .radio .color::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  border-radius: 25px;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
}

.custom .step .radio input[type='radio']:checked + .color::after {
  /* 选中时加上边框,选中状态 */
  border: 2px solid #bd4f4b;
}

.blue {
  /* 颜色背景 */
  background: #0082fb;
}

.red {
  background: #d6030e;
}

.black {
  background: #555;
}

.yellow {
  background: #ffbb00;
}

.green {
  background: #06b100;
}

.white {
  color: #666 !important;
  background: #fafafa;
}

.cyan {
  background: #748976;
}

.pink {
  background: #ee00e2;
}

.form-main {
  display: flex;
  margin: 18px 30px;
}

.form-input {
  /* 输入框样式 */
  flex: auto;
  display: flex;
  align-items: center;
  width: 50%;
  font-size: 16px;
  margin: 0 6px;
  color: #333;
  white-space: nowrap;
}

.form-input.input-little {
  /* 小输入框,宽度改为1/3 */
  width: 33.3333333%;
}

.form-input span {
  width: 100px;
  height: 42px;
  line-height: 42px;
  padding: 0 12px;
  text-align: center;
  color: #555;
  background: #ddd;
  border-radius: 4px 0 0 4px;
}

.form-input.input-little span {
  /* 提示文字 */
  width: 70px;
}

.form-input label {
  flex: auto;
}

.form-input label input {
  width: 100%;
  height: 42px;
  font-size: 15px;
  padding: 2px 12px;
  background: #fff;
  border: 1px solid #ddd;
  vertical-align: middle;
  margin-left: -1px;
  color: #555;
  border-radius: 0 4px 4px 0;
  -webkit-transition: border-color 0.3s;
  -moz-transition: border-color 0.3s;
  -o-transition: border-color 0.3s;
  transition: border-color 0.3s;
}

.form-input label input:focus {
  border-color: #bd4f4b;
}

.form-textarea {
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.form-textarea span {
  border-radius: 4px 4px 0 0;
}

.form-textarea label {
  width: 100%;
}

.form-textarea label textarea {
  /* textarea样式 */
  width: 100%;
  height: auto;
  min-height: 140px;
  line-height: 22px;
  resize: vertical;
  color: #555;
  padding: 10px 12px;
  font-size: 15px;
  margin-top: -1px;
  border: 1px solid #ddd;
  border-radius: 0 4px 4px 4px;
  -webkit-transition: border-color 0.3s;
  -moz-transition: border-color 0.3s;
  -o-transition: border-color 0.3s;
  transition: border-color 0.3s;
}

.form-textarea textarea:focus {
  border-color: #bd4f4b;
}

.form-button {
  /* 表单按钮 */
  width: 150px;
  height: 42px;
  line-height: 42px;
  color: #fff;
  font-size: 15px;
  padding: 0 25px;
  border-radius: 4px;
  margin: 0 8px;
  opacity: 0.8;
  cursor: pointer;
  -webkit-transition: color, opacity 0.3s;
  -moz-transition: color, opacity 0.3s;
  -o-transition: color, opacity 0.3s;
  transition: color, opacity 0.3s;
}

.form-button:hover {
  opacity: 1;
}

@media (max-width: 767px) {
  .custom .step {
    margin: 12px 0;
  }
  .custom .step .main {
    flex-wrap: wrap;
  }
  .custom .step:nth-child(2) .main .radio {
    /* 小屏幕时色块大小改为1/4,两行显示 */
    width: 25%;
    margin: 4px 0;
    align-items: center;
  }
  .custom .step .title {
    font-size: 18px;
    margin: 8px 0;
  }
  .custom .step .title span {
    width: 26px;
    height: 26px;
    line-height: 26px;
    font-size: 14px;
  }
  .form-main {
    margin: 10px 0;
  }
  .form-input span {
    width: 80px;
    height: 34px;
    line-height: 34px;
    font-size: 14px;
    padding: 0 4px;
  }
  .form-input label input {
    height: 34px;
    font-size: 14px;
    padding: 2px 8px;
  }
  .form-input.input-little span {
    width: auto;
    padding: 0 8px;
  }
  .custom .step .radio .name {
    font-size: 15px;
  }
  .custom .step .radio .color {
    width: 45px;
    height: 25px;
    border-radius: 25px;
    line-height: 25px;
    font-size: 13px;
  }
  .form-button {
    width: 100px;
    height: 36px;
    line-height: 36px;
    padding: 0 18px;
  }
}

@media (max-width: 480px) {
  .custom .step .main .radio {
    width: 33.333333%;
    flex: none;
  }
  .custom .step:nth-child(4) .form-main {
    flex-wrap: wrap;
    margin-bottom: -8px;
  }
  .custom .step:nth-child(4) .form-main .form-input {
    width: 100%;
    margin-top: 8px;
  }
  .form-input {
    margin: 0 3px;
  }
}

.form-btns {
  /* 提交按钮居中 */
  text-align: center;
  margin: 20px 0;
}
