/* =========================================================================
   Integra Bem-estar e Saúde — modal de captura de lead

   Compartilhado por TODAS as páginas (home + internas + /contato-rapido/),
   por isso não depende de :root do custom.css nem do paginas.css — define
   as próprias variáveis com os MESMOS valores já usados em paginas.css
   (--verde:#469b6c etc.), para não inventar um terceiro sistema visual.
   ========================================================================= */

.lead-modal-overlay {
  --verde: #469b6c;
  --verde-escuro: #2d6747;
  --verde-claro: #78cc8b;
  --texto: #6b6b6b;
  --texto-forte: #3f3f3f;
  --cinza-claro: #f2f2f2;
  --borda: rgba(0, 0, 0, 0.08);

  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(20, 30, 20, 0.55);
  font-family: 'Lato', Arial, sans-serif;
}
.lead-modal-overlay.is-hidden { display: none; }

.lead-modal {
  background: #fff;
  border-radius: 16px;
  border-top: 5px solid var(--verde);
  width: min(480px, 100%);
  max-height: min(640px, 92vh);
  overflow-y: auto;
  padding: 32px 26px 26px;
  position: relative;
  box-shadow: 0 24px 64px -16px rgba(0, 0, 0, 0.35);
}

.lead-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--texto-forte);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.lead-modal-close:hover { color: #000; }

.lead-step-indicator {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--verde-escuro);
  background: rgba(120, 204, 139, 0.18);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 999px;
  margin: 0 0 12px;
}
.lead-eyebrow {
  font-size: 14px;
  font-weight: 700;
  color: var(--verde);
  margin: 0 0 6px;
}
.lead-modal h2 {
  font-family: 'Ubuntu', Arial, sans-serif;
  font-size: clamp(23px, 5vw, 26px);
  color: var(--texto-forte);
  margin: 0 0 18px;
  line-height: 1.25;
}

.lead-step { display: block; }
.lead-modal.js-ready .lead-step:not(.is-active) { display: none; }

.lead-field { margin-bottom: 20px; }
.lead-field label {
  display: block;
  font-weight: 700;
  font-size: 16px;
  color: var(--texto-forte);
  margin-bottom: 9px;
}
.lead-field input[type="text"],
.lead-field input[type="tel"],
.lead-field input[type="number"],
.lead-field select {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--borda);
  border-radius: 10px;
  font-size: 17px;
  font-family: inherit;
  color: var(--texto-forte);
  background: #fff;
}
.lead-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b6b6b'%3E%3Cpath d='M5.5 7.5l4.5 4.5 4.5-4.5' stroke='%236b6b6b' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}
.lead-field select:invalid { color: var(--texto); }
.lead-field input:focus,
.lead-field select:focus { outline: 2px solid var(--verde); outline-offset: 1px; border-color: var(--verde); }
.lead-suffix { font-size: 14px; color: var(--texto); margin-top: 5px; }
.lead-support { font-size: 14px; color: var(--texto); margin-top: 7px; }

.lead-options { display: grid; gap: 10px; }
.lead-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1.5px solid var(--borda);
  border-radius: 10px;
  padding: 13px 15px;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.lead-option:hover { border-color: rgba(70, 155, 108, 0.4); }
.lead-option:has(input:checked) {
  border-color: var(--verde);
  background: rgba(120, 204, 139, 0.14);
}
.lead-option input {
  margin-top: 3px;
  flex-shrink: 0;
  width: 19px;
  height: 19px;
  accent-color: var(--verde);
}
.lead-option-text { font-size: 16px; color: var(--texto-forte); line-height: 1.4; }
.lead-option-desc { display: block; font-size: 14px; font-style: italic; color: var(--texto); margin-top: 3px; line-height: 1.4; }

.lead-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lead-chip {
  border: 1.5px solid var(--borda);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  color: var(--texto-forte);
  background: #fff;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}
.lead-chip:hover { border-color: rgba(70, 155, 108, 0.4); }
.lead-chip:focus-visible { outline: 2px solid var(--verde); outline-offset: 1px; }
.lead-chip[aria-pressed="true"] {
  border-color: var(--verde);
  background: var(--verde);
  color: #fff;
}

.lead-error {
  display: none;
  color: #b3261e;
  font-size: 14px;
  margin-top: 6px;
}
.lead-field.has-error .lead-error { display: block; }
.lead-field.has-error input,
.lead-field.has-error .lead-options,
.lead-field.has-error .lead-chips .lead-chip { border-color: #b3261e; }
.lead-field.has-error .lead-option { border-color: rgba(179, 38, 30, 0.4); }

.lead-consent { display: flex; align-items: flex-start; gap: 10px; margin: 22px 0; }
.lead-consent input {
  margin-top: 3px;
  flex-shrink: 0;
  width: 19px;
  height: 19px;
  accent-color: var(--verde);
}
.lead-consent label { font-size: 14px; color: var(--texto); line-height: 1.55; }
.lead-consent a { color: var(--verde); font-weight: 700; }

.lead-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lead-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--verde);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  padding: 15px 20px;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}
.lead-btn:hover { background: var(--verde-escuro); transform: translateY(-1px); }
.lead-btn:active { transform: translateY(0); }
.lead-btn:disabled { opacity: 0.65; cursor: default; transform: none; }

@media (max-width: 480px) {
  .lead-modal { padding: 24px 18px 20px; border-radius: 12px; }
}
