.inquiry__head {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form {
  padding: 0 0 100px;
  font-size: 1.6rem;
  & dl {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 28px 0;
    border-bottom: 1px solid #eee;
    &:first-child {
      border-top: 1px solid #eee;
    }

    & dt {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      flex: 0 0 20rem;
    }
  }

  & input[type="text"],
  & textarea {
    width: 100%;
    border: solid 1px #eee;
    padding: 0.8rem;
  }

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

  & .radiobtn__view {
    display: flex;
    align-items: center;
    gap: 1rem;
    &::before {
      content: "";
      display: block;
      width: 2rem;
      height: 2rem;
      flex: 0 0 2rem;
      background-color: #ccc;
      border: 0.4rem solid #ccc;
      border-radius: 1rem;
    }
  }

  & input[type="radio"]:checked + .radiobtn__view {
    color: #f57;
    &::before {
      background: #f57;
    }
  }

  & .checkbtn__view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    &::before {
      content: "";
      display: block;
      width: 2rem;
      height: 2rem;
      background: #ccc;
    }

    &::after {
      content: "";
      display: block;
      width: 1.2rem;
      height: 0.8rem;
      border-bottom: solid 2px #f57;
      border-left: solid 2px #f57;
      transform: rotate(-45deg);
      position: absolute;
      left: 4px;
      top: 6px;
      display: none;
    }
  }

  & input[type="checkbox"]:checked + .checkbtn__view {
    &::after {
      display: block;
    }
  }

  & .required {
    background: #f57;
    border-radius: 3px;
    color: #fff;
    padding: 2px 4px;
    font-size: 1.2rem;
  }
}

.form__item__group {
  border: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form__agreement {
  display: flex;
  flex-direction: column;
  margin: 40px 0 0;
  text-align: center;

  & .checkbtn__view {
    & a {
      margin: 0 5px 0 0;
      &::after {
        margin: 0 0 0 2px;
      }
    }
  }
}

.submit-block {
  margin: 40px 0 0;
  text-align: center;
}

.submit-buttons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 40px 0 0;
}

.back-button {
  &::after {
    left: 20px;
    right: auto;
    transform: scale(-1, 1);
  }
}

.errorMsg {
  color: #f03;
  font-size: 1.4rem;
}

.complete {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
  text-align: center;
  padding: 0 0 100px;
}

.complete__text {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  font-size: 1.6rem;
  line-height: 2;
}

@media (width <= 768px) {
  .inquiry__head {
    text-align: left;
    margin: 0 0 50px;
  }
  .form {
    padding: 0 0 50px;
    & dl {
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
      & dt {
        flex: 0;
      }
    }
  }
  .complete {
    padding: 0 0 50px;
  }
  .complete__text {
    text-align: left;
  }
}
