/* ===== CONVERSION KIT - Pedir Maquininha ===== */
/* Banner promo, calculadora, form captura, WA float - identidade Ton */

:root {
  --cv-green: #00A868;
  --cv-green-dark: #008050;
  --cv-green-light: #00C878;
  --cv-yellow: #FFD23F;
  --cv-red: #E63946;
  --cv-dark: #0A1F18;
  --cv-shadow: 0 8px 28px rgba(0,168,104,0.25);
}

/* ===== BANNER PROMO TOPO ===== */
.cv-promo-banner {
  background: linear-gradient(90deg, #00A868 0%, #00C878 50%, #00A868 100%);
  color: #fff;
  padding: 10px 16px;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.cv-promo-banner b { background: rgba(255,255,255,0.22); padding: 2px 10px; border-radius: 6px; }
.cv-promo-banner .cv-countdown { font-variant-numeric: tabular-nums; background: rgba(0,0,0,0.25); padding: 4px 10px; border-radius: 6px; font-weight: 800; letter-spacing: 0.5px; }
.cv-promo-banner a { color: #fff; text-decoration: underline; font-weight: 800; }
.cv-promo-banner a:hover { color: #FFD23F; }
@media (max-width: 640px) {
  .cv-promo-banner { font-size: 0.82rem; padding: 8px 12px; gap: 8px; }
}

/* ===== CALCULADORA DE ECONOMIA ===== */
.cv-calc {
  background: linear-gradient(135deg, #00A868 0%, #008050 100%);
  border-radius: 20px;
  padding: 48px 32px;
  margin: 48px auto;
  max-width: 1100px;
  color: #fff;
  box-shadow: var(--cv-shadow);
  position: relative;
  overflow: hidden;
}
.cv-calc::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.cv-calc-header {
  text-align: center;
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}
.cv-calc-header .cv-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.22);
  color: #fff;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.cv-calc-header h2 {
  color: #fff;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 8px;
  font-weight: 800;
}
.cv-calc-header p { color: rgba(255,255,255,0.92); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

.cv-calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  position: relative;
  z-index: 1;
}
@media (max-width: 768px) { .cv-calc-grid { grid-template-columns: 1fr; gap: 20px; } }

.cv-calc-inputs {
  background: rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 26px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}
.cv-field { margin-bottom: 18px; }
.cv-field:last-child { margin-bottom: 0; }
.cv-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}
.cv-field .cv-hint { font-size: 0.78rem; color: rgba(255,255,255,0.75); font-weight: 400; margin-top: 2px; }
.cv-field input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 10px;
  background: rgba(255,255,255,0.95);
  color: #0A1F18;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: inherit;
  outline: none;
  transition: 0.2s;
}
.cv-field input:focus { border-color: #FFD23F; box-shadow: 0 0 0 4px rgba(255,210,63,0.25); }

.cv-calc-result {
  background: #fff;
  border-radius: 14px;
  padding: 26px;
  color: #0A1F18;
  text-align: center;
  box-shadow: 0 10px 32px rgba(0,0,0,0.2);
}
.cv-calc-result .cv-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: #00A868; font-weight: 700; margin-bottom: 6px; }
.cv-calc-result .cv-economy {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 900;
  color: #00A868;
  line-height: 1;
  margin: 6px 0 4px;
  font-variant-numeric: tabular-nums;
}
.cv-calc-result .cv-period { color: #4B5563; font-size: 0.95rem; margin-bottom: 14px; }
.cv-calc-result .cv-breakdown {
  background: #F0FAF6;
  border-radius: 10px;
  padding: 14px;
  text-align: left;
  font-size: 0.88rem;
  color: #374151;
  margin: 14px 0;
}
.cv-calc-result .cv-breakdown div { display: flex; justify-content: space-between; padding: 4px 0; }
.cv-calc-result .cv-breakdown div b { color: #00A868; }
.cv-calc-result .cv-breakdown div.cv-bd-total { border-top: 2px solid #E0F2EA; padding-top: 8px; margin-top: 4px; font-size: 1rem; }
.cv-calc-result .cv-cta {
  display: inline-block;
  width: 100%;
  background: linear-gradient(135deg, #25D366 0%, #1faa53 100%);
  color: #fff;
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  transition: 0.2s;
  margin-top: 8px;
  border: none;
  cursor: pointer;
}
.cv-calc-result .cv-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37,211,102,0.4); color: #fff; }

/* ===== FORM CAPTURA INLINE ===== */
.cv-lead-form {
  background: #fff;
  border: 3px solid #00A868;
  border-radius: 20px;
  padding: 40px 32px;
  max-width: 720px;
  margin: 56px auto;
  box-shadow: 0 12px 40px rgba(0,168,104,0.18);
  text-align: center;
}
.cv-lead-form .cv-badge {
  display: inline-block;
  background: #00A868;
  color: #fff;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.cv-lead-form h2 {
  color: #0A1F18;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin-bottom: 8px;
  font-weight: 800;
}
.cv-lead-form > p { color: #4B5563; font-size: 1.02rem; margin-bottom: 24px; max-width: 540px; margin-left: auto; margin-right: auto; }

.cv-lead-form form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 600px; margin: 0 auto; }
@media (max-width: 580px) { .cv-lead-form form { grid-template-columns: 1fr; } }
.cv-lead-form input, .cv-lead-form select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #E2E6EA;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: 0.2s;
  background: #fff;
  color: #0A1F18;
}
.cv-lead-form input:focus, .cv-lead-form select:focus { border-color: #00A868; box-shadow: 0 0 0 4px rgba(0,168,104,0.12); }
.cv-lead-form .cv-full { grid-column: 1 / -1; }
.cv-lead-form button {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #25D366 0%, #1faa53 100%);
  color: #fff;
  border: none;
  padding: 16px 24px;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: 0.2s;
}
.cv-lead-form button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37,211,102,0.4); }
.cv-lead-form .cv-trust { display: flex; justify-content: center; gap: 18px; margin-top: 18px; font-size: 0.82rem; color: #6B7280; flex-wrap: wrap; }
.cv-lead-form .cv-trust span::before { content: "✓ "; color: #00A868; font-weight: 800; }

/* ===== WHATSAPP FLOAT (universal) ===== */
.cv-wa-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: linear-gradient(135deg, #25D366 0%, #1faa53 100%);
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(37,211,102,0.5);
  z-index: 1000;
  text-decoration: none;
  transition: 0.25s;
  animation: cv-pulse 2.4s ease-in-out infinite;
}
.cv-wa-float:hover { transform: scale(1.08); animation: none; }
.cv-wa-float::after {
  content: "Tirar dúvida";
  position: absolute;
  right: 72px;
  background: #0A1F18;
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
}
.cv-wa-float:hover::after { opacity: 1; right: 76px; }
@keyframes cv-pulse {
  0%, 100% { box-shadow: 0 8px 22px rgba(37,211,102,0.5), 0 0 0 0 rgba(37,211,102,0.45); }
  50% { box-shadow: 0 8px 22px rgba(37,211,102,0.5), 0 0 0 16px rgba(37,211,102,0); }
}
@media (max-width: 640px) {
  .cv-wa-float { bottom: 86px; right: 16px; width: 54px; height: 54px; }
  .cv-wa-float::after { display: none; }
}

/* Hide pulse if sticky-cta exists (mobile) to avoid overlap */
@media (max-width: 640px) {
  .sticky-cta ~ .cv-wa-float { bottom: 96px; }
}
