input.input,
textarea.input,
input.date {
  display: block;
  padding: 8px 10px;
  background: #fdfdfd;
  border: 1px solid #d8d8d8;
  box-sizing: border-box;
  font-size: 14px;
  line-height: 20px;
}

textarea.input {
  min-height: 34px;
}

input.radio {
  width: 16px;
  height: 16px;
  border-radius: 50px;
  background: #fff;
  box-sizing: border-box;
  border: none;
  cursor: pointer;
  position: relative;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-print-color-adjust: exact;
  color-adjust: exact;
  print-color-adjust: exact;
}

input.checkbox {
  --bs-form-check-bg: #fff;
  width: 16px;
  height: 16px;
  vertical-align: top;
  background: #fff;
  box-sizing: border-box;
  border: none;
  cursor: pointer;
  position: relative;
  border-radius: 5px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-print-color-adjust: exact;
  color-adjust: exact;
  print-color-adjust: exact;
}

input[type="checkbox"]::before {
  position: relative;
  content: "";
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  display: block;
  background: #f7f7f7;
  box-sizing: border-box;
  border: 1px solid #d8d8d8;
  cursor: pointer;
  z-index: 5;
  border-radius: 5px;
}

input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 2px;
  width: 12px;
  height: 9px;
  background: url("/image/checkbox.png") no-repeat center;
  background-size: 100%;
  visibility: visible;
  z-index: 6;
}

input.input.error,
textarea.input.error,
.select.error {
  border: 1px solid #ec3d3d;
}

label.error {
  display: block;
  position: relative;
  font-size: 12px;
  color: #ec3d3d;
}

.input-suffix {
  padding-right: 50px !important;
}

label.suffix {
  position: absolute;
  right: 0;
  top: 0;
  display: inline-block;
  width: 40px;
  padding: 6px 0;
  background-color: #e0e0e0;
  border-radius: 0 5px 5px 0;
  text-align: center;
  box-sizing: border-box;
  /* 使得label不会影响到input的交互 */
  pointer-events: none;
}

.submit {
  height: 44px;
  margin-top: 30px;
  background: #A30A2D;
  box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.1);
  line-height: 44px;
  font-size: 14px;
  color: #fff;
  cursor: pointer;
  border: none;
  box-sizing: border-box;
}

.agree-text {
  margin-left: 6px;
  font-size: 14px;
  line-height: 24px;
  color: #999;
}

.agree-text a {
  color: #1b5696;
}

/* 单选、多选 */
.group-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-right: 20px;
  padding-top: 7px;
  font-size: 14px;
}

.group-item .radio-label {
  margin-left: 6px;
  font-size: 14px;
  line-height: 20px;
  color: #666;
}

input[type="radio"]::before {
  position: relative;
  content: "";
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  display: block;
  border-radius: 50%;
  background: #f7f7f7;
  box-sizing: border-box;
  border: 1px solid #d8d8d8;
  cursor: pointer;
  z-index: 5;
}

input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 8px;
  height: 8px;
  background: #A30A2D;
  border-radius: 50%;
  visibility: visible;
  z-index: 6;
}

/* 点击获取验证码 */
.verification-code {
  position: relative;
}

.verification-code .input {
  padding-right: 76px;
}

.verification-code .code-btn {
  position: absolute;
  right: 10px;
  top: 7px;
  font-size: 14px;
  line-height: 20px;
  color: #A30A2D;
  border: none;
  background-color: transparent;
  cursor: pointer;
}

.verification-code .code-btn.disabled {
  color: #999;
}

/* 下拉选择框 */
.select {
  display: block;
  width: 100%;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  background-color: #fdfdfd;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 12px;
  border: 1px solid #d8d8d8;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
}

/* 上传图片 */
.image-upload {
  display: flex;
  flex-wrap: wrap;
}

.image-upload a {
  position: relative;
  display: block;
  width: 106px;
  margin: 0 20px 16px 0;
  padding-top: 70px;
  height: 106px;
  text-align: center;
  color: #999;
  box-sizing: border-box;
  border: 1px solid #d8d8d8;
  font-size: 14px;
  border-radius: 5px;
}

.image-upload a:after {
  position: absolute;
  content: "";
  left: 50%;
  top: 0;
  transform: translate(-50%, 25px);
  width: 34px;
  height: 34px;
  display: block;
  background: url(/image/upload.png) no-repeat;
  background-size: 100%;
  z-index: 1;
}

.image-upload .del-img {
  position: absolute;
  top: -10px;
  right: -10px;
  display: block;
  background-image: url("/image/del-img.png");
  background-size: 100% 100%;
  width: 24px;
  height: 24px;
  z-index: 3;
}

.image-upload input,
.image-upload img {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 3;
}

.image-upload img {
  opacity: 1;
  z-index: 2;
  background-size: 100%;
}

.image-upload img[src=""],
.image-upload img:not([src]) {
  opacity: 0;
}

/* 省市联动 */
.region-style {
  display: flex;
  align-items: center;
}

.region-style .select {
  margin-right: 10px;
}

.region-style .select:last-of-type {
  margin: 0;
}

@media screen and (max-width: 1460px) {

  /* 图片上传 */
  .image-upload a {
    width: 96px;
    height: 96px;
    margin: 0 18px 14px 0;
    padding-top: 65px;
  }

  .image-upload a:after {
    transform: translate(-50%, 22px);
    width: 32px;
    height: 32px;
  }

  .image-upload .del-img {
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
  }
}

@media screen and (max-width: 1260px) {

  /* 图片上传 */
  .image-upload a {
    width: 90px;
    height: 90px;
    margin: 0 16px 12px 0;
    padding-top: 60px;
  }

  .image-upload a:after {
    transform: translate(-50%, 20px);
    width: 30px;
    height: 30px;
  }

  .image-upload .del-img {
    width: 20px;
    height: 20px;
  }
}

@media screen and (max-width: 960px) {}

@media screen and (max-width: 700px) {
  .agree-text {
    color: #666;
  }

  .group-item {
    padding-top: 0;
  }

  /* 图片上传 */
  .image-upload a {
    width: 70px;
    height: 70px;
    margin: 6px 16px 10px 0;
    padding-top: 45px;
  }

  .image-upload a:after {
    transform: translate(-50%, 16px);
    width: 23px;
    height: 23px;
  }

  .image-upload .del-img {
    top: -10px;
    right: -10px;
    width: 22px;
    height: 22px;
  }
}