/****************** input ******************/
input[type=text], input[type=password] {
  display: block;
  padding: 14px;
  font-size: var(--font-body);
  color: var(--gray900-color);
  background: var(--white-color);
  border-radius: 5px;
  border: 1px solid var(--gray300-color);
  vertical-align: middle;
  transition: all 0.3s;
}

input[type=text]:disabled, input[type=password]:disabled {
  display: block;
  padding: 14px;
  font-size: var(--font-body);
  color: var(--gray400-color);
  background: var(--gray100-color);
  border-radius: 5px;
  border: 1px solid var(--gray300-color);
  vertical-align: middle;
  transition: all 0.3s;
}

input[type=text]:disabled:hover, input[type=password]:disabled:hover {
  border: 1px solid var(--gray300-color);
}

input[type=text]:placeholder, input[type=password]:placeholder {
  font-size: var(--font-body);
  color: var(--gray500-color);
}

input[type=text]:hover, input[type=password]:hover {
  border: 1px solid var(--gray400-color);
}

input[type=text]:active, input[type=text]:focus, input[type=password]:active, input[type=password]:focus {
  border: 1px solid var(--green500-color);
}

input[type=text].error, input[type=password].error {
  border: 1px solid var(--negative-color);
}

.input-wrap {
  position: relative;
}

.input-wrap i.eye {
  position: absolute;
  top: 11px;
  right: 13px;
}

/****************** input ******************/
/****************** radio-btn ******************/
.radio-wrap input[type=radio] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  border: 0;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
}

.radio-wrap input[type=radio] + label {
  display: inline-block;
  position: relative;
  font-size: var(--font-body);
  /* padding: 6px 0 0 35px; */
  line-height: 20px;
  padding-left: 35px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  color: var(--gray700-color);
  cursor: pointer;
}

.radio-wrap div:not(:last-child) input[type=radio] + label {
  margin-right: 30px;
}

.radio-wrap input[type=radio] + label {
  color: var(--gray900-color);
}

.radio-wrap input[type=radio] + label:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  text-align: center;
  background: var(--white-color);
  border: 1px solid var(--gray400-color);
  border-radius: 100%;
}

.radio-wrap input[type=radio]:checked + label:before {
  background: var(--green400-color);
  border: 1px solid var(--green400-color);
}

.radio-wrap input[type=radio]:checked + label:after {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  width: 8px;
  height: 8px;
  background: var(--white-color);
  border-radius: 100%;
}

.radio-wrap input[type=radio]:disabled + label {
  color: var(--gray400-color);
}

.radio-wrap input[type=radio]:disabled + label:before {
  background: var(--white-color);
  border: 1px solid var(--gray300-color);
}

.radio-wrap input[type=radio]:disabled:checked + label:before {
  background: var(--gray300-color);
  border: 1px solid var(--gray300-color);
}

/****************** radio-btn ******************/
/****************** drop-down ******************/
.select {
  position: relative;
  display: block;
  width: 240px;
  padding: 12px 14px;
  border: 1px solid var(--gray300-color);
  border-radius: 5px;
  transition: all 0.3s ease-in;
}

.select:hover {
  border: 1px solid var(--gray500-color);
}

.select.disabled {
  color: var(--gray400-color);
  border: 1px solid var(--gray300-color);
  background: var(--gray100-color);
}

.select:focus, .select:active {
  border: 1px solid var(--gray400-color);
}

.select .selected {
  position: relative;
  display: flex;
  justify-content: space-between;
  z-index: 3;
}

.select .selected .selected-value {
  max-width: 180px;
  color: var(--gray500-color);
}

.select ul li,
.select .selected .selected-value {
  font-size: var(--font-body);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.select ul {
  display: none;
  position: absolute;
  top: 38px;
  left: -2px;
  width: calc(100% + 2px);
  border: 1px solid var(--gray400-color);
  border-radius: 5px;
  background: var(--white-color);
  cursor: pointer;
  z-index: 2;
}

.select.active ul {
  display: initial;
  z-index: 4;
}

.select ul li {
  padding: 12px 14px;
}

.select .arrow {
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
}

.select .arrow img:last-child, .select.active .arrow img:first-child {
  display: none;
}

.select.active .arrow img:last-child {
  display: block;
}

/****************** drop-down ******************/
/****************** checkbox ******************/
.check-box input[type=checkbox] {
  display: none;
}

.check-box input[type=checkbox] + label {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 1px solid var(--gray400-color);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease-in;
}

.check-box input[type=checkbox]:checked + label {
  background: var(--green400-color) url("../../assets/images/icon/check.png") no-repeat center/10px 10px;
  border: 1px solid var(--green400-color);
}

.check-box input[type=checkbox]:disabled + label {
  border-color: var(--gray300-color);
}

.check-box input[type=checkbox]:checked:disabled + label {
  background: var(--gray300-color);
  border-color: var(--gray300-color);
}

.check-box input[type=checkbox] + label span {
  display: block;
  position: absolute;
  top: 5px;
  left: 30px;
}

.check-box2 {
  margin-top: 30px;
}

.check-box2 label {
  font-size: var(--font-body);
  color: var(--gray900-color);
  cursor: pointer;
}

.check-box2 input[type=checkbox] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.check-box2 input[type=checkbox] + label {
  display: inline-block;
  position: relative;
  padding-left: 30px;
  cursor: pointer;
}

.check-box2 input[type=checkbox] + label:before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 20px;
  height: 20px;
  text-align: center;
  border: solid 1px var(--gray400-color);
  border-radius: 5px;
  box-sizing: border-box;
}

