/************************************************************************************/
/*************************************** Form ***************************************/
/************************************************************************************/
*:disabled {
  opacity: 0.5;
  cursor: default;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: var(--input-padding-height) var(--input-padding-width);
}

input[type=checkbox] + label {
  font-size: 1.8rem;
  font-weight: 600;
  padding-left: 30px;
  position: relative;
}
input[type=checkbox] + label::before {
  content: "";
  width: 24px;
  height: 24px;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  background: var(--white) url("/images/common/unchecked.png") no-repeat center;
  margin-right: 1rem;
  display: block;
  position: absolute;
  top: 2px;
  left: 0;
}
input[type=checkbox]:checked + label::before {
  outline: 1px solid var(--point-color);
  background: var(--point-color) url("/images/common/checked.png") no-repeat center;
}

input[type=radio] + .input-label {
  margin-right: 2rem;
  padding-left: 25px;
  display: inline-block;
  position: relative;
}
input[type=radio] + .input-label::before, input[type=radio] + .input-label::after {
  content: "";
  border-radius: 50%;
  display: block;
  position: absolute;
}
input[type=radio] + .input-label::before {
  width: 20px;
  height: 20px;
  background: var(--white);
  top: 5px;
  left: 0;
}
input[type=radio]:checked + .input-label::after {
  width: 12px;
  height: 12px;
  background: var(--black);
  top: 9px;
  left: 4px;
}

.select-wrap {
  position: relative;
}
.select-wrap input {
  background: url("/images/management/common/arrow_down.png") no-repeat 90% center;
  cursor: pointer;
}
.select-wrap .select-option {
  width: 100%;
  background: var(--white);
  position: absolute;
  z-index: 50;
  display: none;
}
.select-wrap .select-option a {
  display: block;
}

input.error,
select.error,
textarea.error {
  border-color: var(--bs-danger) !important;
}
input.valid,
select.valid,
textarea.valid {
  border-color: var(--bs-success) !important;
}
input.error ~ label.error,
select.error ~ label.error,
textarea.error ~ label.error {
  position: absolute;
  width: auto;
  top: 100%;
  z-index: 5;
  display: block !important;
  max-width: 100%;
  padding: 0.25rem 0.5rem;
  margin-top: 0.1rem;
  font-size: 1.4rem !important;
  color: #fff;
  background-color: var(--bs-danger);
  border-radius: var(--bs-border-radius);
}

div:where(.swal2-container) div:where(.swal2-popup) {
  font-size: 1em;
}
div:where(.swal2-container) .swal2-html-container {
  font-size: 1em;
}
