/************************************************************************************/
/*************************************** Form ***************************************/
/************************************************************************************/
/* absolute-center */
/* transition */
/* font-size */
:root {
  --border-radius: 20px;
  --border-radius-s: 10px;
  --gap: 32px;
}
@media (max-width: 1280px) {
  :root {
    --border-radius: 12px;
    --border-radius-s: 8px;
    --gap: 24px;
  }
}
@media (max-width: 767px) {
  :root {
    --border-radius: 8px;
    --border-radius-s: 6px;
    --gap: 16px;
  }
}

*: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[readonly],
textarea[readonly],
select[readonly] {
  border: none;
  padding-left: 0;
  outline-color: transparent;
  user-select: none;
}

input[type=checkbox] {
  display: none;
}
input[type=checkbox] + label {
  padding-left: calc(32px + 0.5em);
  position: relative;
  font-size: 1.6rem;
}
@media (max-width: 1280px) {
  input[type=checkbox] + label {
    font-size: 1.5rem;
  }
}
@media (max-width: 768px) {
  input[type=checkbox] + label {
    font-size: 1.4rem;
  }
}
input[type=checkbox] + label::before {
  display: block;
  content: "";
  width: 32px;
  aspect-ratio: 1;
  border: 1px solid var(--brd-c1);
  background: var(--white) url("/images/common/unchecked.png") no-repeat center;
  position: absolute;
  top: -6px;
  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;
}
@media (max-width: 767px) {
  input[type=checkbox] + label {
    padding-left: calc(24px + 0.5em);
  }
  input[type=checkbox] + label::before {
    width: 24px;
    top: -3px;
  }
}

input[type=radio] {
  display: none;
}
input[type=radio] + label {
  position: relative;
  margin-right: 2em;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
input[type=radio] + label::before, input[type=radio] + label::after {
  content: "";
  border-radius: 50%;
  display: block;
}
input[type=radio] + label::after {
  position: absolute;
}
input[type=radio] + label::before {
  width: 32px;
  aspect-ratio: 1;
  margin-right: 0.5em;
  margin-top: -2px;
  background: var(--white);
  left: 0;
  border: 1px solid var(--brd-c1);
}
input[type=radio]:checked + label::after {
  width: 16px;
  aspect-ratio: 1;
  background: var(--primary);
  top: 50%;
  left: 8px;
  margin-top: -1px;
  transform: translateY(-50%);
}
@media (max-width: 767px) {
  input[type=radio] + label::before {
    width: 24px;
    top: 0;
  }
  input[type=radio]:checked + label::after {
    width: 12px;
    left: 6px;
  }
}

.select-wrap {
  position: relative;
}
.select-wrap input {
  background: url("/images/management/common/arrow_down.png") no-repeat 1em 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::placeholder,
select::placeholder,
textarea::placeholder {
  color: var(--gray-500);
}
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;
}

.col-ect {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}
.col-ect .col-cont {
  width: calc(50% - 0.5em);
}
.col-ect .col-cont .cont {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.col-ect .col-cont .cont input {
  max-width: 318px;
}
.col-ect.col-add, .col-ect.col-cal {
  flex-wrap: nowrap;
}
.col-ect.col-add .col-cont, .col-ect.col-cal .col-cont {
  width: auto;
}
.col-ect.col-add .col-cont .cont, .col-ect.col-cal .col-cont .cont {
  flex-wrap: nowrap;
}
@media (max-width: 480px) {
  .col-ect .col-cont {
    flex: 1;
  }
  .col-ect.col-add, .col-ect.col-cal {
    flex-wrap: wrap;
  }
  .col-ect.col-add .col-cont, .col-ect.col-cal .col-cont {
    width: auto;
  }
  .col-ect.col-add .col-cont .cont, .col-ect.col-cal .col-cont .cont {
    flex-wrap: wrap;
  }
}

.col-radio {
  margin-block: 0.8em;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1em 0;
}

.col-wrap .col-ect,
.col-wrap .col {
  margin-bottom: 2em;
}
