/* =====================================================================
   VegControl — modal de captura de lead (nome + telefone) antes do WhatsApp
   Segue a linguagem "Field Report / Blueprint" do site.
   ===================================================================== */

.vlf {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity .22s ease, visibility .22s;
}
.vlf.is-on { opacity: 1; visibility: visible; }

.vlf-backdrop {
  position: absolute; inset: 0;
  background: rgba(6, 17, 11, .74);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.vlf-card {
  position: relative;
  width: 100%; max-width: 452px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--ink, #0C1F16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 6px;
  padding: 34px 32px 28px;
  transform: translateY(16px) scale(.985);
  transition: transform .26s cubic-bezier(.2, .8, .3, 1);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8);
}
.vlf.is-on .vlf-card { transform: none; }

/* marcas de visor nos cantos (ecoam a mira da logo) */
.vlf-card::before,
.vlf-card::after {
  content: ''; position: absolute; width: 16px; height: 16px; pointer-events: none;
}
.vlf-card::before {
  top: 12px; left: 12px;
  border-top: 2px solid var(--lime, #B7CE3F);
  border-left: 2px solid var(--lime, #B7CE3F);
}
.vlf-card::after {
  bottom: 12px; right: 12px;
  border-bottom: 2px solid var(--lime, #B7CE3F);
  border-right: 2px solid var(--lime, #B7CE3F);
}

.vlf-x {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
  color: rgba(255, 255, 255, .55);
  transition: color .2s, background .2s;
}
.vlf-x:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.vlf-x svg { width: 17px; height: 17px; }

.vlf-tag {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono, 'IBM Plex Mono', monospace);
  font-size: 10.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  margin-bottom: 16px;
}
.vlf-tag::before {
  content: ''; width: 8px; height: 8px; flex-shrink: 0;
  background: var(--lime, #B7CE3F);
}
.vlf-tag b { color: var(--lime, #B7CE3F); font-weight: 600; }

.vlf-card h3 {
  font-family: var(--disp, 'Exo 2', sans-serif);
  font-weight: 700; letter-spacing: -.028em; line-height: 1.06;
  font-size: 27px;
  margin-bottom: 10px;
}
.vlf-card h3 span { color: var(--lime, #B7CE3F); }

.vlf-sub {
  font-size: 14.5px; line-height: 1.5;
  color: rgba(255, 255, 255, .62);
  margin-bottom: 24px;
}

.vlf-field { margin-bottom: 16px; }
.vlf-field label {
  display: block;
  font-family: var(--mono, 'IBM Plex Mono', monospace);
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  margin-bottom: 8px;
}
.vlf-field input {
  width: 100%; height: 52px;
  padding: 0 15px;
  font-family: inherit; font-size: 16px; color: #fff;
  background: rgba(255, 255, 255, .05);
  border: 1.5px solid rgba(255, 255, 255, .16);
  border-radius: 5px;
  outline: none;
  transition: border-color .2s, background .2s;
}
.vlf-field input::placeholder { color: rgba(255, 255, 255, .32); }
.vlf-field input:focus {
  border-color: var(--lime, #B7CE3F);
  background: rgba(255, 255, 255, .08);
}
.vlf-field.has-error input { border-color: #E4694A; }
.vlf-err {
  display: none;
  font-size: 12.5px; color: #F09277; margin-top: 7px;
}
.vlf-field.has-error .vlf-err { display: block; }

/* honeypot */
.vlf-hp {
  position: absolute !important; left: -9999px !important;
  width: 1px; height: 1px; opacity: 0; pointer-events: none;
}

.vlf-submit {
  width: 100%; height: 56px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 6px;
  border-radius: 5px;
  background: var(--lime, #B7CE3F);
  color: var(--ink, #0C1F16);
  font-weight: 700; font-size: 15px; letter-spacing: -.01em;
  transition: background .2s, transform .2s, opacity .2s;
}
.vlf-submit svg { width: 18px; height: 18px; }
.vlf-submit:hover { background: #c5db4e; transform: translateY(-2px); }
.vlf-submit:disabled { opacity: .65; cursor: wait; transform: none; }

.vlf-note {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 16px;
  font-family: var(--mono, 'IBM Plex Mono', monospace);
  font-size: 10.5px; line-height: 1.6; letter-spacing: .04em;
  color: rgba(255, 255, 255, .38);
}
.vlf-note svg { width: 13px; height: 13px; flex-shrink: 0; margin-top: 2px; }

/* estado de sucesso */
.vlf-done { display: none; text-align: center; padding: 12px 0 6px; }
.vlf.is-done .vlf-form { display: none; }
.vlf.is-done .vlf-done { display: block; }
.vlf-done-mark {
  width: 58px; height: 58px; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(183, 206, 63, .14);
  border: 1.5px solid var(--lime, #B7CE3F);
  color: var(--lime, #B7CE3F);
}
.vlf-done-mark svg { width: 26px; height: 26px; }
.vlf-done h4 {
  font-family: var(--disp, 'Exo 2', sans-serif);
  font-size: 21px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 8px;
}
.vlf-done p { font-size: 14px; color: rgba(255, 255, 255, .6); line-height: 1.5; }
.vlf-done a {
  display: inline-block; margin-top: 16px;
  font-family: var(--mono, 'IBM Plex Mono', monospace);
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--lime, #B7CE3F);
  border-bottom: 1px solid rgba(183, 206, 63, .4);
  padding-bottom: 2px;
}

@media (max-width: 520px) {
  .vlf { padding: 14px; align-items: flex-end; }
  .vlf-card { padding: 30px 22px 24px; max-height: calc(100vh - 28px); }
  .vlf-card h3 { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .vlf, .vlf-card { transition: none; }
}
