/*
  ABLA - Anti Duplicidade (Associe-01)
  UI: modal + feedback de processamento
*/

.abla-highlight {
  outline: 3px solid rgba(124, 58, 237, 0.55) !important;
  outline-offset: 2px !important;
  border-radius: 6px !important;
}

.elementor-form .elementor-button.abla-is-busy,
.elementor-form button.abla-is-busy,
.elementor-form input[type="submit"].abla-is-busy {
  opacity: .85;
  pointer-events: none;
}

.abla-btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: rgba(255,255,255,1);
  border-radius: 50%;
  animation: abla-spin .7s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

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

/* Modal */
.abla-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 999999;
}

.abla-modal-overlay.is-open {
  display: flex;
}

.abla-modal {
  width: min(640px, 100%);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0,0,0,.25);
  padding: 18px;
  position: relative;
}

.abla-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  color: #111827;
}

.abla-modal-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.abla-modal-badge {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  background: #eef2ff;
  color: #4f46e5;
  flex: 0 0 auto;
}

.abla-modal-title {
  font-size: 18px;
  font-weight: 800;
  color: #111827;
  margin-top: 2px;
}

.abla-modal-subtitle {
  font-size: 13px;
  color: #6b7280;
  margin-top: 4px;
}

.abla-modal-body {
  font-size: 14px;
  color: #111827;
  line-height: 1.5;
}

.abla-modal-body p {
  margin: 0 0 10px;
}

.abla-modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 12px;
}

.abla-modal-btn {
  appearance: none;
  border: 1px solid rgba(0,0,0,.10);
  background: #f3f4f6;
  color: #111827;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}

.abla-modal-btn:hover {
  transform: translateY(-1px);
  opacity: .95;
}

.abla-modal-btn.is-primary {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #fff;
}

.abla-modal-btn.is-danger {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}

/* Steps */
.abla-modal-steps {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.abla-step {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}

.abla-step-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #d1d5db;
  flex: 0 0 auto;
}

.abla-step.is-active .abla-step-dot {
  background: #7c3aed;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15);
}

.abla-step.is-done .abla-step-dot {
  background: #10b981;
}

/* Variantes */
.abla-modal-overlay.is-success .abla-modal-badge {
  background: #ecfdf5;
  color: #10b981;
}

.abla-modal-overlay.is-warning .abla-modal-badge {
  background: #fffbeb;
  color: #d97706;
}

.abla-modal-overlay.is-error .abla-modal-badge {
  background: #fef2f2;
  color: #ef4444;
}

.abla-modal-overlay.is-processing .abla-modal-badge {
  background: #eff6ff;
  color: #2563eb;
}
