/* ============================================================
   vm-lead-capture.css — Popup exit-intent + formulário inline
   Prefixo: vmlc- (lead capture)
   ============================================================ */

/* ── VARIÁVEIS ── */
:root {
  --vmlc-bg:        #0d1127;
  --vmlc-surface:   #111827;
  --vmlc-border:    rgba(255,255,255,.08);
  --vmlc-accent:    #6f4bf1;
  --vmlc-accent-glow: rgba(111,75,241,.18);
  --vmlc-text:      #f0f2ff;
  --vmlc-muted:     rgba(240,242,255,.65);
  --vmlc-input-bg:  rgba(255,255,255,.05);
  --vmlc-radius:    12px;
  --vmlc-shadow:    0 32px 80px rgba(0,0,0,.7);
}

/* ══════════════════════════════════════════════════════
   1. EXIT-INTENT POPUP
   ══════════════════════════════════════════════════════ */

#vmlc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
#vmlc-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

#vmlc-modal {
  background: var(--vmlc-bg);
  border: 1px solid rgba(111,75,241,.35);
  border-radius: 20px;
  box-shadow: var(--vmlc-shadow);
  width: 100%;
  max-width: 540px;
  padding: 40px 44px 36px;
  position: relative;
  transform: translateY(20px) scale(.97);
  transition: transform .3s cubic-bezier(.22,.68,0,1.2);
}
#vmlc-overlay.is-open #vmlc-modal {
  transform: translateY(0) scale(1);
}

.vmlc-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--vmlc-muted);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color .2s;
}
.vmlc-close:hover { color: #fff; }

.vmlc-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--vmlc-accent);
  background: var(--vmlc-accent-glow);
  border: 1px solid rgba(111,75,241,.3);
  padding: 3px 11px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.vmlc-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--vmlc-text);
  line-height: 1.25;
  margin: 0 0 10px;
}
.vmlc-title span { color: var(--vmlc-accent); }

.vmlc-sub {
  font-size: .9rem;
  color: var(--vmlc-muted);
  margin: 0 0 26px;
  line-height: 1.6;
}

/* Form */
.vmlc-form { display: flex; flex-direction: column; gap: 12px; }

.vmlc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.vmlc-field { display: flex; flex-direction: column; gap: 5px; }

.vmlc-label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--vmlc-muted);
  letter-spacing: .02em;
}

