form#form-area-of-interest,
form#form-topic,
form#form-free-word {
  height: 100%;
  display: flex;
  flex-direction: column;
}

form .field {
  flex: 1 1 auto;
  background: rgb(0, 0, 0, 0.75);
  padding: 30px 0;
  height: 0;
  display: flex;
  flex-direction: column;
}

.field_title {
  color: white;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  margin-bottom: 16px;
  flex: none;
}

.field_wrap input {
  width: 0;
  height: 0;
  display: none;
}

.field_wrap input[type="checkbox"]:checked + label {
  background: #424f54;
}

.field_wrap .input-checkbox {
  height: 38px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  color: white;
  font-size: 14px;
  border: 1px solid var(--cl-gray-600);
  cursor: pointer;
}

.field_tab1 .field_wrap .input-checkbox {
  width: 100%;
  border-radius: 6px;
}

.field_tab1 .field_wrap .input-checkbox span {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.field_tab1 .field_wrap .input-checkbox svg {
  flex: none;
}

.field_tab2 .field_wrap .input-checkbox {
  width: fit-content;
  border-radius: calc(infinity * 1px);
}

.field_inputs {
  flex: 1 1 auto;
  width: 100%;
  padding: 0 20px;
  margin: 0 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.field_tab1 {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 10px;
}

.field_tab2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.field_tab3 {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  position: relative;
}

.field_tab3 .field_search {
  width: 100%;
  max-width: 400px;
  position: relative;
}

.field_tab3 input {
  width: 100%;
  height: 50px;
  background: transparent;
  border-bottom: 1px solid white;
  outline: none;
  color: white;
  font-size: 16px;
  border-radius: 0px;
}

.field_tab3 #recommend-list {
  display: none;
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  background: white;
  color: black;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-height: 200px;
  overflow-y: auto;
  border-radius: 8px;
  padding: 8px;
}

.field_tab3 #recommend-list .recommend-item {
  display: flex;
  align-items: center;
  padding: 10px;
  cursor: pointer;
  border-radius: 6px;
}

.field_tab3 #recommend-list .recommend-item:hover {
  background: rgba(0, 0, 0, 0.1);
}

.field_tab3 #recommend-list .recommend-item svg {
  flex: none;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  fill: currentColor;
  margin-top: 2px;
}

.field_tab3 #recommend-list .recommend-item span {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media screen and (min-width: 576px) {
  .field_inputs {
    width: fit-content;
    padding: 0;
  }

  .field_tab1 .field_wrap .input-checkbox {
    width: 270px;
  }

  .field_tab1 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field_tab2 {
    padding: 0 40px;
  }

  .field_tab3 .field_search {
    width: 400px;
  }
}

@media screen and (min-width: 870px) {
  .field_tab1 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .field_tab2 {
    padding: 0 120px;
  }
}

.field_wrap .input-checkbox:hover {
  border: 1px solid white;
}

.field_wrap .input-checkbox:hover .icon-check,
.field_wrap input[type="checkbox"]:checked + label .icon-check {
  color: white;
}

.field_wrap input[type="checkbox"]:checked + label .icon-check {
}

.field .input-checkbox .icon-check {
  color: var(--cl-gray-600);
  margin-right: 16px;
}

form .submit {
  flex: none;
  background: rgb(0, 0, 0, 0.75);
  padding: 32px 0;
}

.submit button {
  margin: 0 auto;
  display: block;
  border-radius: calc(infinity * 1px);
  display: flex;
  align-items: center;
  height: 58px;
  padding: 0 30px;
  cursor: pointer;
  background: white;
  font-weight: 600;
  font-size: 16px;
}

.submit button:hover {
  background: rgb(255, 255, 255, 0.9);
}

button .icon-search {
  margin-right: 10px;
}
