/* Sticky CTA pill rail + richer "Get Matched Fast"-style inquiry popup —
   homepage only (Rohit, 16-Oct: "jo inquiry form lga hua hai freesoftware
   me same vesa hi lagao... jo sticky button freesoftware ke home page per
   lga hua hai vo saare button lga do"). Visual language/behaviour ported
   from freesoftwarex.com's .fsx-stickycta + #fsxEnqFab + query-bubble.js
   popup, adapted to this site's own real pages/services and its own
   existing /inquiry-submit.php backend (freesoftwarex.com's OTP-verified
   /pub/lead/start endpoint is internal-only on that VPS and can't be
   reached from this site's Hostinger hosting). */

.fsx-stickycta { position: fixed; right: 22px; top: 50%; transform: translateY(calc(-50% - 36px)); z-index: 2147481000; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; font-family: inherit; }
.fsx-stickycta a { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 10px; border-radius: 999px; text-decoration: none; color: #fff; font: 800 15px/1.2 inherit; box-shadow: 0 10px 28px -6px var(--glow, rgba(16,24,40,.4)), 0 2px 8px rgba(16,24,40,.18), inset 0 1px 0 rgba(255,255,255,.25); transform: translateZ(0); transition: width .35s cubic-bezier(.4,0,.2,1), transform .18s ease, box-shadow .18s ease; white-space: nowrap; width: 58px; overflow: hidden; }
@media (hover: hover) and (pointer: fine) and (min-width: 641px) {
  .fsx-stickycta a:hover { width: 272px; transform: translateY(-3px); box-shadow: 0 16px 36px -6px var(--glow, rgba(16,24,40,.5)), 0 4px 12px rgba(16,24,40,.2), inset 0 1px 0 rgba(255,255,255,.3); }
}
.fsx-stickycta a .badge { order: 3; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; background: #fff; box-shadow: 0 2px 6px rgba(16,24,40,.25); font-size: 15px; }
.fsx-stickycta a .lbl { order: 2; flex: 1 1 auto; }
.fsx-stickycta a .chev { order: 1; flex: 0 0 auto; width: 16px; display: flex; align-items: center; justify-content: center; font-size: 11px; opacity: .85; transition: transform .18s ease; }
.fsx-stickycta a:hover .chev { transform: translateX(-3px); }
.fsx-stickycta a.p1 { --glow: rgba(108,87,210,.55); background: linear-gradient(135deg,#6C57D2,#4f3cb0); }
.fsx-stickycta a.p1 .badge { color: #6C57D2; }
.fsx-stickycta a.p2 { --glow: rgba(16,185,129,.5); background: linear-gradient(135deg,#059669,#16a34a); }
.fsx-stickycta a.p2 .badge { color: #059669; }
.fsx-stickycta a.p3 { --glow: rgba(6,182,212,.5); background: linear-gradient(135deg,#0891b2,#06b6d4); }
.fsx-stickycta a.p3 .badge { color: #0891b2; }
.fsx-stickycta a.p1 { animation: fsxPulse 2.6s ease-out infinite; }
.fsx-stickycta a.p1:hover { animation-play-state: paused; }
@keyframes fsxPulse {
  0% { box-shadow: 0 10px 28px -6px var(--glow), 0 2px 8px rgba(16,24,40,.18), inset 0 1px 0 rgba(255,255,255,.25), 0 0 0 0 rgba(108,87,210,.5); }
  70% { box-shadow: 0 10px 28px -6px var(--glow), 0 2px 8px rgba(16,24,40,.18), inset 0 1px 0 rgba(255,255,255,.25), 0 0 0 14px rgba(108,87,210,0); }
  100% { box-shadow: 0 10px 28px -6px var(--glow), 0 2px 8px rgba(16,24,40,.18), inset 0 1px 0 rgba(255,255,255,.25), 0 0 0 0 rgba(108,87,210,0); }
}

/* Enquiry pill — the site's existing #sfxInquiryFab button, restyled/moved
   into this rail as the implicit 4th pill instead of its old plain
   bottom-right look (id kept so inquiry-popup.js's click wiring needs no
   changes). */
#sfxInquiryFab.sfx-enq-fab { position: fixed !important; right: 22px !important; bottom: auto !important; top: calc(50% + 108px) !important; transform: translateY(-50%) !important; display: flex !important; align-items: center; justify-content: flex-end !important; gap: 12px !important; width: 58px !important; overflow: hidden !important; padding: 10px !important; border-radius: 999px !important; background: linear-gradient(135deg,#1f2937,#0f172a) !important; color: #fff; border: 0; box-shadow: 0 10px 28px -6px rgba(15,23,42,.55), 0 2px 8px rgba(16,24,40,.18), inset 0 1px 0 rgba(255,255,255,.12) !important; font: 800 15px/1.2 inherit !important; cursor: pointer; z-index: 2147481000; transition: width .35s cubic-bezier(.4,0,.2,1), transform .18s ease, box-shadow .18s ease !important; }
@media (hover: hover) and (pointer: fine) and (min-width: 641px) {
  #sfxInquiryFab.sfx-enq-fab:hover { width: 272px !important; transform: translateY(calc(-50% - 3px)) !important; box-shadow: 0 16px 36px -6px rgba(15,23,42,.65), 0 4px 12px rgba(16,24,40,.2), inset 0 1px 0 rgba(255,255,255,.16) !important; }
}
#sfxInquiryFab.sfx-enq-fab .badge { order: 3; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; background: #fff; color: #0f172a; box-shadow: 0 2px 6px rgba(16,24,40,.25); font-size: 15px; }
#sfxInquiryFab.sfx-enq-fab .lbl { order: 2; flex: 1 1 auto; text-align: left; }
#sfxInquiryFab.sfx-enq-fab .chev { order: 1; flex: 0 0 auto; width: 16px; display: flex; align-items: center; justify-content: center; font-size: 11px; opacity: .85; transition: transform .18s ease; }
#sfxInquiryFab.sfx-enq-fab:hover .chev { transform: translateX(-3px); }

@media (max-width: 640px) {
  .fsx-stickycta { right: 14px; top: 50%; transform: translateY(calc(-50% - 27.5px)); gap: 10px; }
  .fsx-stickycta a { position: relative; padding: 0; width: 48px; height: 48px; min-width: 0; border-radius: 50%; justify-content: center; overflow: visible; }
  .fsx-stickycta a .badge { width: 48px; height: 48px; background: transparent; box-shadow: none; color: #fff !important; font-size: 19px; }
  .fsx-stickycta a .chev { display: none; }
  .fsx-stickycta a span.lbl { order: 0; display: block; position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%); flex: none; background: #111827; color: #fff; font: 700 11px/1.3 inherit; padding: 6px 11px; border-radius: 8px; white-space: nowrap; box-shadow: 0 4px 14px rgba(16,24,40,.28); pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .15s ease; }
  .fsx-stickycta a:hover span.lbl, .fsx-stickycta a:focus-visible span.lbl { opacity: 1; visibility: visible; }
  .fsx-stickycta a span.lbl::after { content: ''; position: absolute; left: 100%; top: 50%; transform: translateY(-50%); border: 5px solid transparent; border-left-color: #111827; }
  #sfxInquiryFab.sfx-enq-fab { right: 14px !important; bottom: auto !important; top: calc(50% + 87px) !important; transform: translateY(-50%) !important; width: 48px !important; height: 48px !important; justify-content: center !important; padding: 0 !important; overflow: visible !important; }
  #sfxInquiryFab.sfx-enq-fab:hover { width: 48px !important; }
  #sfxInquiryFab.sfx-enq-fab .badge { background: transparent; box-shadow: none; color: #fff !important; font-size: 19px; }
  #sfxInquiryFab.sfx-enq-fab .chev { display: none; }
  #sfxInquiryFab.sfx-enq-fab .lbl { order: 0; display: block; position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%); background: #111827; font: 700 11px/1.3 inherit !important; padding: 6px 11px; border-radius: 8px; white-space: nowrap; box-shadow: 0 4px 14px rgba(16,24,40,.28); pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .15s ease; }
  #sfxInquiryFab.sfx-enq-fab:hover .lbl, #sfxInquiryFab.sfx-enq-fab:focus-visible .lbl { opacity: 1; visibility: visible; }
  #sfxInquiryFab.sfx-enq-fab .lbl::after { content: ''; position: absolute; left: 100%; top: 50%; transform: translateY(-50%); border: 5px solid transparent; border-left-color: #111827; }
}
@media (prefers-reduced-motion: reduce) {
  .fsx-stickycta a.p1 { animation: none; }
  .fsx-stickycta a:hover { transform: none !important; }
  #sfxInquiryFab.sfx-enq-fab:hover { transform: translateY(-50%) !important; }
}

/* Richer inquiry popup — same visual language as freesoftwarex.com's
   query-bubble.js modal (badge + heading + labelled field grid + consent +
   captcha), same field set in spirit, posting to this site's own real
   /inquiry-submit.php instead of freesoftwarex.com's OTP-gated
   /pub/lead/start (internal-only on that VPS, not reachable from here). */
.sfx-inquiry-overlay { position: fixed; inset: 0; background: rgba(20,15,40,.55); z-index: 9999; display: none; align-items: center; justify-content: center; padding: 16px; }
.sfx-inquiry-overlay.open { display: flex; }
.sfx-inquiry-modal { background: #fff; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow-y: auto; border-radius: 16px; padding: 30px 28px; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,.3); font-family: inherit; }
.sfx-inquiry-close { position: absolute; top: 14px; right: 16px; background: #f1f5f9; border: 0; width: 32px; height: 32px; border-radius: 50%; font-size: 18px; cursor: pointer; color: #64748b; line-height: 1; }
.sfx-inquiry-close:hover { background: #e2e8f0; color: #1e293b; }
.sfx-inquiry-badge { display: inline-flex; align-items: center; gap: 7px; background: #efeaff; color: var(--theme-color, #6C57D2); font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 6px 13px; border-radius: 999px; margin-bottom: 12px; }
.sfx-inquiry-modal h3 { margin: 0 0 6px; font-size: 21px; color: #1a1a2e; }
.sfx-inquiry-modal p.sub { margin: 0 0 18px; font-size: 13px; color: #666; line-height: 1.5; }
.sfx-inquiry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.sfx-inquiry-grid .full { grid-column: 1 / -1; }
.sfx-inquiry-modal label { display: block; font-size: 12px; margin: 12px 0 5px; color: #333; font-weight: 700; }
.sfx-inquiry-modal label .req { color: #e11d48; }
.sfx-inquiry-modal input, .sfx-inquiry-modal select, .sfx-inquiry-modal textarea { width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; box-sizing: border-box; font-family: inherit; background: #f8fafc; }
.sfx-inquiry-modal input:focus, .sfx-inquiry-modal select:focus, .sfx-inquiry-modal textarea:focus { outline: none; border-color: var(--theme-color, #6C57D2); background: #fff; }
.sfx-inquiry-modal textarea { min-height: 70px; resize: vertical; }
.sfx-inquiry-captcha { display: flex; align-items: center; gap: 10px; }
.sfx-inquiry-captcha .sum { flex: 0 0 auto; background: #f1f5f9; border-radius: 8px; padding: 10px 14px; font-weight: 800; font-size: 14px; color: #334155; white-space: nowrap; }
.sfx-inquiry-consent { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; font-size: 12px; color: #555; line-height: 1.5; }
.sfx-inquiry-consent input { width: auto; margin-top: 2px; }
.sfx-inquiry-consent a { color: var(--theme-color, #6C57D2); text-decoration: underline; }
.sfx-inquiry-submit { margin-top: 18px; width: 100%; padding: 13px; border: 0; border-radius: 8px; background: var(--theme-color, #6C57D2); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; }
.sfx-inquiry-submit:hover { background: #5847b8; }
.sfx-inquiry-submit:disabled { opacity: .6; cursor: default; }
.sfx-inquiry-status { margin-top: 12px; font-size: 13px; text-align: center; }
.sfx-inquiry-status.ok { color: #1e7e34; }
.sfx-inquiry-status.err { color: #a71d2a; }
@media (max-width: 560px) {
  .sfx-inquiry-grid { grid-template-columns: 1fr; }
}
