

:root {
  --lcp-wa:        #25D366;
  --lcp-wa-dark:   #128C7E;
  --lcp-wa-deep:   #075E54;
  --lcp-wa-light:  #DCF8C6;
  --lcp-wa-soft:   #F2F2E8;
  --lcp-ink:       #1A0C0B;
  --lcp-ink-2:     #543D3B;
  --lcp-muted:     #816866;
  --lcp-line:      #EFE9E9;
  --lcp-bg:        #FFFFFF;
  --lcp-chat-bg:   #EFE7DD;
  --lcp-shadow:    0 30px 80px -20px rgba(7, 94, 84, 0.35), 0 10px 30px rgba(0,0,0,0.18);
  --lcp-radius:    22px;
}


.lcp-backdrop {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(18,140,126,0.35) 0%, rgba(26,8,7,0.75) 60%, rgba(26,8,7,0.92) 100%);
  backdrop-filter: blur(6px) saturate(1.2);
  -webkit-backdrop-filter: blur(6px) saturate(1.2);
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}
.lcp-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}


.lcp-modal {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--lcp-bg);
  border-radius: var(--lcp-radius);
  box-shadow: var(--lcp-shadow);
  overflow: hidden;
  transform: translateY(24px) scale(.96);
  opacity: 0;
  transition: transform .42s cubic-bezier(.22,1.2,.36,1), opacity .32s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--lcp-ink);
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
}
.lcp-backdrop.is-open .lcp-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}


/* Marca do escritorio, nao do WhatsApp. Verde de ponta a ponta reforcava a
   impressao de que a pessoa ja estava dentro do aplicativo; o verde fica onde
   significa acao, que e o botao. */
.lcp-header {
  background: linear-gradient(135deg, #5E1F1B 0%, #772A25 60%, #8E3A2A 100%);
  padding: 20px 22px 22px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.lcp-header::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, transparent 60%);
  pointer-events: none;
}
.lcp-header::after {
  content: "";
  position: absolute;
  left: -10%;
  bottom: -40px;
  width: 300px;
  height: 100px;
  background: radial-gradient(ellipse, rgba(220,248,198,0.25) 0%, transparent 70%);
  pointer-events: none;
}

.lcp-header-row {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.lcp-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  position: relative;
}
.lcp-avatar svg {
  width: 30px;
  height: 30px;
  fill: var(--lcp-wa);
}

.lcp-header-text { flex: 1; min-width: 0; }
.lcp-header-text h3 {
  margin: 0 0 3px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .2px;
  line-height: 1.25;
}
.lcp-header-text p {
  margin: 0;
  font-size: 15px;
  opacity: .92;
  display: flex;
  align-items: center;
  gap: 6px;
}
.lcp-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: 0;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background .2s;
}
.lcp-close:hover { background: rgba(255,255,255,0.32); }
.lcp-close svg { width: 16px; height: 16px; }


.lcp-chatbox {
  background: var(--lcp-chat-bg);
  background-image:
    radial-gradient(circle at 25% 25%, rgba(255,255,255,0.4) 0%, transparent 2%),
    radial-gradient(circle at 75% 75%, rgba(255,255,255,0.3) 0%, transparent 2%);
  padding: 22px 20px 18px;
  border-bottom: 1px solid var(--lcp-line);
}
/* Isca do anti-robo: fora da tela em vez de display:none, porque parte dos
   robos ignora campo com display none. Sem foco e sem leitura de tela. */
.lcp-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
}

/* texto de apoio: era um balao de conversa falso, com horario e dois tiques */
.lcp-intro {
  padding: 18px 22px 2px;
  background: #FBF0E4;
  border-bottom: 1px solid #E3D0BC;
}
.lcp-intro p {
  margin: 0 0 16px;
  font-size: 16.5px;
  line-height: 1.55;
  color: #54382F;
}

.lcp-body {
  padding: 20px 22px 14px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.lcp-field {
  margin-bottom: 13px;
  position: relative;
  animation: lcp-slide-up .45s ease-out both;
}
.lcp-field:nth-child(1) { animation-delay: .05s; }
.lcp-field:nth-child(2) { animation-delay: .10s; }
.lcp-field:nth-child(3) { animation-delay: .15s; }
.lcp-field:nth-child(4) { animation-delay: .20s; }
.lcp-field:nth-child(5) { animation-delay: .25s; }
.lcp-field:nth-child(6) { animation-delay: .30s; }

/* rotulo de campo e o que a pessoa le para saber o que digitar */
.lcp-field label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 650;
  color: var(--lcp-ink-2);
  margin-bottom: 6px;
  letter-spacing: .1px;
}
.lcp-field label .req {
  color: #E53935;
  font-size:16px;
  line-height: 1;
}

