.bottom-consulting {
  position: sticky;
  bottom: 0;
  width: 100%;
  height: 68px;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(38, 56, 114, 0.8);
  gap: 0 50px;
}

.bottom-consulting > span {
  color: #fff;
  font-size: 21px;
  font-weight: 600;
}

.bottom-consulting > button {
  color: #fff;
  background-color: rgba(68, 114, 196);
  border: none;
  height: 36px;
  padding: 0 10px;
  cursor: pointer;
}

.consulting-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1001;
  display: flex;
  justify-content: center;
  align-items: center;
}

.consulting-modal > .modal-wrapper {
  width: 800px;
  /* width: 40%; */
  height: 90%;
  background-color: #fff;
  overflow-y: scroll;
}

.consulting-modal > .modal-wrapper > .modal-mobile-header {
  display: none;
}

.consulting-modal > .modal-wrapper > .modal-top-image {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.consulting-modal > .modal-wrapper > .modal-top-image > img {
  width: 101%;
  display: block;
}

.consulting-modal > .modal-wrapper > .modal-top-image > #mobileLogo {
  display: none;
}

.consulting-modal > .modal-wrapper > .modal-top-image > #modalClose {
  width: 30px;
  aspect-ratio: 1;
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
}

.consulting-modal > .modal-wrapper > .modal-body {
  padding: 50px 80px;
  display: flex;
  flex-direction: column;
  gap: 20px 0;
}

.consulting-modal > .modal-wrapper > .modal-body > .qna {
  display: flex;
  align-items: center;
  gap: 0 40px;
}

.consulting-modal > .modal-wrapper > .modal-body > .qna > .qna-item {
  display: flex;
  align-items: center;
}

.consulting-modal > .modal-wrapper > .modal-body > .qna > .qna-item > .email {
  display: flex;
  align-items: center;
  margin-left: 20px;
  gap: 0 20px;
}

.consulting-modal
  > .modal-wrapper
  > .modal-body
  > .qna
  > .qna-item
  > .email
  > input,
select {
  width: 136px;
  height: 40px;
  padding: 0 10px;
  box-sizing: border-box;
  color: black;
}

.consulting-modal
  > .modal-wrapper
  > .modal-body
  > .qna
  > .qna-item
  > .email
  > input[type="checkbox"] {
  width: 21px;
  height: 21px;
  box-sizing: border-box;
}

.consulting-modal
  > .modal-wrapper
  > .modal-body
  > .qna
  > .qna-item
  > .email
  > label {
  font-size: 13px;
}

.consulting-modal > .modal-wrapper > .modal-body > .qna > .qna-item > span {
  width: 130px;
  font-size: 14px;
  font-weight: bold;
}

.consulting-modal
  > .modal-wrapper
  > .modal-body
  > .qna
  > .qna-item
  > .required::after {
  content: "*";
  color: red;
}

.consulting-modal > .modal-wrapper > .modal-body > .qna > .qna-item > input,
select {
  height: 40px;
  width: 136px;
  padding: 0 10px;
  box-sizing: border-box;
  color: black;
}

.consulting-modal > .modal-wrapper > .modal-body > .qna > .qna-item > textarea {
  height: 184px;
  width: 440px;
  padding: 0 10px;
  box-sizing: border-box;
  resize: none;
  overflow: hidden;
  color: black;
  padding: 10px;
  font-size: 13px;
  line-height: 20px;
}

.consulting-modal
  > .modal-wrapper
  > .modal-body
  > .qna
  > .qna-item
  > textarea::placeholder {
  color: gray;
}

.consulting-modal
  > .modal-wrapper
  > .modal-body
  > .qna
  > .qna-item
  > .radio-box {
  display: flex;
  flex-direction: column;
}

.consulting-modal
  > .modal-wrapper
  > .modal-body
  > .qna
  > .qna-item
  > .radio-box
  > .radio-box-wrapper {
  display: flex;
  flex-wrap: wrap;
}

.consulting-modal
  > .modal-wrapper
  > .modal-body
  > .qna
  > .qna-item
  > .radio-box
  > .radio-box-wrapper
  > .radio {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 115px;
  font-size: 13px;
}

.consulting-modal
  > .modal-wrapper
  > .modal-body
  > .qna
  > .qna-item
  > .radio-box
  > .radio-box-wrapper
  > .radio
  > label {
  cursor: pointer;
}

.consulting-modal > .modal-wrapper > .modal-body > .agree-text {
  /* width: 100%; */
  width: 600px;
  height: 130px;
  background-color: rgba(246, 247, 251);
  padding: 20px;
  font-size: 14px;
  overflow-y: scroll;
  border: 1px solid lightgray;
}