.check-box2 input[type=checkbox]:checked + label:after {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: solid 1px var(--green400-color);
  background: var(--green400-color) url("../../assets/images/icon/check.png") no-repeat center/12px;
}

/****************** checkbox ******************/
/****************** textarea ******************/
textarea {
  width: 100%;
  height: 160px;
  padding: 12px 14px;
  background: transparent;
  font-size: var(--font-body);
  color: var(--gray900-color);
  border: none;
  outline: none;
  resize: none;
  box-shadow: none;
  box-sizing: border-box;
  text-indent: 0;
  border: 1px solid var(--gray300-color);
  border-radius: 5px;
  transition: all 0.3s ease-in;
}

textarea::placeholder {
  color: var(--gray500-color);
}

textarea:hover {
  color: var(--gray500-color);
  border: 1px solid var(--gray400-color);
}

textarea:active, textarea:focus {
  color: var(--gray500-color);
  border: 1px solid var(--green400-color);
}

/****************** textarea ******************/
/****************** datepicker ******************/
.date-picker {
  align-items: center;
}
.date-picker > span {
  margin: 0 10px;
}

.date-picker > div {
  position: relative;
}

.date-picker input {
  width: 160px;
  height: 40px;
}

.date-picker img {
  position: absolute;
  top: 12px;
  right: 13px;
  width: 14px;
}

/****************** datepicker ******************/
/****************** nice-select ******************/
.select-input {
  min-width: 145px;
  height: 46px;
}
.select-input.S2 {
  height: 40px;
}
.select-input.S2 .nice-select:after {
  content: "";
  right: 9px;
  top: 9px;
}
.select-input.S2 .nice-select span.current {
  color: #99a1ab;
  font-weight: normal;
  font-size: 15px;
  width: -webkit-fill-available;
  overflow: hidden;
  text-overflow: ellipsis;
  /* line-height: 36px; */
  height: 100%;
  display: flex;
  align-items: center;
}

.join-wrap .select-input li + li {
  margin-top: 0;
}

.change .select-input li:not(:last-child) {
  margin-bottom: 0;
}

.nice-select {
  -webkit-tap-highlight-color: transparent;
  clear: both;
  cursor: pointer;
  font-weight: normal;
  position: relative;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  white-space: nowrap;
  line-height: normal;
  min-width: 110px;
  height: 100%;
  padding: 0 14px;
  border-radius: 5px;
  border: solid 1px #e8ebed;
  background-color: #fff;
}

.nice-select.open {
  border: solid 1px #c6c8cd;
}

span.current {
  color: #333333;
  font-weight: 500;
  width: -webkit-fill-available;
  overflow: hidden;
  text-overflow: ellipsis;
  /* line-height: 36px; */
  height: 100%;
  display: flex;
  align-items: center;
}

.nice-select:after {
  content: "";
  width: 20px;
  height: 20px;
  background: url(../images/icon/ico_chevron.png) no-repeat;
  background-size: contain;
  pointer-events: none;
  position: absolute;
  right: 10px;
  top: 13px;
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}

.nice-select.open:after {
  content: "";
  width: 20px;
  height: 20px;
  background: url(../images/icon/ico_chevron_open.png) no-repeat;
  background-size: contain;
}

.nice-select.open .list {
  opacity: 1;
  pointer-events: auto;
  -webkit-transform: scale(1) translateY(0);
  -ms-transform: scale(1) translateY(0);
  transform: scale(1) translateY(0);
}

.nice-select.disabled {
  border-color: #ededed;
  color: #999;
  pointer-events: none;
}

.nice-select.disabled:after {
  border-color: #cccccc;
}

.nice-select .list {
  background-color: #fff;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 100%;
  left: 0;
  -webkit-transform-origin: 50% 0;
  -ms-transform-origin: 50% 0;
  transform-origin: 50% 0;
  -webkit-transform: scale(0.75) translateY(-21px);
  -ms-transform: scale(0.75) translateY(-21px);
  transform: scale(0.75) translateY(-21px);
  -webkit-transition: all 0.2s cubic-bezier(0.5, 0, 0, 1.25), opacity 0.15s ease-out;
  transition: all 0.2s cubic-bezier(0.5, 0, 0, 1.25), opacity 0.15s ease-out;
  z-index: 9;
  border-radius: 5px;
  border: solid 1px #c6c8cd;
  background-color: #fff;
  width: 100%;
  max-height: 180px;
  overflow: auto;
}

.nice-select .list:hover .option:not(:hover) {
  background-color: transparent !important;
}

.nice-select .option {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  font-weight: 400;
  list-style: none;
  outline: none;
  padding: 13px 14px;
  text-align: left;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
  color: #99a1ab;
}

.nice-select .option:hover {
  background-color: #f7f7f7;
}

.nice-select .option.disabled {
  background-color: transparent;
  color: #999;
  cursor: default;
}

.no-csspointerevents .nice-select .list {
  display: none;
}

.no-csspointerevents .nice-select.open .list {
  display: block;
}

.pop_input .nice-select {
  max-width: 456px;
}

.pop_input .nice-select span.current {
  max-width: 95%;
}

.nice-select .option.selected {
  background-color: #f7f7f7;
}

.nice-select .option.focus {
  color: #16be44;
}

/****************** nice-select ******************/