.lcp-input-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
}
.lcp-input-wrap .lcp-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--lcp-wa-dark);
  font-size: 14px;
  pointer-events: none;
  transition: color .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
}

.lcp-field input,
.lcp-field textarea,
.lcp-field select {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border: 1.5px solid var(--lcp-line);
  border-radius: 10px;
  font-size:17px;
  font-family: inherit;
  background: #fff;
  color: var(--lcp-ink);
  outline: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
  -webkit-appearance: none;
  appearance: none;
}
.lcp-field textarea {
  resize: vertical;
  min-height: 78px;
  padding-top: 12px;
}
.lcp-field input:focus,
.lcp-field textarea:focus,
.lcp-field select:focus {
  border-color: var(--lcp-wa);
  box-shadow: 0 0 0 4px rgba(37,211,102,0.14);
  background: #fff;
}
.lcp-field input:focus + .lcp-icon,
.lcp-field:focus-within .lcp-icon {
  color: var(--lcp-wa);
}
.lcp-field.has-error input,
.lcp-field.has-error textarea,
.lcp-field.has-error select {
  border-color: #E53935;
  box-shadow: 0 0 0 4px rgba(229,57,53,0.12);
}
.lcp-field-err {
  font-size:15px;
  color: #E53935;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}


.lcp-consent-wrap { position: relative; overflow: visible; }


.lcp-consent {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #FBF0E4;
  border-radius: 14px;
  margin-top: 4px;
  cursor: pointer;
  border: 1.5px solid #E3D0BC;
  transition: border-color .3s, background .3s, box-shadow .3s, transform .3s;
  position: relative;
  overflow: hidden;
  user-select: none;
}
.lcp-consent:hover {
  background: linear-gradient(135deg, #F2F1E6 0%, #E5E3CF 100%);
  border-color: var(--lcp-wa);
  box-shadow: 0 4px 16px rgba(37,211,102,.12);
}
.lcp-consent input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}


.lcp-consent .lcp-cbox {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #fff;
  border: 2px solid var(--lcp-wa-dark);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s cubic-bezier(.22,1.2,.36,1);
  box-shadow: 0 2px 6px rgba(7,94,84,.14), inset 0 1px 0 rgba(255,255,255,.8);
  position: relative;
}
.lcp-consent .lcp-cbox::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 12px;
  border: 2.5px solid var(--lcp-wa);
  opacity: 0;
  transform: scale(.7);
  pointer-events: none;
}
.lcp-consent .lcp-cbox svg {
  width: 16px;
  height: 16px;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  transition: stroke-dashoffset .4s cubic-bezier(.22,1.2,.36,1) .06s;
}
.lcp-consent input:checked + .lcp-cbox {
  background: linear-gradient(135deg, var(--lcp-wa) 0%, var(--lcp-wa-dark) 100%);
  border-color: var(--lcp-wa-dark);
  transform: scale(1.1) rotate(-3deg);
  box-shadow: 0 8px 20px rgba(37,211,102,.5), 0 0 0 3px rgba(37,211,102,.2);
}
.lcp-consent input:checked + .lcp-cbox svg { stroke-dashoffset: 0; }
.lcp-consent input:checked + .lcp-cbox::before { animation: lcp-cbox-ring .65s ease-out; }
@keyframes lcp-cbox-ring {
  0%   { opacity: .9; transform: scale(.5); }
  60%  { opacity: .4; transform: scale(1.3); }
  100% { opacity: 0;  transform: scale(1.6); }
}


.lcp-consent.is-checked {
  background: linear-gradient(135deg, rgba(37,211,102,.22) 0%, rgba(220,248,198,.7) 100%);
  border-color: var(--lcp-wa);
  box-shadow: 0 8px 28px rgba(37,211,102,.22);
  animation: lcp-consent-accept .55s cubic-bezier(.22,1.2,.36,1);
}
@keyframes lcp-consent-accept {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.02) translateY(-1px); }
  60%  { transform: scale(0.995); }
  100% { transform: scale(1); }
}

