/* RELF — popup de captura de lead antes do WhatsApp. Usa os mesmos tokens de design do site (var(--accent), var(--petrol), Satoshi/Cabinet Grotesk). */
.relf-lead-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 43, 47, 0.55);
  backdrop-filter: blur(2px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}
.relf-lead-overlay.open { display: flex; }

.relf-lead-modal {
  background: var(--bg-elevated, #fff);
  border-radius: 24px;
  max-width: 420px;
  width: 100%;
  padding: 32px 28px 28px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 43, 47, 0.3);
  font-family: 'Satoshi', 'IBM Plex Sans', sans-serif;
}
.relf-lead-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--surface-alt, #F1F4F4);
  color: var(--text, #002B2F);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.relf-lead-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent, #00B3C2) 0%, var(--petrol, #00353B) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.relf-lead-icon svg { width: 24px; height: 24px; color: #fff; }

.relf-lead-modal h2 {
  font-family: 'Cabinet Grotesk', 'Clash Display', sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text, #002B2F);
  margin: 0 0 6px;
  line-height: 1.2;
}
.relf-lead-modal p.relf-lead-sub {
  color: var(--muted, #4C6266);
  font-size: 0.9375rem;
  margin: 0 0 20px;
  line-height: 1.5;
}

.relf-lead-field { margin-bottom: 14px; }
.relf-lead-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text, #002B2F);
  margin-bottom: 6px;
}
.relf-lead-field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--hairline, rgba(0,43,47,.12));
  font-size: 1rem;
  font-family: inherit;
  color: var(--text, #002B2F);
  background: #fff;
}
.relf-lead-field input:focus {
  outline: none;
  border-color: var(--accent, #00B3C2);
  box-shadow: 0 0 0 3px rgba(0,179,194,.15);
}
.relf-lead-field .relf-lead-err {
  color: #dc2626;
  font-size: 0.75rem;
  margin-top: 4px;
  display: none;
}
.relf-lead-field.invalid input { border-color: #dc2626; }
.relf-lead-field.invalid .relf-lead-err { display: block; }

.relf-lead-consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 16px 0;
  font-size: 0.75rem;
  color: var(--muted, #4C6266);
  line-height: 1.4;
}
.relf-lead-consent input { margin-top: 2px; flex-shrink: 0; }
.relf-lead-consent a { color: var(--accent-dark, #00909C); text-decoration: underline; }

.relf-lead-submit {
  width: 100%;
  padding: 15px 20px;
  border-radius: 100px;
  border: none;
  background: linear-gradient(135deg, var(--accent, #00B3C2) 0%, var(--petrol, #00353B) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.relf-lead-submit:disabled { opacity: 0.75; cursor: default; }
.relf-lead-submit svg { width: 18px; height: 18px; }

@media (prefers-reduced-motion: no-preference) {
  .relf-lead-submit.relf-pulse {
    animation: relf-lead-pulse 1.8s ease-in-out infinite;
  }
  @keyframes relf-lead-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 10px 28px rgba(0,179,194,.32); }
    50% { transform: scale(1.025); box-shadow: 0 14px 36px rgba(0,179,194,.46); }
  }
}

.relf-lead-form-err {
  color: #dc2626;
  font-size: 0.8125rem;
  margin-top: 10px;
  text-align: center;
  display: none;
}
.relf-lead-form-err.show { display: block; }

.relf-lead-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: relf-lead-spin 0.7s linear infinite;
}
@keyframes relf-lead-spin { to { transform: rotate(360deg); } }
