input[type="radio"] {
  display: none;
}

.radio__item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  position: relative;
  color: #666666;
  cursor: pointer;
  padding: 8px 16px 8px 10px;
  height: var(--form-item-h);
  line-height: 1;
  -webkit-transition: .2s;
  transition: .2s;
}

.radio__item .radio__wrap {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  gap: 6px;
}

.radio__item.has-img {
  gap: var(--radio-group-gap);
  padding: 12px 12px;
  width: auto;
  height: auto;
}

.radio__item.has-img .radio__wrap {
  width: calc(180px * (200 / 246));
}

.radio__item.has-img img {
  height: 180px;
}

.radio__inner {
  position: relative;
  margin-top: 2px;
  height: 16px;
  width: 16px;
  border: 1px solid #BEDFC7;
  border-radius: 50%;
  -webkit-transition: .2s;
  transition: .2s;
}

.radio__inner::after {
  content: "";
  position: absolute;
  left: calc(50% - 4px);
  top: calc(50% - 4px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #fff;
  -webkit-transition: .2s;
  transition: .2s;
}

.radio__label {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  letter-spacing: 0;
}

.radio-box {
  position: relative;
}

.radio-box:hover .checked-border {
  border-color: #2B9E7D;
}

.checked-border {
  position: absolute;
  z-index: -1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  border: 1px solid #BEDFC7;
  background-color: #ffffff;
}

input[type="radio"]:checked + .radio__item .radio__inner {
  height: 16px;
  width: 16px;
  border: 1px solid #2B9E7D;
}

input[type="radio"]:checked + .radio__item .radio__inner::after {
  background-color: #2B9E7D;
}

input[type="radio"]:checked + .radio__item .radio__label {
  color: #2B9E7D;
  font-weight: bold;
}

input[type="radio"]:checked + .radio__item + .checked-border {
  border-width: 2px;
  border-color: #2B9E7D;
}

.radio-group {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: var(--radio-group-gap);
}

@media (max-width: 1024px) {
  .radio__item {
    padding-left: 16px;
  }
  .radio__item.has-img {
    width: auto;
    padding-top: 0;
    padding-bottom: 0;
    height: var(--form-item-h);
  }
  .radio__item.has-img .radio__wrap {
    width: auto;
  }
  .radio__item .radio__wrap + img {
    display: none;
  }
  .radio__inner {
    display: none;
  }
}

@media (max-width: 767px) {
  .radio__item {
    padding: 4px 11px;
  }
}

.checkbox__wrap {
  display: inline-block;
  position: relative;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  width: 20px;
  height: 20px;
}

.checkbox__wrap.checkbox__label {
  width: auto;
  padding-left: 28px;
  line-height: 20px;
  color: var(--color-primary);
}

.checkbox__wrap input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: #fff;
  border: 1px solid #BEDFC7;
  border-radius: 4px;
}

.checkbox__wrap:hover input ~ .checkmark {
  border-color: #2B9E7D;
}

.checkbox__wrap input:checked ~ .checkmark {
  background-color: #2B9E7D;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox__wrap input:checked ~ .checkmark:after {
  display: block;
}

.checkbox__wrap .checkmark:after {
  left: 6px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
          transform: rotate(45deg);
}

:root {
  --form-item-label-gap: 10px;
  --radio-group-gap: 12px;
}

.form-item {
  margin-bottom: 1.125rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: var(--form-item-label-gap);
}

.form-item.flex-column {
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

.form-item.flex-column .form-item__label {
  line-height: 1;
}

.form-item__label {
  color: var(--color-primary);
  font-weight: bold;
  line-height: var(--form-item-h);
  white-space: nowrap;
}

.form-item__link {
  color: #333333;
  font-size: 1.25rem;
}

.form-item__link a {
  color: #333333;
}

.form-item__remark {
  color: #2B9E7D;
}

.form-item__btn {
  margin: 1.5rem 0;
  width: 100%;
}

.form-item__input {
  padding: 0 12px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  border: 1px solid #BEDFC7;
  border-radius: 8px;
  background-color: #fff;
  height: var(--form-item-h);
  -webkit-transition: .2s;
  transition: .2s;
}

.form-item__input:focus-within, .form-item__input:hover {
  border-color: #2B9E7D;
}

.form-item__input i {
  color: #BEDFC7;
}

.form-item__input.small {
  width: 100px;
}

.form-item__input.large {
  width: 350px;
}

.input {
  border: none;
  background-color: transparent;
  padding: 0 8px;
  width: 100%;
  height: 100%;
}

.select {
  padding: 0 8px;
  border-radius: 8px;
  height: var(--form-item-h);
  border: 1px solid #BEDFC7;
  background-color: #fff;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-transition: .2s;
  transition: .2s;
}

.select:focus-within, .select:hover {
  border-color: #2B9E7D;
}

.select select {
  border: none;
  background-color: transparent;
  color: #666666;
  width: 100%;
  height: var(--form-item-h);
}

@media (max-width: 1024px) {
  .form-item {
    margin-bottom: 10px;
  }
  .form-item .btn {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
  }
  .select + .btn {
    -webkit-box-flex: 0;
        -ms-flex: none;
            flex: none;
  }
  .form-item__input + .btn {
    -webkit-box-flex: 0;
        -ms-flex: none;
            flex: none;
  }
  .form-item__label + .select {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
  }
}

@media (max-width: 767px) {
  :root {
    --form-item-label-gap: 4px;
    --radio-group-gap: 4px;
  }
}
