/* JERO Apps - Popup #pum-761 con estilo Odoo (campos blancos, etiqueta flotante, botón ciruela) */

/* ===== Ventana del popup ===== */
#pum-761 .pum-container.popmake {
  width: 94% !important;
  max-width: 700px !important;
  min-width: 0 !important;
  height: auto !important;
  max-height: 94vh !important;
  overflow-y: auto !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  top: 3vh !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}
#pum-761 .wp-block-group { padding: 0 !important; }

/* Tarjeta (reemplaza el bloque oscuro) */
#pum-761 .wp-block-column {
  background: #f3f4f6 !important;
  color: #111827 !important;
  border-radius: 12px !important;
  padding: 26px 28px 24px !important;
  box-shadow: 0 10px 30px rgba(17, 24, 39, .18) !important;
}
#pum-761 .wp-block-column p.has-large-font-size {
  color: #111827 !important;
  font-size: 30px !important;
  padding: 0 0 18px !important;
  margin: 0 !important;
}

/* Sin scroll interno */
#pum-761 .jer-form-scroll {
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Botón CERRAR */
#pum-761 .pum-close.popmake-close { background: #714B67 !important; color: #fff !important; }

/* ===== Etiqueta flotante ===== */
#pum-761 .wpcf7-form p { margin: 0 0 14px !important; padding: 0 !important; }
#pum-761 .wpcf7-form .wpcf7-form-control-wrap { display: block; }
#pum-761 .wpcf7-form p.fl { position: relative; }

#pum-761 .wpcf7-form p.fl > label.fl-text {
  position: absolute;
  left: 16px;
  top: 19px;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  color: #9ca3af !important;
  pointer-events: none;
  z-index: 3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 48px);
  transition: top .15s ease, font-size .15s ease, color .15s ease;
}
#pum-761 .wpcf7-form p.fl.has-value > label.fl-text,
#pum-761 .wpcf7-form p.fl:focus-within > label.fl-text {
  top: 9px;
  font-size: 11px !important;
  color: #6b7280 !important;
}
#pum-761 .wpcf7-form p.fl-tel > label.fl-text { left: 66px; }

/* ===== Campos ===== */
#pum-761 .wpcf7-form p.fl input[type="text"],
#pum-761 .wpcf7-form p.fl input[type="email"],
#pum-761 .wpcf7-form p.fl input[type="tel"],
#pum-761 .wpcf7-form p.fl select {
  width: 100% !important;
  height: 58px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 26px 16px 8px !important;
  background-color: #fff !important;
  color: #111827 !important;
  font-size: 16px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 6px !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06) !important;
  outline: none !important;
}
#pum-761 .wpcf7-form p.fl-tel input[type="tel"] { padding-left: 66px !important; }

#pum-761 .wpcf7-form p.fl input:focus,
#pum-761 .wpcf7-form p.fl select:focus {
  border-color: #714B67 !important;
  box-shadow: 0 0 0 3px rgba(113, 75, 103, .18) !important;
}

/* El placeholder no pisa el título */
#pum-761 .wpcf7-form p.fl input::placeholder { color: transparent !important; }
#pum-761 .wpcf7-form p.fl input:focus::placeholder { color: #9ca3af !important; }

/* Lista desplegable */
#pum-761 .wpcf7-form p.fl select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23111827' stroke-width='1.8'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 16px center !important;
}
#pum-761 .wpcf7-form p.fl select.is-empty { color: #9ca3af !important; }

/* Teléfono con bandera */
#pum-761 .intl-tel-input { display: block !important; width: 100% !important; }
#pum-761 .intl-tel-input .flag-container { z-index: 4; }
#pum-761 .intl-tel-input .selected-flag { background: transparent !important; }
#pum-761 .intl-tel-input .country-list {
  color: #111827 !important;
  background: #fff !important;
  white-space: normal !important;
  width: 300px;
  max-width: 80vw;
  z-index: 30;
}

/* ===== Filas de dos columnas ===== */
#pum-761 .wpcf7-form .fl-row { display: flex; gap: 14px; margin: 0 0 14px; }
#pum-761 .wpcf7-form .fl-row > p { flex: 1 1 0; min-width: 0; margin: 0 !important; }
@media (max-width: 600px) {
  #pum-761 .wpcf7-form .fl-row { flex-direction: column; gap: 0; }
  #pum-761 .wpcf7-form .fl-row > p { margin-bottom: 14px !important; }
}

/* ===== Aviso legal y botón ===== */
#pum-761 .wpcf7-form .fl-legal {
  text-align: center;
  font-size: 14px !important;
  color: #1f2937 !important;
  margin: 6px 0 14px !important;
}
#pum-761 .wpcf7-form .fl-legal a { color: #714B67 !important; text-decoration: underline; }

#pum-761 .wpcf7-form .fl-submit { text-align: center; position: relative; }
#pum-761 .wpcf7-form input[type="submit"] {
  background: linear-gradient(135deg, #8a6a80, #714B67) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 6px !important;
  padding: 14px 44px !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
}
#pum-761 .wpcf7-form input[type="submit"]:hover { filter: brightness(1.08); }
#pum-761 .wpcf7-form .fl-submit .wpcf7-spinner { position: absolute; margin: 14px 0 0 10px; }

/* Mensajes de validación */
#pum-761 .wpcf7-not-valid-tip { color: #dc2626 !important; font-size: 12px !important; margin-top: 4px; }
