/* YojanaClick Free Offer Popup v1.1 — professional look matching the reference design.
   Button also uses Elementor classes (elementor-button) when Elementor is active. */

#ycfop-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.6);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  padding: 16px;
  box-sizing: border-box;
  animation: ycfop-fade .25s ease;
}
@keyframes ycfop-fade { from { opacity: 0; } to { opacity: 1; } }

.ycfop-box {
  position: relative;
  width: 100%;
  max-width: 470px;
  max-height: 92vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .4);
  text-align: center;
  padding: 10px 28px 26px;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  animation: ycfop-pop .3s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes ycfop-pop { from { transform: scale(.94) translateY(8px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }

.ycfop-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease;
}
.ycfop-close:hover { background: #e2e8f0; }

.ycfop-hero { margin: 0 auto; max-width: 340px; }
.ycfop-hero img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.ycfop-title {
  margin: 2px 0 12px;
  font-size: 42px;
  line-height: 1.08;
  font-weight: 800;
  color: #16213e;
  letter-spacing: -1px;
}
.ycfop-title span { color: #e11d2e; }
.ycfop-title .ycfop-underline {
  display: block;
  width: 190px;
  height: 7px;
  margin: 6px auto 0;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  border-radius: 7px;
}

.ycfop-sub {
  margin: 0 0 20px;
  font-size: 17px;
  line-height: 1.5;
  color: #475569;
}
.ycfop-sub b { color: #e11d2e; }

.ycfop-features {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 22px;
}
.ycfop-feature { flex: 1; }
.ycfop-feature + .ycfop-feature { border-left: 1px solid #e2e8f0; }
.ycfop-feature .ycfop-ico {
  width: 54px;
  height: 54px;
  margin: 0 auto 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ycfop-feature .ycfop-ico svg { display: block; }
.ycfop-feature:nth-child(1) .ycfop-ico { background: #ede9fe; }
.ycfop-feature:nth-child(2) .ycfop-ico { background: #fef3c7; }
.ycfop-feature:nth-child(3) .ycfop-ico { background: #dbeafe; }
.ycfop-feature p {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 700;
  color: #16213e;
}

/* Main CTA — Elementor button classes are added in JS too, so the
   site's Elementor button style applies where available. */
.ycfop-btn,
a.ycfop-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 17px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--ycfop-btn-color, #e11d2e);
  background-image: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,0) 55%);
  color: #fff !important;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.3px;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(225, 29, 46, .38);
  box-sizing: border-box;
  transition: transform .15s ease, filter .15s ease;
}
.ycfop-btn:hover { filter: brightness(1.07); transform: translateY(-1px); color: #fff !important; }
.ycfop-btn:active { transform: translateY(0); }
.ycfop-btn svg { display: block; flex-shrink: 0; }

.ycfop-login {
  display: inline-block;
  margin-top: 14px;
  font-size: 15px;
  font-weight: 700;
  color: #16213e;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 4px 8px;
}
.ycfop-login:hover { color: #e11d2e; }

.ycfop-users {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 9px 18px;
  border-radius: 999px;
  background: #fef2f2;
  color: #475569;
  font-size: 15px;
  line-height: 1.3;
}
.ycfop-users svg { flex-shrink: 0; }
.ycfop-users b { color: #e11d2e; }
.ycfop-operators { margin: 4px 0 14px; text-align: center; }
.ycfop-operators p {
  margin: 0 0 8px;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.ycfop-operator-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.ycfop-operator-logos img {
  width: 74px;
  height: 34px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 4px 8px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .08);
}
.ycfop-avatars {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.ycfop-avatars img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .25);
  margin-left: -10px;
}
.ycfop-avatars img:first-child { margin-left: 0; }

@media (max-width: 480px) {
  .ycfop-title { font-size: 33px; }
  .ycfop-btn, a.ycfop-btn { font-size: 20px; padding: 15px 16px; }
  .ycfop-box { padding: 8px 18px 22px; }
  .ycfop-hero { max-width: 280px; }
}
