/* MassaViva — formulário de franqueado + balão de WhatsApp
   Paleta amostrada da própria LP: bordô #690A2A/#7A0C28, creme #ECE1CD, verde #5BCC3C */

/* ---------- FORMULÁRIO (fim da página) ---------- */
#mv-form-wrap { max-width: 520px; margin: 0 auto; text-align: left; }
#mv-form-wrap .mv-form-intro {
  margin: 0 0 20px; font-size: 16px; line-height: 1.5; text-align: center; color: #fff;
}
#mv-form .mv-row { margin-bottom: 14px; }
#mv-form label {
  display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px;
  color: #fff; letter-spacing: .02em;
}
#mv-form input, #mv-form select {
  width: 100%; box-sizing: border-box; padding: 14px 14px;
  border: 2px solid transparent; border-radius: 10px;
  font-size: 16px; /* 16px evita o zoom automático do iOS ao focar */
  font-family: inherit; background: #fff; color: #2a1210; -webkit-appearance: none; appearance: none;
}
#mv-form select {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23690A2A'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 24px;
  padding-right: 40px;
}
#mv-form input:focus, #mv-form select:focus { outline: none; border-color: #5BCC3C; }
#mv-form button[type=submit] {
  width: 100%; margin-top: 6px; padding: 16px; border: 0; border-radius: 10px;
  background: #5BCC3C; color: #10330a; font-weight: 800; font-size: 16px;
  letter-spacing: .03em; cursor: pointer; font-family: inherit;
}
#mv-form button[type=submit]:hover { background: #4fb833; }
#mv-form button[type=submit]:disabled { opacity: .6; cursor: default; }
.mv-form-ok { text-align: center; color: #fff; padding: 10px 0; }
.mv-form-ok h3 { font-size: 22px; margin: 0 0 10px; color: #fff; }
.mv-form-ok p { font-size: 15px; line-height: 1.55; margin: 0 0 22px; }
.mv-wa-cta {
  display: inline-block; background: #5BCC3C; color: #10330a; text-decoration: none;
  padding: 15px 30px; border-radius: 10px; font-weight: 800; font-size: 15px;
}

/* ---------- BALÃO FLUTUANTE ---------- */
#mv-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 99998;
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  background: #1DA851; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 22px rgba(0,0,0,.28);
  transition: transform .18s ease;
}
#mv-fab:hover { transform: scale(1.07); }
#mv-fab.mv-fab-active { transform: scale(.9); opacity: .85; }

#mv-chat {
  position: fixed; right: 18px; bottom: 88px; z-index: 99999;
  width: 350px; max-width: calc(100vw - 36px);
  max-height: min(560px, calc(100vh - 120px));
  background: #ECE1CD; border-radius: 16px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
  display: none; flex-direction: column;
  font-family: "Wix Madefor Display", system-ui, sans-serif;
}
#mv-chat.mv-open { display: flex; }
#mv-chat-head {
  background: #075E54; color: #fff; padding: 13px 16px;
  display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
#mv-chat-head strong { display: block; font-size: 15px; }
#mv-chat-head span { display: block; font-size: 12px; opacity: .8; }
#mv-chat-close {
  background: none; border: 0; color: #fff; font-size: 24px;
  line-height: 1; cursor: pointer; padding: 0 4px; opacity: .85;
}
#mv-chat-body { padding: 16px; overflow-y: auto; }

