/* GF Email Autocomplete – gfea.css */

.gform_wrapper .gfea-wrapper {
  position: relative;
  display: block;
}

/* ── Dropdown de sugestões ── */
.gform_wrapper .gfea-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  overflow: hidden;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  font-size: 0.9rem;
  max-height: 220px;
  overflow-y: auto;
  animation: gfea-fade-in 0.15s ease;
}

@keyframes gfea-fade-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gform_wrapper .gfea-dropdown li {
  padding: 8px 14px;
  cursor: pointer;
  color: #374151;
  transition: background 0.1s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gform_wrapper .gfea-dropdown li:hover,
.gform_wrapper .gfea-dropdown li.gfea-active {
  background: #f0f4ff;
  color: #1d4ed8;
}

.gform_wrapper .gfea-dropdown li .gfea-highlight {
  font-weight: 700;
  color: #1d4ed8;
}

/* ── Aviso "Did you mean?" ── */
.gform_wrapper .gfea-dym {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 2px 16px;
  font-size: 12px;
  color: #888;
  animation: gfea-fade-in 0.2s ease;
  font-style: italic !important;
}

.gform_wrapper .gfea-dym-link {
  font-weight: 600 !important;
  font-style: italic !important;
  color: #888 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  font-size: inherit !important;
  line-height: 1 !important;
  min-block-size: auto !important;
  box-shadow: none !important;
}

.gform_wrapper .gfea-dym-link:hover {
  color: #1d4ed8 !important;
}

.gform_wrapper .gfea-dym-dismiss {
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  color: #9ca3af !important;
  font-size: 1rem !important;
  line-height: 1 !important;
  padding: 0 2px !important;
  line-height: 1 !important;
  min-block-size: auto !important;
  box-shadow: none !important;
}

.gform_wrapper .gfea-dym .gfea-dym-dismiss:hover {
  color: #6b7280 !important;
}

/* ── Spinner enquanto chama ZeroBounce ── */
.gfea-checking::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 2px solid #d1d5db;
  border-top-color: #6b7280;
  border-radius: 50%;
  animation: gfea-spin 0.6s linear infinite;
  margin-left: 6px;
  vertical-align: middle;
}

@keyframes gfea-spin {
  to {
    transform: rotate(360deg);
  }
}