.lcp-consent.is-checked::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 10px; height: 10px;
  background: var(--lcp-wa);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  animation: lcp-consent-ripple .9s ease-out;
  pointer-events: none;
}
@keyframes lcp-consent-ripple {
  0%   { transform: translate(-50%, -50%) scale(0); opacity: .35; }
  100% { transform: translate(-50%, -50%) scale(50); opacity: 0; }
}


.lcp-consent span.lcp-consent-text {
  font-size:15.5px;
  line-height: 1.4;
  color: var(--lcp-ink-2);
  font-weight: 500;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color .3s;
}
.lcp-consent.is-checked span.lcp-consent-text {
  color: var(--lcp-wa-deep);
  font-weight: 700;
}
/* Aqui havia um "✓" concatenado ao fim do texto do aceite. Quando a frase
 quebrava em duas linhas ele caia sozinho na ultima, parecendo caractere
 perdido. A propria caixa marcada ja comunica o estado. */
.lcp-consent.needs-attention {
  animation: lcp-consent-attention .55s ease !important;
}
@keyframes lcp-consent-attention {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,.5); transform: scale(1); }
  40%  { box-shadow: 0 0 0 10px rgba(37,211,102,.25); transform: scale(1.018); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); transform: scale(1); }
}


.lcp-burst-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 20;
  top: 50%; left: 50%;
  animation: lcp-pflight var(--dur, .6s) ease-out forwards;
}
@keyframes lcp-pflight {
  0%   { transform: translate(-50%,-50%) scale(1); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--tx,0px)), calc(-50% + var(--ty,-40px))) scale(0); opacity: 0; }
}


.lcp-footer {
  padding: 4px 22px 22px;
}
.lcp-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--lcp-wa) 0%, var(--lcp-wa-dark) 100%);
  color: #fff;
  border: 0;
  border-radius: 12px;
  /* alvo alto: dedo de idoso em tela de celular */
  padding: 18px 20px;
  min-height: 60px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 24px -6px rgba(37,211,102,0.55);
  transition: transform .22s cubic-bezier(.22,1.2,.36,1), box-shadow .22s, filter .22s, background .4s;
  position: relative;
  overflow: hidden;
  font-family: inherit;
}
.lcp-submit::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.28) 50%, transparent 100%);
  transition: left .6s ease;
}
.lcp-submit:hover:not(.is-locked):not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -6px rgba(37,211,102,0.7);
  filter: brightness(1.04);
}
.lcp-submit:hover:not(.is-locked):not(:disabled)::before { left: 100%; }
.lcp-submit:active:not(.is-locked):not(:disabled) { transform: translateY(0); }
/* Desabilitado tem de PARECER desabilitado. Com opacity + grayscale sobre o
 verde saia um vinho desbotado que lia como erro de cor, nao como "falta
 marcar o aceite". */
.lcp-submit:disabled:not(.is-locked) {
  background: #E7DED6;
  color: #8A7A70;
  box-shadow: none;
  opacity: 1;
  filter: none;
  cursor: not-allowed;
  transform: none;
}
.lcp-submit-icon { display: inline-flex; align-items: center; transition: transform .4s, opacity .4s; }
.lcp-submit-icon svg { width: 20px; height: 20px; fill: currentColor; }
.lcp-btn-label { transition: opacity .25s; }


/* Estado "falta marcar o aceite". Era um degrade marrom-rosa (#b89694 ->
 #8b6764) que nao lia como bloqueio nem como cor da marca: parecia defeito.
 Cinza de papel diz "ainda nao da" sem parecer erro. */
.lcp-submit.is-locked {
  background: #E7DED6;
  color: #7D6E64;
  box-shadow: none;
  cursor: default;
}
.lcp-submit.is-locked:hover { transform: none; filter: none; box-shadow: none; }
.lcp-submit.is-locked::before { display: none; }


.lcp-lock-icon { display: inline-flex; align-items: center; }
.lcp-lock-icon svg {
  width: 20px; height: 20px;
  fill: currentColor;
  animation: lcp-lock-bob 2.8s ease-in-out infinite;
}
@keyframes lcp-lock-bob {
  0%, 70%, 100% { transform: translateY(0) scale(1); }
  80%            { transform: translateY(-2px) scale(1.06); }
  90%            { transform: translateY(1px) scale(.97); }
}

.lcp-submit.is-locked .lcp-wa-icon { display: none; }
.lcp-submit:not(.is-locked) .lcp-lock-icon { display: none; }


