/* ================================================================
   WP License Pro — Funnelo Auth Modal
   Namespace: .wplp-funnelo-*
   All selectors are prefixed — zero theme conflicts.
   ================================================================ */

/* ---- Overlay ---- */
#wplp-funnelo-modal-wrap {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999999;
  background: rgba(0, 0, 0, 0.65);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: opacity 0.2s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  box-sizing: border-box;
}
#wplp-funnelo-modal-wrap * {
  box-sizing: border-box;
}

/* ---- Card ---- */
.wplp-funnelo-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 440px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  animation: wplpFunneloIn 0.22s ease;
  margin: 16px;
}
@keyframes wplpFunneloIn {
  from { opacity: 0; transform: scale(0.94) translateY(10px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}

/* ---- Close button ---- */
.wplp-funnelo-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #f3f4f6;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  transition: background 0.15s;
  line-height: 1;
  padding: 0;
}
.wplp-funnelo-close-btn:hover {
  background: #e5e7eb;
}

/* ---- Header ---- */
.wplp-funnelo-header {
  text-align: center;
  margin-bottom: 24px;
}
.wplp-funnelo-icon {
  font-size: 2.4rem;
  margin-bottom: 10px;
  display: block;
}
.wplp-funnelo-header h2 {
  margin: 0 0 6px;
  font-size: 1.45rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.2;
}
.wplp-funnelo-header p {
  margin: 0;
  font-size: 0.9rem;
  color: #6b7280;
}

/* ---- Tabs ---- */
.wplp-funnelo-tabs {
  display: flex;
  gap: 4px;
  background: #f3f4f6;
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 24px;
}
.wplp-funnelo-tab-btn {
  flex: 1;
  padding: 9px 12px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  color: #6b7280;
  transition: all 0.15s;
  line-height: 1;
}
.wplp-funnelo-tab-btn--active {
  background: #ffffff;
  color: #1a1a2e;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  font-weight: 600;
}

/* ---- Panes ---- */
.wplp-funnelo-pane {
  display: none;
}
.wplp-funnelo-pane h3 {
  margin: 0 0 18px;
  font-size: 1.1rem;
  color: #1a1a2e;
  font-weight: 700;
}

/* ---- Form ---- */
.wplp-funnelo-field {
  margin-bottom: 16px;
}
.wplp-funnelo-field label {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}
.wplp-funnelo-field input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #1a1a2e;
  background: #ffffff;
  transition: border-color 0.15s;
  outline: none;
  display: block;
  /* reset any theme overrides */
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
}
.wplp-funnelo-field input:focus {
  border-color: #ea7d2e;
  box-shadow: none;
}

/* ---- Submit button ---- */
.wplp-funnelo-submit-btn {
  display: block;
  width: 100%;
  padding: 12px 24px;
  background: #ea7d2e;
  color: #ffffff !important;
  border: 2px solid #ea7d2e;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s, border-color 0.15s;
  line-height: 1.3;
  letter-spacing: 0.01em;
  margin-top: 4px;
  -webkit-appearance: none;
  appearance: none;
}
.wplp-funnelo-submit-btn:hover:not(:disabled) {
  background: #c9610f;
  border-color: #c9610f;
}
.wplp-funnelo-submit-btn:disabled {
  background: #d1d5db;
  border-color: #d1d5db;
  cursor: not-allowed;
  color: #9ca3af !important;
}

/* ---- Messages ---- */
.wplp-funnelo-msg {
  display: none;
  margin-top: 12px;
  font-size: 0.85rem;
  padding: 9px 13px;
  border-radius: 7px;
  line-height: 1.4;
}
.wplp-funnelo-msg--success {
  background: #ecfdf5;
  color: #065f46;
  display: block;
}
.wplp-funnelo-msg--error {
  background: #fef2f2;
  color: #991b1b;
  display: block;
}

/* ---- Footer links ---- */
.wplp-funnelo-footer-links {
  text-align: center;
  font-size: 0.82rem;
  margin-top: 12px;
  color: #6b7280;
}
.wplp-funnelo-footer-links a {
  color: #ea7d2e;
  text-decoration: none;
}
.wplp-funnelo-footer-links a:hover {
  text-decoration: underline;
}

/* ---- Mobile ---- */
@media (max-width: 480px) {
  .wplp-funnelo-card {
    padding: 28px 20px;
    margin: 12px;
  }
}
