/* AS Demo — Input Field Icon System (like old site's glyphicon addons) */
.as-field-group {
  position: relative;
  display: flex;
  align-items: stretch;
}
.as-field-group .as-field-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  background: #f7f9fb;
  border: 1px solid #d1d5db;
  border-left: none;
  border-radius: 0 4px 4px 0;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.as-field-group input,
.as-field-group select {
  border-radius: 4px 0 0 4px !important;
  border-right: none !important;
}
.as-field-group .as-icon-ok {
  background: #dcfce7;
  border-color: #22c55e;
  color: #16a34a;
}
.as-field-group .as-icon-warn {
  background: #fef9c3;
  border-color: #eab308;
  color: #ca8a04;
}
.as-field-group .as-icon-err {
  background: #fee2e2;
  border-color: #ef4444;
  color: #dc2626;
}

/* Validation message line below field */
.as-field-msg {
  min-height: 1.25rem;
}

/* Autocomplete Dropdown */
.as-autocomplete-list {
  position: absolute;
  z-index: 50;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-height: 12rem;
  overflow-y: auto;
}
.as-autocomplete-list > div {
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
}
.as-autocomplete-list > div:hover {
  background: #eff6ff;
}

/* Loader spinner */
.as-loader {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(0,69,173,0.2);
  border-top-color: #0045ad;
  border-radius: 50%;
  animation: as-spin 0.8s linear infinite;
}
@keyframes as-spin {
  to { transform: rotate(360deg); }
}
