/* Form validation, loader, modal — same functional styles as Halyk AI */

.signup-form .form-field {
  position: relative;
  width: 100%;
  margin-bottom: 6px;
  padding-bottom: 8px;
  grid-column: 1 / -1;
}

.signup-form .form-field input {
  width: 100%;
}

.signup-form .iti {
  width: 100%;
}

span.error {
  position: absolute;
  bottom: -10px;
  left: 0;
  right: auto;
  font-size: 12px;
  color: #d32f2f;
  display: none;
  text-align: left;
  line-height: 1.2;
  z-index: 2;
}

span.error.active {
  display: block;
}

input.error {
  background: #ffa9a973 !important;
  border-color: #e57373 !important;
}

input.valid {
  background: #90ff9073 !important;
}

.universal-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.45) !important;
  z-index: 5000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
}

.universal-modal-content {
  background-color: #ffffff !important;
  padding: 32px 24px !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
  text-align: center !important;
  position: relative !important;
  max-width: 420px !important;
  width: 100% !important;
}

.universal-modal-content p {
  line-height: 140% !important;
  margin: 10px 0 0 !important;
  color: #0b4f76 !important;
}

.universal-modal-close {
  position: absolute !important;
  top: 5px !important;
  right: 5px !important;
  cursor: pointer !important;
  width: 30px !important;
  height: 30px !important;
}

.universal-modal-close:hover {
  color: #333333 !important;
}

.universal-modal-close::before,
.universal-modal-close::after {
  content: "" !important;
  position: absolute !important;
  top: 14px !important;
  left: 7px !important;
  width: 16px !important;
  height: 2px !important;
  background-color: #777777 !important;
}

.universal-modal-close::before {
  transform: rotate(45deg) !important;
}

.universal-modal-close::after {
  transform: rotate(-45deg) !important;
}

.universal-modal-open {
  overflow: hidden !important;
}

#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(168 168 168 / 70%);
  z-index: 4000;
}

#loader img {
  position: absolute;
  width: 130px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
