/* =========================================
   EDIT PROFILE PAGE
   Imports: forms.css (shared form styles)
   ========================================= */

/* Address Autocomplete */
.address-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: white;
  border: 1.5px solid #e0e0e0;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  z-index: 100;
  max-height: 220px;
  overflow-y: auto;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.875rem 1rem;
  border: none;
  background: none;
  text-align: left;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-dark);
  cursor: pointer;
  transition: background 0.15s ease;
}

.suggestion-item:first-child {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.suggestion-item:last-child {
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.suggestion-item:hover {
  background: var(--tag-purple-bg);
}

.suggestion-item svg {
  color: var(--primary-purple);
  flex-shrink: 0;
}

.suggestion-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggestion-details-inline {
  color: var(--text-grey, #888);
  font-size: 0.85em;
  margin-left: 0.25rem;
}

.suggestion-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  color: var(--text-grey);
  font-size: 0.875rem;
}

.loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #e0e0e0;
  border-top-color: var(--primary-purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Missing info alert banner ─────────────────────── */
.info-alert-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
  border: 1.5px solid #f59e0b;
  border-radius: var(--radius-md, 12px);
  padding: 0.875rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  color: #92400e;
}

.info-alert-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.info-alert-text {
  flex: 1;
  font-weight: 500;
  line-height: 1.4;
}

/* ── Bank details section divider ──────────────────── */
.form-section-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--text-grey, #888);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-section-divider::before,
.form-section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}
