/* ─── Mehta Pansari Lead Tracker - Phone Capture Popup ─────────────────────── */

/* Overlay */
#mpt-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Popup Card */
#mpt-popup {
  background: #ffffff;
  border-radius: 20px;
  padding: 36px 32px 32px;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  animation: mpt-slide-up 0.25s ease-out;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

@keyframes mpt-slide-up {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Close button */
#mpt-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #999;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 50%;
  transition: background 0.15s, color 0.15s;
}
#mpt-close:hover {
  background: #f0f0f0;
  color: #333;
}

/* Icon */
#mpt-popup-icon {
  font-size: 40px;
  margin-bottom: 12px;
  line-height: 1;
}

/* Title */
#mpt-popup-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 10px;
  line-height: 1.3;
}

/* Subtitle */
#mpt-popup-subtitle {
  font-size: 14px;
  color: #666;
  margin: 0 0 24px;
  line-height: 1.6;
}

/* Form */
#mpt-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Phone input wrapper */
#mpt-phone-wrapper {
  display: flex;
  align-items: center;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
  background: #fafafa;
}
#mpt-phone-wrapper:focus-within {
  border-color: #2d6a4f;
  background: #fff;
}

/* Country prefix */
#mpt-phone-prefix {
  padding: 0 14px;
  font-size: 15px;
  font-weight: 600;
  color: #555;
  border-right: 1px solid #e0e0e0;
  background: #f0f0f0;
  height: 52px;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

/* Phone input */
#mpt-phone-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 16px;
  font-size: 16px;
  color: #1a1a1a;
  background: transparent;
  width: 100%;
  box-sizing: border-box;
}
#mpt-phone-input::placeholder {
  color: #bbb;
}

/* Error message */
#mpt-error {
  background: #fff0f0;
  border: 1px solid #ffcccc;
  color: #cc0000;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  text-align: left;
}

/* Submit button */
#mpt-submit-btn {
  background: #2d6a4f;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 15px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  letter-spacing: 0.3px;
}
#mpt-submit-btn:hover:not(:disabled) {
  background: #1b4332;
}
#mpt-submit-btn:active:not(:disabled) {
  transform: scale(0.98);
}
#mpt-submit-btn:disabled {
  background: #95d5b2;
  cursor: not-allowed;
}

/* Privacy note */
#mpt-privacy {
  font-size: 12px;
  color: #999;
  margin: 4px 0 0;
  line-height: 1.5;
}

/* ─── Mobile Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  #mpt-popup {
    padding: 28px 20px 24px;
    border-radius: 16px;
  }
  #mpt-popup-title {
    font-size: 19px;
  }
  #mpt-popup-subtitle {
    font-size: 13px;
  }
}
