input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

input[type=number] {
  -moz-appearance: textfield;
}

::-webkit-input-placeholder {
  color: #bbb;
}

select:required:invalid {
  color: #bbb;
}

input:-internal-autofill-selected {
  color: inherit;
  background: inherit;
}

select:required option[value=""][disabled] {
  display: none;
}

select:required option {
  color: #011A01;
}

.form {
  --borderColor: #999;
}
.form-label {
  display: block;
  margin-bottom: 0.5rem;
}
.form-row {
  scroll-margin-top: 6rem;
}
.form-row-label {
  position: relative;
}
.form-row-label .form-label {
  position: absolute;
  left: 1rem;
  top: 50%;
  translate: 0 -50%;
  transition: all 0.3s;
  pointer-events: none;
}
.form-row-label .form-control:focus + .form-label, .form-row-label .form-control:not(:placeholder-shown) + .form-label {
  top: 0;
  font-size: calc(1.2rem * var(--qahwcag_base-font-size));
}
.form-row-label ::-webkit-input-placeholder {
  color: rgba(0, 0, 0, 0);
}
.form-error {
  background: #C50010;
  color: #fff;
  border-radius: 4px;
  display: inline-block;
  font-size: calc(1.2rem * var(--qahwcag_base-font-size));
  margin-top: 5px;
  font-weight: 400;
  padding: 0.3rem 0.8rem;
}
.form-control {
  font-size: clamp(1.9rem * var(--qahwcag_base-font-size, 1), 1.8648rem + 0.11vw * var(--qahwcag_base-font-size, 1), 2rem * var(--qahwcag_base-font-size, 1));
  font-family: inherit;
  padding: 1.4rem 2.8rem;
  width: 100%;
  outline: 0;
  background: #fff;
  border: 1px solid var(--borderColor);
  border-radius: 0.6rem;
  transition: all 0.3s;
  -webkit-appearance: none;
  appearance: none;
}
.form-control:hover, .form-control:focus {
  box-shadow: 0 0 1rem rgba(161, 205, 58, 0.4);
}
.form-control:focus {
  outline: 2px dashed rgba(161, 205, 58, 0.4);
  outline-offset: 1px;
  transition: none;
}
.form-control[disabled] {
  color: #ccc;
  background-color: rgba(0, 0, 0, 0.1);
}
.form-select {
  background: #fff right 1.4rem center/1.4rem auto no-repeat;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="rgb(30,30,30)" d="M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"></path></svg>');
  padding-right: 4rem;
}
.form-select option {
  color: #011A01;
}
.form-separator {
  border-top: 1px solid var(--borderColor);
}

[type=tel] {
  padding-left: 7rem;
  background-position: left center;
  background-size: auto 100%;
  background-repeat: no-repeat;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><g transform="translate(-1751 -2622)"><rect width="50" height="50" transform="translate(1751 2622)" fill="rgb(70,70,70)"/><path d="M4.784-9.936v3.472H1.392v1.232H4.784v3.456h1.36V-5.232H9.552V-6.464H6.144V-9.936ZM17.488,0h1.44V-2.576h1.6V-3.84h-1.6v-7.616H17.184L11.568-3.68v1.1h5.92Zm-4.24-3.84,4.3-6.1v6.1ZM24.1-6.016a2.891,2.891,0,0,0-2.144,2.9c0,2.1,1.648,3.44,4.08,3.44,2.448,0,4.112-1.344,4.112-3.44a2.913,2.913,0,0,0-2.16-2.9A2.779,2.779,0,0,0,29.84-8.672c0-1.68-1.3-3.072-3.808-3.072S22.24-10.368,22.24-8.672A2.69,2.69,0,0,0,24.1-6.016Zm1.936-.48c-1.408,0-2.384-.784-2.384-1.984,0-1.36.96-2.048,2.384-2.048,1.456,0,2.4.7,2.4,2.032C28.432-7.3,27.456-6.5,26.032-6.5Zm0,1.12c1.52,0,2.672.72,2.672,2.208C28.7-1.824,27.68-.9,26.032-.9s-2.688-.912-2.688-2.272C23.344-4.7,24.544-5.376,26.032-5.376Z" transform="translate(1760 2653)" fill="rgb(255,255,255)"/></g></svg>');
}

.maxlength {
  text-align: right;
  font-size: calc(1.4rem * var(--qahwcag_base-font-size));
  color: var(--borderColor, #D6007E);
}

.password-btn {
  cursor: pointer;
  margin-left: -5.5rem;
}
.password-btn:before {
  content: "";
  width: 5rem;
  height: 4.2rem;
  background: url("/gfx/icons/sprite.svg#eye") center no-repeat;
  background-size: 2.6rem auto;
  display: inline-block;
  vertical-align: middle;
}
[type=text] + .password-btn:before {
  background-image: url("/gfx/icons/sprite.svg#eye-slash");
}

textarea {
  resize: vertical;
  min-height: 20rem;
  max-height: 40rem;
}

.input-list {
  position: absolute;
  left: 0;
  top: 100%;
  opacity: 0;
  z-index: 1;
  background: #333;
  color: #fafaff;
  max-height: 0;
  overflow: hidden;
  width: 100%;
  transition: 0.5s all;
}
.input-list-container {
  position: relative;
}
.input-list.show {
  opacity: 1;
  max-height: 20rem;
  overflow-y: auto;
}
.input-list.loading:after {
  content: "...";
  padding: 1rem;
  display: block;
}
.input-list-item {
  padding: 1rem;
  cursor: pointer;
}
.input-list-item.active, .input-list-item:hover {
  background: #444;
}

.checkbox {
  position: relative;
  min-width: 2rem;
  min-height: 2rem;
}
.checkbox input, .checkbox-content {
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 2rem;
  height: 2rem;
}
.checkbox input {
  opacity: 0;
  z-index: 1;
  cursor: pointer;
}
.checkbox input[disabled] ~ label {
  opacity: 0.5;
}
.checkbox input:focus + .checkbox-content {
  outline: 2px dashed rgba(161, 205, 58, 0.4);
  outline-offset: 1px;
}
.checkbox input:checked + .checkbox-content {
  background-color: var(--borderColor);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='rgb(255,255,255)' d='M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z'/%3E%3C/svg%3E");
}
.checkbox input:checked + .checkbox-content .point {
  animation: animatecheck 0.8s ease-out;
  background-color: rgba(0, 0, 0, 0.5);
}
.checkbox-content {
  border: 1px solid var(--borderColor);
  border-radius: 3px;
  background: #fff center/56% auto no-repeat;
  transition: background 0.5s;
}
.checkbox-content .point {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  translate: -50% -50%;
  animation: animatecheck 0.8s ease-out;
  background-color: #222;
}
.checkbox-label {
  padding-left: 3rem;
  display: block;
}
.checkbox a {
  text-decoration: underline;
  display: inline-block;
}
.checkbox-white .checkbox-content {
  border-color: #fff;
  background-color: #fff;
}
.checkbox-white input:checked + .checkbox-content {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z'/%3E%3C/svg%3E");
}
.checkbox-middle input,
.checkbox-middle .checkbox-content {
  top: 50%;
  translate: 0 -50%;
}
.checkbox-radio .checkbox-content {
  border-radius: 50%;
}

@keyframes animatecheck {
  0% {
    width: 200%;
    height: 200%;
    opacity: 1;
  }
  to {
    width: 400%;
    height: 400%;
    opacity: 0;
  }
}