/**
 * Shell do modal de leads (LP1 + LP2): largura responsiva, ar respirável,
 * instrução leve (sem bloco de texto longo), formulário visível sem scroll típico.
 * Carregar depois dos estilos base .lead-wa-modal da landing.
 */

.earu1-lead-shell .lead-wa-modal__dialog {
  position: relative;
  box-sizing: border-box;
  width: calc(100vw - 1.25rem);
  max-width: 26rem;
  margin: 0 auto;
  max-height: min(92dvh, 44rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  padding: 2.25rem 1.2rem 1.2rem;
}

@media (min-width: 480px) {
  .earu1-lead-shell .lead-wa-modal__dialog {
    width: min(30rem, calc(100vw - 2rem));
    max-width: 30rem;
    padding: 2.35rem 1.45rem 1.35rem;
  }
}

@media (min-width: 768px) {
  .earu1-lead-shell .lead-wa-modal__dialog {
    width: min(34rem, calc(100vw - 2.5rem));
    max-width: 34rem;
    padding: 2.45rem 1.65rem 1.45rem;
  }
}

@media (min-width: 1100px) {
  .earu1-lead-shell .lead-wa-modal__dialog {
    width: min(36rem, calc(100vw - 3rem));
    max-width: 36rem;
  }
}

/* Instrução curta: hierarquia de corpo, não título hero */
#earu1-lead-panel-form .earu1-lead-shell__leadline {
  margin: 0 0 0.75rem;
  padding-right: 2rem;
  max-width: 42ch;
  font-size: clamp(0.875rem, 2.5vw, 0.97rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: rgba(210, 214, 224, 0.9);
}

.earu1-lead-shell #earu1-lead-panel-form .lead-form-panel,
.earu1-lead-shell #earu1-lead-panel-form .lp2-lead-form {
  margin: 0.25rem 0 0;
  margin-left: 0;
  margin-right: 0;
  max-width: none;
  padding: 1rem 1.05rem 1.05rem;
}

.earu1-lead-shell #earu1-lead-panel-form .lead-form-panel label,
.earu1-lead-shell #earu1-lead-panel-form .lp2-lead-form label {
  margin-bottom: 0.35rem;
}

.earu1-lead-shell #earu1-lead-panel-form .lead-form-panel input[type="text"],
.earu1-lead-shell #earu1-lead-panel-form .lead-form-panel input[type="tel"],
.earu1-lead-shell #earu1-lead-panel-form .lp2-lead-form input[type="text"],
.earu1-lead-shell #earu1-lead-panel-form .lp2-lead-form input[type="tel"] {
  margin-bottom: 0.3rem;
}

.earu1-lead-shell #earu1-lead-panel-form .lead-form-panel button[type="submit"],
.earu1-lead-shell #earu1-lead-panel-form .lp2-lead-form button[type="submit"] {
  margin-top: 0.5rem;
}

.earu1-lead-wa-hint {
  margin: 0.15rem 0 0.55rem;
  font-size: 0.72rem;
  line-height: 1.35;
  opacity: 0.78;
}

.earu1-lead-shell #earu1-lead-panel-form .lead-form-panel .earu1-lead-wa-hint {
  color: rgba(88, 94, 110, 0.88);
}

.earu1-lead-shell #earu1-lead-panel-form .lp2-lead-form .earu1-lead-wa-hint {
  color: var(--muted, rgba(200, 206, 218, 0.72));
}

/* Erro / sucesso: títulos um pouco mais contidos que o default da landing */
#earu1-lead-panel-error .lead-wa-modal__title {
  margin: 0 0 0.55rem;
  font-size: clamp(1rem, 2.6vw, 1.15rem);
  line-height: 1.25;
}

#earu1-lead-panel-error .lead-wa-modal__text {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

#earu1-lead-panel-success .lead-wa-modal__title {
  margin: 0 0 0.55rem;
  font-size: clamp(1.02rem, 2.6vw, 1.18rem);
  line-height: 1.25;
}

#earu1-lead-panel-success .lead-wa-modal__text {
  margin: 0 0 1rem;
  font-size: 0.93rem;
  line-height: 1.52;
}

.earu1-lead-shell__close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(248, 249, 252, 0.92);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.earu1-lead-shell__close:hover,
.earu1-lead-shell__close:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.earu1-lead-shell__panel[hidden],
#earu1-lead-panel-form[hidden],
#earu1-lead-panel-error[hidden],
#earu1-lead-panel-success[hidden] {
  display: none !important;
}