.vmlc-input,
.vmlc-select {
  background: var(--vmlc-input-bg);
  border: 1px solid var(--vmlc-border);
  border-radius: 8px;
  color: var(--vmlc-text);
  font-size: .92rem;
  padding: 11px 14px;
  width: 100%;
  transition: border-color .2s;
  outline: none;
  box-sizing: border-box;
  font-family: inherit;
}
.vmlc-input::placeholder { color: rgba(240,242,255,.3); }
.vmlc-input:focus,
.vmlc-select:focus { border-color: var(--vmlc-accent); }
.vmlc-select { cursor: pointer; }
.vmlc-select option { background: #1a2035; color: var(--vmlc-text); }
.vmlc-select optgroup { color: var(--vmlc-muted); }

.vmlc-submit {
  background: var(--vmlc-accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px;
  cursor: pointer;
  width: 100%;
  margin-top: 4px;
  transition: background .2s, transform .15s;
  font-family: inherit;
  letter-spacing: .01em;
}
.vmlc-submit:hover { background: #5c3cd6; }
.vmlc-submit:active { transform: scale(.98); }
.vmlc-submit:disabled { opacity: .6; cursor: not-allowed; }

.vmlc-disclaimer {
  font-size: .74rem;
  color: var(--vmlc-muted);
  text-align: center;
  margin-top: 10px;
}

.vmlc-msg {
  display: none;
  text-align: center;
  padding: 14px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
}
.vmlc-msg--success { background: rgba(34,197,94,.12); color: #4ade80; border: 1px solid rgba(34,197,94,.3); }
.vmlc-msg--error   { background: rgba(239,68,68,.12);  color: #f87171; border: 1px solid rgba(239,68,68,.3); }
.vmlc-msg.is-visible { display: block; }

.vmlc-wa-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--vmlc-muted);
  font-size: .83rem;
  text-decoration: none;
  margin-top: 8px;
  transition: color .2s;
}
.vmlc-wa-link:hover { color: #4ade80; }
.vmlc-wa-link svg { flex-shrink: 0; }

/* ══════════════════════════════════════════════════════
   2. FORMULÁRIO INLINE (nas páginas de produto)
   ══════════════════════════════════════════════════════ */

.vmlc-inline {
  background: linear-gradient(135deg, rgba(111,75,241,.12) 0%, rgba(6,9,26,.8) 100%);
  border: 1px solid rgba(111,75,241,.3);
  border-radius: 18px;
  padding: 36px 40px;
  margin: 56px 0;
}

.vmlc-inline-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.vmlc-inline-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px;
}
.vmlc-inline-title span { color: var(--vmlc-accent); }

.vmlc-inline-sub {
  font-size: .88rem;
  color: var(--vmlc-muted);
  margin: 0;
}

.vmlc-inline-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}

.vmlc-inline-form .vmlc-field { gap: 5px; }

.vmlc-inline-submit {
  background: var(--vmlc-accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 700;
  padding: 11px 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
  font-family: inherit;
  align-self: end;
  height: 42px;
}
.vmlc-inline-submit:hover { background: #5c3cd6; }
.vmlc-inline-submit:disabled { opacity: .6; cursor: not-allowed; }

.vmlc-inline-msg {
  grid-column: 1 / -1;
  display: none;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 600;
}
.vmlc-inline-msg--success { background: rgba(34,197,94,.12); color: #4ade80; border: 1px solid rgba(34,197,94,.3); }
.vmlc-inline-msg--error   { background: rgba(239,68,68,.12);  color: #f87171; border: 1px solid rgba(239,68,68,.3); }
.vmlc-inline-msg.is-visible { display: block; }

/* ══════════════════════════════════════════════════════
   3. FORMULÁRIO ROI INLINE (calculadora → captura)
   ══════════════════════════════════════════════════════ */

#vmlc-roi-capture {
  background: linear-gradient(135deg, rgba(111,75,241,.15) 0%, rgba(13,17,39,.95) 100%);
  border: 1px solid rgba(111,75,241,.4);
  border-radius: 14px;
  padding: 24px 28px;
  margin: 20px 0 16px;
  display: none;
}
#vmlc-roi-capture.is-visible { display: block; }

.vmlc-roi-capture-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
}
.vmlc-roi-capture-sub {
  font-size: .82rem;
  color: var(--vmlc-muted);
  margin: 0 0 16px;
}

.vmlc-roi-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}

.vmlc-roi-submit {
  background: var(--vmlc-accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 700;
  padding: 11px 18px;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  height: 42px;
  transition: background .2s;
}
.vmlc-roi-submit:hover { background: #5c3cd6; }
.vmlc-roi-submit:disabled { opacity: .6; cursor: not-allowed; }

.vmlc-roi-msg {
  grid-column: 1 / -1;
  display: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
}
.vmlc-roi-msg--success { background: rgba(34,197,94,.12); color: #4ade80; border: 1px solid rgba(34,197,94,.3); }
.vmlc-roi-msg--error   { background: rgba(239,68,68,.12);  color: #f87171; border: 1px solid rgba(239,68,68,.3); }
.vmlc-roi-msg.is-visible { display: block; }

/* ── RESPONSIVO ── */
@media (max-width: 700px) {
  #vmlc-modal { padding: 32px 24px 28px; }
  .vmlc-row { grid-template-columns: 1fr; }
  .vmlc-title { font-size: 1.3rem; }

  .vmlc-inline { padding: 24px 20px; }
  .vmlc-inline-form {
    grid-template-columns: 1fr;
  }
  .vmlc-inline-submit { width: 100%; }

  .vmlc-roi-form { grid-template-columns: 1fr; }
  .vmlc-roi-submit { width: 100%; }
}
@media (max-width: 900px) {
  .vmlc-inline-form { grid-template-columns: 1fr 1fr; }
  .vmlc-inline-submit { grid-column: 1 / -1; width: 100%; }
}