.consulting-modal > .modal-wrapper > .modal-body > .agree {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 0 10px;
}

.consulting-modal > .modal-wrapper > .modal-body > .agree > label {
  cursor: pointer;
}

.consulting-modal > .modal-wrapper > .modal-body > .submit {
  width: 100%;
}

.consulting-modal
  > .modal-wrapper
  > .modal-body
  > .submit
  > input[type="submit"] {
  width: 100%;
  height: 50px;
  border: none;
  background-color: rgba(68, 114, 196);
  cursor: pointer;
}

@media (max-width: 800px) {
  .bottom-consulting {
    height: 50px;
    padding: 0 5%;
    gap: 0 10px;
    box-sizing: border-box;
    justify-content: space-evenly;
  }

  .bottom-consulting > span {
    font-size: 12px;
  }

  .bottom-consulting > button {    
    height: 30px;
    padding: 0 5px;
    font-size: 12px;
  }

  .consulting-modal > .modal-wrapper {
    width: 100%;
    /* width: 40%; */
    height: 100%;
    background-color: #fff;
    overflow-y: scroll;
  }

  .consulting-modal > .modal-wrapper > .modal-mobile-header {
    display: flex;
    align-items: center;
    padding: 0 24px;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 600;
    height: 50px;
    position: sticky;
    top: 0;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    z-index: 1;
  }

  .consulting-modal > .modal-wrapper > .modal-mobile-header > img {
    width: 30px;
    height: 30px;
  }

  .consulting-modal > .modal-wrapper > .modal-top-image {
    width: 100%;
    overflow: hidden;
    position: relative;
  }

  .consulting-modal > .modal-wrapper > .modal-top-image > img {
    width: 101%;
    display: block;
  }

  .consulting-modal > .modal-wrapper > .modal-top-image > #pcLogo {
    display: none;
  }

  .consulting-modal > .modal-wrapper > .modal-top-image > #mobileLogo {
    display: block;
  }

  .consulting-modal > .modal-wrapper > .modal-top-image > #modalClose {
    display: none;
  }

  .consulting-modal > .modal-wrapper > .modal-body {
    padding: 30px 26px 150px;
    flex-direction: column;
    gap: 20px 0;
  }

  .consulting-modal > .modal-wrapper > .modal-body > .qna {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px 0;
  }

  .consulting-modal > .modal-wrapper > .modal-body > .qna > .qna-item {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px 0;
  }

  .consulting-modal > .modal-wrapper > .modal-body > .qna > .qna-item > input,
  select {
    height: 40px;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
    color: black;
  }

  .consulting-modal > .modal-wrapper > .modal-body > .qna > .qna-item > .email {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-left: 0px;
    gap: 0 10px;
  }

  .consulting-modal
    > .modal-wrapper
    > .modal-body
    > .qna
    > .qna-item
    > .email
    > input,
  select {
    width: calc(100% - 24px);
    margin-bottom: 10px;
  }

  .consulting-modal
    > .modal-wrapper
    > .modal-body
    > .qna
    > .qna-item
    > .email
    > input[type="checkbox"] {
      margin-bottom: 0;
    width: 24px;
    height: 24px;
    box-sizing: border-box;
  }

  #cstType {
    width: 100%;
  }

  .consulting-modal
    > .modal-wrapper
    > .modal-body
    > .qna
    > .qna-item
    > textarea {
    width: 100%;
  }

  .consulting-modal
    > .modal-wrapper
    > .modal-body
    > .qna
    > .qna-item
    > .radio-box {
      width: 100%;
    }

  .consulting-modal
    > .modal-wrapper
    > .modal-body
    > .qna
    > .qna-item
    > .radio-box
    > .radio-box-wrapper
    > .radio {
    width: 50%;
  }

  .consulting-modal
    > .modal-wrapper
    > .modal-body
    > .qna
    > .qna-item
    > .radio-box
    > .radio-box-wrapper > input[type="text"] {
      width: 100%;
      height: 40px;
    }

  .consulting-modal > .modal-wrapper > .modal-body > .agree-text {
    /* width: 100%; */
    width: 100%;
    height: 416px; 
    box-sizing: border-box;
  }

  .consulting-modal > .modal-wrapper > .modal-body > .agree {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 0 10px;
  }

  .consulting-modal > .modal-wrapper > .modal-body > .agree > label {
    cursor: pointer;
  }

  .consulting-modal > .modal-wrapper > .modal-body > .submit {
    width: 100%;
  }

  .consulting-modal
    > .modal-wrapper
    > .modal-body
    > .submit
    > input[type="submit"] {
    width: 100%;
    height: 50px;
    border: none;
    background-color: rgba(68, 114, 196);
    cursor: pointer;
  }
}