.mv-prog { height: 3px; background: #dccdb2; border-radius: 2px; margin-bottom: 14px; overflow: hidden; }
.mv-prog i { display: block; height: 100%; background: #25D366; transition: width .25s; }
.mv-back { background: none; border: 0; color: #6b4f3f; font-size: 13px; cursor: pointer; padding: 0; margin-bottom: 10px; }
.mv-bubble {
  background: #fff; border-radius: 12px 12px 12px 3px; padding: 12px 14px;
  font-size: 14.5px; line-height: 1.45; color: #2a1210; margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.mv-opts { display: flex; flex-direction: column; gap: 8px; }
.mv-opt {
  background: #fff; border: 2px solid #dccdb2; border-radius: 10px;
  padding: 12px 14px; text-align: left; font-size: 14.5px; cursor: pointer;
  color: #2a1210; font-family: inherit; transition: .15s;
}
.mv-opt:hover { border-color: #25D366; background: #f4fff7; }
.mv-input {
  width: 100%; box-sizing: border-box; padding: 12px 14px; margin-bottom: 10px;
  border: 2px solid #dccdb2; border-radius: 10px; font-size: 16px;
  font-family: inherit; background: #fff; color: #2a1210;
}
.mv-input:focus { outline: none; border-color: #25D366; }
.mv-next {
  width: 100%; background: #25D366; color: #0b3d1e; border: 0; border-radius: 10px;
  padding: 13px; font-weight: 700; font-size: 15px; cursor: pointer; font-family: inherit;
}
#mv-chat .mv-wa-cta { display: block; text-align: center; background: #25D366; color: #0b3d1e; }

@media (max-width: 480px) {
  #mv-fab { width: 54px; height: 54px; right: 14px; bottom: 14px; }
  #mv-chat { right: 10px; left: 10px; bottom: 78px; width: auto; max-width: none; }
}

/* ---------- correções de layout mobile da LP ---------- */
@media (max-width: 767px) {
  /* cards "30+ anos" e "10 a 17%" ficavam presos em 41% da largura,
     deixando metade da tela vazia */
  .elementor-widget-image img[src*="legado"],
  .elementor-widget-image img[src*="lucratividade"] { width: 100%; max-width: 320px; }
  .elementor-widget-image:has(img[src*="legado"]),
  .elementor-widget-image:has(img[src*="lucratividade"]) { text-align: center; }
}

/* ---------- BLINDAGEM CONTRA O CSS DA LP ----------
   O tema da LP tem regra `:hover { color:#fff }` para botão/link. Sem fixar a cor
   em cada estado, o texto do widget virava branco sobre fundo claro e sumia.
   Por ser componente enxertado em página de terceiro, aqui `!important` é proposital. */
#mv-chat .mv-opt,
#mv-chat .mv-opt:hover,
#mv-chat .mv-opt:focus,
#mv-chat .mv-opt:active,
#mv-chat .mv-opt:focus-visible { color: #2a1210 !important; background: #fff; }
#mv-chat .mv-opt:hover,
#mv-chat .mv-opt:focus-visible { background: #f4fff7; border-color: #25D366; }

#mv-chat .mv-next,
#mv-chat .mv-next:hover,
#mv-chat .mv-next:focus,
#mv-chat .mv-next:active { color: #0b3d1e !important; background: #25D366; }
#mv-chat .mv-next:hover { background: #1fb955; }

#mv-chat .mv-back,
#mv-chat .mv-back:hover,
#mv-chat .mv-back:focus,
#mv-chat .mv-back:active { color: #6b4f3f !important; background: none; }
#mv-chat .mv-back:hover { text-decoration: underline; }

#mv-chat-close,
#mv-chat-close:hover,
#mv-chat-close:focus,
#mv-chat-close:active { color: #fff !important; background: none; }
#mv-chat-close:hover { opacity: 1; }

#mv-chat .mv-bubble { color: #2a1210 !important; }
#mv-chat-head, #mv-chat-head * { color: #fff !important; }

#mv-chat .mv-input,
#mv-chat .mv-input:focus { color: #2a1210 !important; background: #fff !important; }
#mv-chat .mv-input::placeholder { color: #7d6a5a !important; opacity: 1; }

#mv-fab, #mv-fab:focus, #mv-fab:active { color: #fff !important; background: #1DA851 !important; }
#mv-fab:hover { color: #fff !important; background: #178F45 !important; }

#formulario #mv-form label { color: #fff !important; }
#formulario #mv-form input,
#formulario #mv-form select,
#formulario #mv-form input:focus,
#formulario #mv-form select:focus { color: #2a1210 !important; background-color: #fff !important; }
#formulario #mv-form input::placeholder { color: #7d6a5a !important; opacity: 1; }
#formulario #mv-form option { color: #2a1210; background: #fff; }

#formulario #mv-form button[type=submit],
#formulario #mv-form button[type=submit]:hover,
#formulario #mv-form button[type=submit]:focus,
#formulario #mv-form button[type=submit]:active { color: #10330a !important; }

#formulario .mv-form-ok,
#formulario .mv-form-ok h3,
#formulario .mv-form-ok p,
#formulario .mv-form-intro { color: #fff !important; }

#formulario .mv-wa-cta,
#formulario .mv-wa-cta:hover,
#formulario .mv-wa-cta:focus,
#formulario .mv-wa-cta:active { color: #10330a !important; background: #5BCC3C !important; text-decoration: none; }
#mv-chat .mv-wa-cta,
#mv-chat .mv-wa-cta:hover,
#mv-chat .mv-wa-cta:focus,
#mv-chat .mv-wa-cta:active { color: #0b3d1e !important; background: #25D366 !important; text-decoration: none; }

/* foco visível pra teclado — o tema remove outline */
#mv-chat button:focus-visible,
#formulario #mv-form :focus-visible { outline: 3px solid #ffd54a; outline-offset: 2px; }

/* O título acima do formulário tem line-height 0.7 (34px para fonte de 49px) vindo do
   Elementor. Numa coluna de 584px ele quebra em 2 linhas e elas se sobrepõem — o mesmo
   acontece no site original. Nas outras chamadas o tipo apertado funciona, aqui não. */
.elementor-element-75ef7d40 h2.elementor-heading-title { line-height: 1.06 !important; }

/* balão some enquanto o formulário está na tela — no mobile ele cobria a ponta do CTA */
#mv-fab.mv-fab-oculto {
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: scale(.6) translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
#mv-fab { transition: transform .18s ease, opacity .2s ease, visibility .2s; }

/* ---------- UPLOAD DE CURRÍCULO (desvio de vaga) ---------- */
#mv-chat .mv-file {
  display: block; text-align: center; cursor: pointer;
  background: #fff; border: 2px dashed #c9b498; border-radius: 10px;
  padding: 14px 12px; margin-bottom: 10px; font-size: 14.5px;
  color: #2a1210 !important; word-break: break-word;
}
#mv-chat .mv-file:hover { border-color: #25D366; background: #f4fff7; color: #2a1210 !important; }
#mv-chat .mv-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
#mv-chat .mv-file-input:focus-visible + .mv-file,
#mv-chat .mv-file:focus-within { outline: 3px solid #ffd54a; outline-offset: 2px; }
#mv-chat .mv-fine { margin: 8px 0 0; font-size: 12.5px; line-height: 1.4; color: #6b4f3f !important; text-align: center; }
#mv-chat .mv-fine.mv-erro { color: #8c1428 !important; font-weight: 700; }
#mv-chat .mv-next:disabled { opacity: .65; cursor: default; }