.lcp-submit.is-shaking {
  animation: lcp-btn-shake .45s cubic-bezier(.36,.07,.19,.97) both;
}
@keyframes lcp-btn-shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(3px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}


.lcp-submit.is-unlocking {
  animation: lcp-btn-unlock .75s cubic-bezier(.22,1.2,.36,1) forwards;
}
@keyframes lcp-btn-unlock {
  0%   { transform: scale(1);   filter: brightness(1);   }
  18%  { transform: scale(.96); filter: brightness(.9);  }
  45%  { transform: scale(1.05) translateY(-3px); filter: brightness(1.2); }
  65%  { transform: scale(1.01) translateY(-1px); filter: brightness(1.08); }
  82%  { transform: scale(.998); }
  100% { transform: scale(1);   filter: brightness(1);   }
}

.lcp-btn-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.65) 50%, transparent 70%);
  pointer-events: none;
  animation: lcp-shine-run .6s ease-out forwards;
}
@keyframes lcp-shine-run {
  from { transform: translateX(-120%); }
  to   { transform: translateX(220%); }
}

.lcp-spin {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  animation: lcp-spin 1s linear infinite;
}

.lcp-secure {
  text-align: center;
  margin-top: 10px;
  font-size:15px;
  color: var(--lcp-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.lcp-secure svg { width: 12px; height: 12px; fill: var(--lcp-muted); }


.lcp-success {
  display: none;
  padding: 36px 24px 32px;
  text-align: center;
  animation: lcp-fade-in .4s ease;
}
.lcp-modal.is-success .lcp-body,
.lcp-modal.is-success .lcp-footer,
.lcp-modal.is-success .lcp-chatbox { display: none; }
.lcp-modal.is-success .lcp-success { display: block; }

.lcp-success-ring {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lcp-wa-light) 0%, var(--lcp-wa-soft) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  position: relative;
  animation: lcp-pop-in .5s cubic-bezier(.22,1.2,.36,1) both;
}
.lcp-success-ring::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--lcp-wa);
  animation: lcp-ring-expand 1.2s ease-out infinite;
}
.lcp-check {
  width: 46px;
  height: 46px;
  stroke: #fff;
  background: var(--lcp-wa);
  border-radius: 50%;
  padding: 10px;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.lcp-check-path {
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  animation: lcp-check-draw .55s .2s ease forwards;
}

.lcp-success h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--lcp-ink);
}
.lcp-success p {
  font-size:17px;
  color: var(--lcp-ink-2);
  margin: 0 0 16px;
  line-height: 1.5;
}
.lcp-success-bar {
  height: 4px;
  background: var(--lcp-line);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 16px;
}
.lcp-success-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--lcp-wa) 0%, var(--lcp-wa-dark) 100%);
  width: 0;
  transition: width linear;
}


@keyframes lcp-slide-up {
  0%   { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes lcp-spin {
  to { transform: rotate(360deg); }
}
@keyframes lcp-fade-in {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes lcp-pop-in {
  0%   { transform: scale(.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes lcp-ring-expand {
  0%   { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.45); opacity: 0; }
}
@keyframes lcp-check-draw {
  to { stroke-dashoffset: 0; }
}


@media (max-width: 560px) {
  /* CENTRALIZADO. Era bottom sheet: a folha nascia colada no rodape e o
     titulo, que explica o que esta acontecendo, ficava no ponto mais longe
     do olho. Centralizado a pessoa ve titulo, explicacao e campos juntos. */
  .lcp-backdrop { padding: 16px; align-items: center; justify-content: center; }
  .lcp-modal {
    max-width: 100%;
    border-radius: 16px;
    max-height: calc(100dvh - 32px);
  }
  .lcp-backdrop.is-open .lcp-modal { animation: none; }
  .lcp-header { padding: 18px 18px 20px; }
  .lcp-header-text h3 { font-size: 20px; }
  .lcp-intro { padding: 16px 18px 2px; }
  .lcp-intro p { font-size: 16px; margin-bottom: 14px; }
  .lcp-body { padding: 18px 18px 12px; }
  .lcp-footer { padding: 4px 18px 20px; }
  /* alvo generoso: o campo e o botao sao o que a pessoa toca */
  .lcp-input { min-height: 58px; font-size: 17px; }
  .lcp-submit { min-height: 62px; font-size: 18px; }
}
body.lcp-open { overflow: hidden; }


@media (prefers-reduced-motion: reduce) {
  .lcp-backdrop, .lcp-modal, }
