/* CommonJobs Pro Popup — High-Converting Design */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&display=swap');

#cjpf-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 30, 0.75);
  backdrop-filter: blur(3px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: cjpf-fade-in 0.3s ease;
}
@keyframes cjpf-fade-in { from { opacity:0 } to { opacity:1 } }

#cjpf-modal {
  background: #ffffff;
  border-radius: 20px;
  padding: 0;
  max-width: 460px;
  width: 100%;
  position: relative;
  animation: cjpf-slide-up 0.4s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
  overflow: hidden;
  font-family: 'Sora', sans-serif;
}
@keyframes cjpf-slide-up {
  from { transform: translateY(50px) scale(0.95); opacity:0 }
  to   { transform: translateY(0) scale(1);       opacity:1 }
}

/* Top gradient header */
#cjpf-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #1d4ed8 100%);
  padding: 28px 28px 24px;
  position: relative;
  overflow: hidden;
}
#cjpf-header::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
#cjpf-header::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -30px;
  width: 160px; height: 160px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}

/* Live strip */
#cjpf-live-strip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 30px;
  padding: 5px 13px;
  margin-bottom: 14px;
  font-size: 12px;
  color: #93c5fd;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.cjpf-dot {
  width: 8px; height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: cjpf-pulse 1.5s infinite;
  flex-shrink: 0;
}
@keyframes cjpf-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(74,222,128,0.6) }
  50%      { box-shadow: 0 0 0 6px rgba(74,222,128,0) }
}

#cjpf-header h2 {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 10px;
  line-height: 1.25;
  position: relative;
  z-index: 1;
}
#cjpf-header h2 span { color: #60a5fa; }

.cjpf-sub {
  font-size: 13.5px;
  color: #bfdbfe;
  line-height: 1.65;
  margin: 0 0 18px;
  position: relative;
  z-index: 1;
}
.cjpf-sub strong { color: #fff; }
.cjpf-sub em { font-style: normal; color: #93c5fd; font-weight: 600; }

/* Trust row */
#cjpf-trust-row {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 10px 0;
  position: relative;
  z-index: 1;
}
.cjpf-trust-item {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cjpf-trust-num {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}
.cjpf-trust-label {
  font-size: 10.5px;
  color: #93c5fd;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cjpf-trust-divider {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.2);
}

/* Form area */
#cjpf-form { padding: 22px 28px 6px; }

.cjpf-field { margin-bottom: 14px; }
.cjpf-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 6px;
}
.cjpf-field input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  font-family: 'Sora', sans-serif;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  background: #f8faff;
}
.cjpf-field input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.14);
  background: #fff;
}
.cjpf-field input::placeholder { color: #b0b8cc; }

#cjpf-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #1d4ed8, #2563eb, #3b82f6);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  font-family: 'Sora', sans-serif;
  cursor: pointer;
  margin-top: 4px;
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
  box-shadow: 0 6px 20px rgba(37,99,235,0.4);
  position: relative;
  overflow: hidden;
}
#cjpf-submit::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255,255,255,0.1), transparent);
  pointer-events: none;
}
#cjpf-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37,99,235,0.5);
  filter: brightness(1.05);
}
#cjpf-submit:active { transform: translateY(0); }
#cjpf-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

#cjpf-msg {
  text-align: center;
  font-size: 13.5px;
  margin: 10px 0 0;
  min-height: 20px;
  font-weight: 600;
}
#cjpf-msg.success { color: #059669; }
#cjpf-msg.error   { color: #dc2626; }

#cjpf-footer-note {
  text-align: center;
  font-size: 11.5px;
  color: #94a3b8;
  margin: 12px 0 20px;
  padding: 0 28px;
  font-weight: 500;
}

/* Close button */
#cjpf-close {
  position: absolute;
  top: 13px; right: 15px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 3px 9px;
  border-radius: 8px;
  z-index: 10;
  transition: background 0.2s;
}
#cjpf-close:hover { background: rgba(255,255,255,0.28); }

/* Floating trigger button */
#cjpf-trigger-btn {
  position: fixed;
  bottom: 24px; right: 24px;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 13px 20px;
  font-size: 13.5px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 6px 24px rgba(37,99,235,0.5);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: cjpf-float 3s ease-in-out infinite;
}
@keyframes cjpf-float {
  0%,100% { transform: translateY(0) }
  50%      { transform: translateY(-6px) }
}

@media (max-width: 500px) {
  #cjpf-header { padding: 22px 20px 18px; }
  #cjpf-header h2 { font-size: 21px; }
  #cjpf-form { padding: 18px 20px 4px; }
  #cjpf-footer-note { padding: 0 20px; }
  #cjpf-trigger-btn { bottom: 14px; right: 14px; font-size: 12px; padding: 11px 16px; }
}
