/* ============================================================
   REDESIGN DO POPUP DE CADASTRO (Elementor popup 678)
   Visual: creme + navy #0A0E1A + ambar #C8861A, Fraunces + Manrope
   (design system GL client-facing). So CSS: copy e mecanica do
   formulario (Elementor -> admin-ajax -> Make) permanecem intactas.
   ============================================================ */

/* --- Overlay: navy translucido com blur --- */
.dialog-lightbox-widget {
  background: rgba(10, 14, 26, 0.78) !important;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* --- Cartao: navy-noite (ID GL), contraste alto --- */
.dialog-lightbox-widget .dialog-widget-content {
  width: min(480px, calc(100vw - 32px)) !important;
  max-width: min(480px, calc(100vw - 32px)) !important;
  background: linear-gradient(180deg, #101627 0%, #0A0E1A 100%) !important;
  border: 1px solid rgba(200, 134, 26, 0.35) !important;
  border-radius: 18px !important;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  overflow: hidden;
}

/* filete ambar no topo do cartao */
.dialog-lightbox-widget .dialog-widget-content::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, #C8861A, #E0B04F, #C8861A);
}

/* neutraliza o fundo escuro/imagem original do popup (inclusive o
   "background overlay" do Elementor, que e um ::before) */
.elementor-678 .e-con-boxed,
.elementor-678 .e-con-inner,
.elementor-678 [class*="elementor-element"] {
  background-color: transparent !important;
  background-image: none !important;
}
.elementor-678 [class*="elementor-element"]::before,
.elementor-678 .elementor-background-overlay {
  background: none !important;
  display: none !important;
}

/* overlay do modal (elementor pinta no .elementor-popup-modal) */
.elementor-popup-modal { background-color: rgba(10, 14, 26, 0.82) !important; }

/* larguras: container interno era fixo (328px via --width) -> campos espremidos */
.elementor-678 .e-con-full,
.elementor-678 .e-con {
  --width: 100% !important;
  --content-width: 100% !important;
  width: 100% !important;
  max-width: 100% !important;
}
.elementor-678 .elementor-form-fields-wrapper,
.elementor-678 .elementor-field-group,
.elementor-678 .elementor-field-type-submit,
.elementor-678 .elementor-widget-form,
.elementor-678 .elementor-widget-heading { width: 100% !important; max-width: 100% !important; }
.elementor-678 .elementor-field-textual { width: 100% !important; }
.elementor-678 .elementor-button { width: 100% !important; white-space: nowrap; }

/* respiro interno (zera o padding proprio do container do Elementor
   pra nao somar com o nosso — senao os campos ficam espremidos) */
.dialog-lightbox-widget .dialog-message { padding: 0 !important; width: 100% !important; }
.elementor-678 .e-con-boxed { padding: 0 !important; }
.elementor-678 .e-con-full { padding: 0 !important; }
.elementor-678 .e-con-inner { padding: 38px 34px 34px !important; }

/* --- Botao de fechar --- */
.dialog-lightbox-widget .dialog-close-button {
  top: 16px !important;
  right: 16px !important;
  opacity: 1 !important;
  padding: 6px;
  line-height: 0;
}
.dialog-lightbox-widget .dialog-close-button { color: rgba(255, 255, 255, 0.6) !important; }
.dialog-lightbox-widget .dialog-close-button svg { width: 20px; height: 20px; }
.dialog-lightbox-widget .dialog-close-button svg,
.dialog-lightbox-widget .dialog-close-button svg *,
.dialog-lightbox-widget .dialog-close-button svg path {
  fill: rgba(255, 255, 255, 0.6) !important;
  stroke: rgba(255, 255, 255, 0.6) !important;
}
.dialog-lightbox-widget .dialog-close-button:hover { color: #FFFFFF !important; }
.dialog-lightbox-widget .dialog-close-button:hover svg,
.dialog-lightbox-widget .dialog-close-button:hover svg *,
.dialog-lightbox-widget .dialog-close-button:hover svg path {
  fill: #FFFFFF !important;
  stroke: #FFFFFF !important;
}

/* --- Titulo (copy verbatim) --- */
.elementor-678 .elementor-heading-title {
  font-family: 'Fraunces', Georgia, serif !important;
  font-size: clamp(24px, 4.2vw, 30px) !important;
  font-weight: 600 !important;
  line-height: 1.22 !important;
  color: #FFFFFF !important;
  text-align: center;
  letter-spacing: -0.01em;
}
.elementor-678 .elementor-heading-title::after {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  border-radius: 2px;
  background: #C8861A;
  margin: 14px auto 2px;
}
.elementor-678 .elementor-widget-heading { margin-bottom: 10px !important; }

/* --- Campos --- */
.elementor-678 .elementor-field-group { margin-bottom: 12px !important; }
.elementor-678 .elementor-field-textual {
  font-family: 'Manrope', Arial, sans-serif !important;
  font-size: 16px !important;            /* >=16px evita zoom no iOS */
  font-weight: 500 !important;
  color: #0A0E1A !important;
  background: #FFFFFF !important;
  border: 1.5px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 12px !important;
  padding: 13px 16px !important;
  min-height: 50px;
  box-shadow: none !important;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.elementor-678 .elementor-field-textual::placeholder { color: #8A8577 !important; opacity: 1; }
.elementor-678 .elementor-field-textual:focus {
  border-color: #C8861A !important;
  box-shadow: 0 0 0 3px rgba(200, 134, 26, 0.28) !important;
  outline: none !important;
}
.elementor-678 select.elementor-field-textual { cursor: pointer; }

/* --- Botao (copy verbatim) --- */
.elementor-678 .elementor-button {
  font-family: 'Manrope', Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #FFFFFF !important;
  background: linear-gradient(180deg, #D89A2B 0%, #C8861A 100%) !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 17px 24px !important;
  width: 100%;
  box-shadow: 0 10px 24px rgba(200, 134, 26, 0.35) !important;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.elementor-678 .elementor-button:hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(200, 134, 26, 0.42) !important;
}
.elementor-678 .elementor-button:active { transform: translateY(0); }
.elementor-678 .elementor-field-type-submit { margin-top: 6px !important; margin-bottom: 0 !important; }

/* --- Mensagens de validacao / retorno --- */
.elementor-678 .elementor-message,
.elementor-678 .elementor-error,
.elementor-678 .elementor-help-inline {
  font-family: 'Manrope', Arial, sans-serif !important;
  font-size: 13px !important;
}
.elementor-678 .elementor-message-danger,
.elementor-678 .elementor-error { color: #FF8A80 !important; }
.elementor-678 .elementor-message-success { color: #7BD8A0 !important; }
.elementor-678 .elementor-field-textual.elementor-error,
.elementor-678 .elementor-invalid { border-color: #FF8A80 !important; }

/* --- Mobile --- */
@media (max-width: 480px) {
  .elementor-678 .e-con-inner { padding: 28px 20px 24px !important; }
  .elementor-678 .elementor-heading-title { font-size: 22px !important; }
  .dialog-lightbox-widget .dialog-close-button { top: 10px !important; right: 10px !important; }
}
