/* Connect Leads — uses the Connect Network theme's tokens (--cn-*) with fallbacks. */
.cnl {
  --l-navy: var(--cn-navy, #0f1c3f);
  --l-blue: var(--cn-blue, #1a3a8f);
  --l-gold: var(--cn-gold, #f5a623);
  --l-ink: var(--cn-ink, #111827);
  --l-muted: var(--cn-muted, #667085);
  --l-border: var(--cn-border, #e5e7eb);
  --l-soft: var(--cn-soft, #f8f7f4);
  color: var(--l-ink);
}
.cnl *, .cnl *::before, .cnl *::after { box-sizing: border-box; }
.cnl[lang="ar"] { font-family: "Cairo", "Segoe UI", Tahoma, sans-serif; }
.cnl[hidden], .cnl [hidden], .cnl-wa[hidden] { display: none !important; }
.cnl-locked { overflow: hidden; }

.cnl-title { margin: 0 0 6px; color: var(--l-navy); font-size: 26px; font-weight: 900; line-height: 1.2; }
.cnl-intro { margin: 0 0 20px; color: var(--l-muted); font-size: 15px; line-height: 1.6; }

/* ---------------------------------------------------------------- form */
.cnl-form__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.cnl-field { display: grid; gap: 6px; margin: 0; }
.cnl-field--wide { grid-column: 1 / -1; }
.cnl-field label { color: var(--l-navy); font-size: 13px; font-weight: 700; }
.cnl-field input, .cnl-field select, .cnl-field textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #cfd5df; border-radius: 12px; background: #fff; color: var(--l-ink); font: inherit; font-size: 16px; }
.cnl-field textarea { min-height: 84px; resize: vertical; }
.cnl-field input:focus, .cnl-field select:focus, .cnl-field textarea:focus { border-color: var(--l-gold); outline: 3px solid rgba(245, 166, 35, .25); }
.cnl[dir="rtl"] .cnl-field input[dir="ltr"] { text-align: right; }
.cnl-hp { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; } /* hidden spam trap; no off-screen offset (that widens right-to-left pages) */
.cnl-consent { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: var(--l-muted); }
.cnl-consent label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.cnl-consent input { width: 18px; height: 18px; margin-top: 1px; flex-shrink: 0; accent-color: var(--l-navy); }
.cnl-consent a { color: var(--l-blue); }
.cnl-error { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: #fef2f2; color: #b91c1c; font-size: 14px; }
.cnl-submit { width: 100%; min-height: 50px; margin-top: 16px; border: 0; border-radius: 13px; background: var(--l-gold); color: var(--l-navy); font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; transition: background .15s, transform .15s; }
.cnl-submit:hover { background: #e09600; transform: translateY(-1px); }
.cnl-submit:disabled { opacity: .7; cursor: wait; transform: none; }
.cnl-done { padding: 22px; border-radius: 16px; background: #ecfdf3; text-align: center; }
.cnl-done p { margin: 0 0 8px; color: #14532d; }
.cnl-done__title { font-size: 22px; font-weight: 900; }
.cnl-wa-link { display: inline-block; margin-top: 6px; color: #128c4a; font-weight: 800; }

.cnl--inline { max-width: 680px; padding: 28px; border: 1px solid var(--l-border); border-radius: 24px; background: #fff; }

/* ---------------------------------------------------------------- pop-up */
.cnl-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.cnl-modal__backdrop { position: absolute; inset: 0; background: rgba(15, 28, 63, .55); backdrop-filter: blur(3px); }
.cnl-modal__box { position: relative; width: min(620px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 30px; border-radius: 24px; background: #fff; box-shadow: 0 30px 80px rgba(15, 28, 63, .35); animation: cnl-in .18s ease-out; }
.cnl-modal__close { position: absolute; top: 12px; inset-inline-end: 12px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--l-soft); color: var(--l-navy); font-size: 24px; line-height: 1; cursor: pointer; }
.cnl-modal__close:hover { background: var(--l-border); }
@keyframes cnl-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cnl-modal__box { animation: none; } }

/* ---------------------------------------------------------------- sticky bar */
.cnl-bar { position: fixed; z-index: 99990; inset-inline: 16px; bottom: 16px; display: flex; align-items: center; gap: 14px; max-width: 920px; margin-inline: auto; padding: 12px 12px 12px 22px; border-radius: 18px; background: var(--l-navy); box-shadow: 0 18px 50px rgba(15, 28, 63, .35); color: #fff; }
.cnl-bar[dir="rtl"] { padding: 12px 22px 12px 12px; }
.cnl-bar p { flex: 1; margin: 0; font-size: 15px; font-weight: 600; line-height: 1.4; }
.cnl-bar__cta { flex-shrink: 0; padding: 12px 18px; border-radius: 12px; background: var(--l-gold); color: var(--l-navy) !important; font-size: 14px; font-weight: 800; text-decoration: none !important; white-space: nowrap; }
.cnl-bar__cta:hover { background: #e09600; }
.cnl-bar__x { flex-shrink: 0; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }

/* ---------------------------------------------------------------- WhatsApp button */
.cnl-wa { position: fixed; z-index: 99991; bottom: 20px; right: 20px; display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; background: #25d366; box-shadow: 0 12px 30px rgba(0, 0, 0, .22); color: #fff !important; transition: transform .15s, bottom .2s; }
.cnl-wa[dir="rtl"] { right: auto; left: 20px; }
.cnl-wa:hover { transform: scale(1.06); }
.cnl-bar:not([hidden]) ~ .cnl-wa { bottom: 96px; }

@media (max-width: 640px) {
  .cnl-form__fields { grid-template-columns: 1fr; }
  .cnl-modal { align-items: flex-end; padding: 0; }
  .cnl-modal__box { width: 100%; max-height: 92vh; padding: 24px 18px; border-radius: 22px 22px 0 0; }
  .cnl-title { font-size: 22px; padding-inline-end: 40px; }
  .cnl-bar { inset-inline: 10px; bottom: 10px; padding: 10px 10px 10px 16px; }
  .cnl-bar p { font-size: 13px; }
  .cnl-bar__cta { padding: 10px 12px; }
  .cnl-wa { width: 52px; height: 52px; bottom: 14px; right: 14px; }
  .cnl-wa[dir="rtl"] { left: 14px; }
  .cnl-bar:not([hidden]) ~ .cnl-wa { bottom: 92px; }
  .cnl--inline { padding: 20px; }
}
