.form-text-input {
  padding: 12px;
  background-color: white;
  border: 1px solid var(--neutral-400);
  border-radius: 8px;
  color: var(--neutral-800);
  width: 100%;
  font-size: 14px;
  line-height: 140%;
}
input.form-text-input:focus-visible {
  border-color: var(--primary-400);
}
.form-text-input::placeholder {
  border-color: var(--primary-200);
  font-size: 14px;
  color: var(--neutral-500);
  line-height: 100%;
}
@media (max-width: 768px) {
  .form-text-input {
    padding: 12px;
  }
}
/* CHECKBOX */
input[type='checkbox'].form-checkbox {
  appearance: none; /* Remove default checkbox style */
  width: 16px;
  height: 16px;
  border: 1px solid var(--black-color2);
  border-radius: 4px; /* Làm bo tròn checkbox */
  background-color: white;
  cursor: pointer;
  display: inline-block;
  position: relative;
}

/* Checked state */
input[type='checkbox']:checked.form-checkbox {
  background-color: var(--black-color1);
  border-color: var(--black-color1);
}
/* Checked state */
input[type='checkbox']:focus.form-checkbox {
  outline: 0px;
}

/* Checkmark inside the checkbox */
input[type='checkbox']::after.form-checkbox {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: white;
  /* top: 50%; */
  /* left: 50%; */
  transform: translate(-50%, -50%);
  border-radius: 50%; /* Inner circle */
  display: none;
}

input[type='checkbox']:checked::after.form-checkbox {
  display: block;
}

/* Checkmark inside the checkbox */
input[type='checkbox']::after {
  content: '';
  position: absolute;
  top: 9px;
  left: 8px;
  aspect-ratio: 1;
  width: 13px;
  background-image: url('../../../assets/svg/icons/check.svg');
  background-size: contain;
  background-repeat: no-repeat;
  transform: translate(-50%, -50%);
  display: none; /* Hide by default */
}

input[type='checkbox']:checked::after {
  display: block; /* Show when checked */
}

.form-textarea-input {
  padding: 12px;
  background-color: white;
  border: 1px solid var(--neutral-400);
  border-radius: 8px;
  color: var(--neutral-800);
  width: 100%;
  font-size: 14px;
  line-height: 140%;
}
/* RADIO */
.custom-radio {
  appearance: none;
  background-color: white;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid #ccc;
  border-radius: 50%;
  position: relative;
  cursor: pointer;
}
.custom-radio:checked {
  border-color: var(--black-color1);
}
.custom-radio:checked::after {
  content: '';
  width: 10px;
  height: 10px;
  background-color: var(--black-color1);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
input:disabled {
  background-color: var(--neutral-300);
}

.loading-overlay {
  position: absolute;
  inset: 0;
  /* top: 0; left: 0; right: 0; bottom: 0 */
  background-color: var(--black-color1);
  /* light overlay */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  border-radius: inherit;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(250, 250, 250, 0.2);
  border-top-color: white;
  /* change to match theme */
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
