/* CCL Claim Intake - Exit-intent callback popup (feature #4) - refined */
.ccl-cb-overlay{
  position:fixed; inset:0; z-index:2000000;
  display:flex; align-items:center; justify-content:center;
  background:rgba(9,17,40,.60); backdrop-filter:blur(3px); -webkit-backdrop-filter:blur(3px);
  opacity:0; visibility:hidden; transition:opacity .28s ease, visibility .28s ease;
  padding:20px; box-sizing:border-box;
  font-family:Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.ccl-cb-overlay.ccl-cb-open{ opacity:1; visibility:visible; }

.ccl-cb-panel{
  position:relative; width:100%; max-width:430px;
  background:#fff; border-radius:18px; overflow:hidden;
  box-shadow:0 30px 80px rgba(9,17,40,.45), 0 4px 12px rgba(9,17,40,.2);
  transform:translateY(24px) scale(.96); opacity:0;
  transition:transform .34s cubic-bezier(.22,1,.36,1), opacity .3s ease;
}
.ccl-cb-open .ccl-cb-panel{ transform:translateY(0) scale(1); opacity:1; }

/* header band with brand gradient */
.ccl-cb-head{
  position:relative; text-align:center;
  padding:40px 26px 22px;
  background:linear-gradient(135deg,#0b5cff 0%,#1d63ff 55%,#4b82ff 100%);
  color:#fff;
}
.ccl-cb-head::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:4px;
  background:linear-gradient(90deg,#f5c400,#ffd84d,#f5c400);
}
.ccl-cb-badge{
  display:inline-flex; align-items:center; justify-content:center;
  width:56px; height:56px; border-radius:50%;
  background:rgba(255,255,255,.16); color:#fff; margin-bottom:12px;
  box-shadow:0 0 0 6px rgba(255,255,255,.08);
  animation:ccl-cb-ring 2.4s ease-in-out infinite;
}
@keyframes ccl-cb-ring{
  0%,100%{ box-shadow:0 0 0 6px rgba(255,255,255,.08); }
  50%{ box-shadow:0 0 0 12px rgba(255,255,255,0); }
}
.ccl-cb-head .ccl-cb-title{ color:#fff; margin:0 0 6px; }
.ccl-cb-head .ccl-cb-sub{ color:rgba(255,255,255,.9); margin:0; }

.ccl-cb-title{ font-size:21px; line-height:1.25; font-weight:800; color:#0f172a; letter-spacing:-.01em; }
.ccl-cb-sub{ font-size:14px; line-height:1.45; color:#475569; }

.ccl-cb-close{
  position:absolute; top:12px; right:14px; z-index:2;
  border:0; background:rgba(255,255,255,.18); cursor:pointer;
  width:30px; height:30px; border-radius:50%;
  font-size:20px; line-height:28px; color:#fff; padding:0;
  transition:background .15s ease;
}
.ccl-cb-close:hover{ background:rgba(255,255,255,.32); }

/* form */
.ccl-cb-form{ padding:22px 26px 24px; }
.ccl-cb-field{ display:block; margin-bottom:13px; }
.ccl-cb-field > span{
  display:block; font-size:11px; font-weight:700; letter-spacing:.06em;
  text-transform:uppercase; color:#64748b; margin-bottom:6px;
}
.ccl-cb-field input,
.ccl-cb-field select{
  width:100%; box-sizing:border-box; padding:12px 14px;
  border:1.5px solid #e2e8f0; border-radius:10px; font-size:15px; color:#0f172a;
  background:#f8fafc; font-family:inherit;
  transition:border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.ccl-cb-field input::placeholder{ color:#94a3b8; }
.ccl-cb-field input:focus,
.ccl-cb-field select:focus{
  outline:0; border-color:#1d63ff; background:#fff;
  box-shadow:0 0 0 4px rgba(29,99,255,.14);
}
.ccl-cb-err{
  background:#fef2f2; color:#b91c1c; border:1px solid #fecaca;
  border-radius:10px; padding:10px 13px; font-size:13px; margin:2px 0 12px;
}

/* refined gradient button with sheen */
.ccl-cb-submit{
  position:relative; overflow:hidden;
  width:100%; border:0; cursor:pointer; margin-top:6px;
  background:linear-gradient(100deg,#0b5cff 0%,#1d63ff 42%,#7a5bff 72%,#f5c400 140%);
  background-size:180% 100%; background-position:0% 0;
  color:#fff; font-size:16px; font-weight:800; font-family:inherit;
  padding:14px 18px; border-radius:11px; letter-spacing:.01em;
  box-shadow:0 8px 20px rgba(29,99,255,.34);
  transition:background-position .4s ease, transform .12s ease, box-shadow .2s ease;
}
.ccl-cb-submit:hover{ background-position:100% 0; box-shadow:0 10px 26px rgba(29,99,255,.42); }
.ccl-cb-submit:active{ transform:translateY(1px); }
.ccl-cb-submit::before{
  content:""; position:absolute; top:0; left:-60%; width:40%; height:100%;
  background:linear-gradient(120deg,transparent,rgba(255,255,255,.45),transparent);
  transform:skewX(-20deg); animation:ccl-cb-sheen 3.2s ease-in-out infinite;
}
@keyframes ccl-cb-sheen{ 0%{ left:-60%; } 55%,100%{ left:130%; } }
.ccl-cb-submit.is-loading{ opacity:.75; cursor:default; }
.ccl-cb-submit.is-loading::before{ animation-duration:1s; }

.ccl-cb-trust{
  margin:12px 0 0; text-align:center; font-size:11.5px; color:#94a3b8; letter-spacing:.02em;
}

/* success state */
.ccl-cb-done{ text-align:center; padding:38px 30px 34px; }
.ccl-cb-tick{
  display:inline-flex; align-items:center; justify-content:center;
  width:66px; height:66px; border-radius:50%;
  background:linear-gradient(135deg,#0b5cff,#1d63ff); color:#fff; margin-bottom:16px;
  box-shadow:0 10px 24px rgba(29,99,255,.4);
  animation:ccl-cb-pop .45s cubic-bezier(.18,1.4,.4,1) both;
}
@keyframes ccl-cb-pop{ 0%{ transform:scale(0); } 100%{ transform:scale(1); } }
.ccl-cb-done .ccl-cb-title{ margin:0 0 6px; }
.ccl-cb-done .ccl-cb-sub{ margin:0 auto; max-width:300px; }
.ccl-cb-doneclose{
  margin-top:22px; border:1.5px solid #e2e8f0; background:#fff; cursor:pointer;
  padding:10px 26px; border-radius:10px; font-size:14px; font-weight:700;
  color:#334155; font-family:inherit; transition:border-color .15s, color .15s;
}
.ccl-cb-doneclose:hover{ border-color:#1d63ff; color:#1d63ff; }

/* mobile: bottom-sheet style */
@media (max-width:600px){
  .ccl-cb-overlay{ align-items:flex-end; padding:0; }
  .ccl-cb-panel{
    max-width:none; border-radius:20px 20px 0 0;
    transform:translateY(100%); box-shadow:0 -10px 40px rgba(9,17,40,.4);
  }
  .ccl-cb-open .ccl-cb-panel{ transform:translateY(0); }
  .ccl-cb-head{ padding:34px 22px 20px; }
  .ccl-cb-title{ font-size:19px; }
  .ccl-cb-form{ padding:20px 20px 26px; }
  .ccl-cb-field{ margin-bottom:11px; }
  .ccl-cb-field input, .ccl-cb-field select{ font-size:16px; } /* avoid iOS zoom */
}
@media (prefers-reduced-motion:reduce){
  .ccl-cb-badge, .ccl-cb-submit::before, .ccl-cb-tick{ animation:none; }
  .ccl-cb-panel{ transition:opacity .2s ease; transform:none; }
}

/* Estimator option — the second choice in the leaving-the-page popup.
   Deliberately quieter than the call-back button so there is one obvious action. */
.ccl-cb-alt{ position:relative; margin:0 22px 22px; padding:16px 18px 18px; text-align:center;
  border:1px solid #e2e8f0; border-radius:14px; background:#f8fafc; }
.ccl-cb-alt-or{ position:absolute; top:-10px; left:50%; transform:translateX(-50%);
  padding:2px 12px; background:#fff; border:1px solid #e2e8f0; border-radius:999px;
  font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:#64748b; }
.ccl-cb-alt-msg{ margin:4px 0 12px; font-size:13.5px; line-height:1.45; color:#475569; }
.ccl-cb-alt-btn{ display:inline-block; padding:11px 22px; border-radius:10px;
  background:#fff; border:1.5px solid #0b5cff; color:#0b5cff; font-size:14px; font-weight:700;
  text-decoration:none; transition:background .15s ease, color .15s ease; }
.ccl-cb-alt-btn:hover,.ccl-cb-alt-btn:focus{ background:#0b5cff; color:#fff; }
.ccl-cb-alt-btn:focus-visible{ outline:3px solid rgba(11,92,255,.35); outline-offset:2px; }

/* Adding the estimator option made the panel taller than a short laptop viewport,
   where overflow:hidden would have clipped that second option out of reach. */
.ccl-cb-panel{ max-height:calc(100vh - 32px); overflow-x:hidden; overflow-y:auto; }
@supports (height: 100dvh) { .ccl-cb-panel{ max-height:calc(100dvh - 32px); } }
.ccl-cb-alt[hidden]{ display:none !important; }

/* Audit 24 Sept 2026: the small print and placeholders were about 2.5:1 on white, and the
   close button was 30px - small to hit on a phone. */
.ccl-cb-trust{ color:#475569; font-size:12px; }
.ccl-cb-field input::placeholder{ color:#64748B; }
.ccl-cb-close{ width:44px; height:44px; line-height:42px; top:6px; right:8px; }

/* Call-back pop-up look, variation A "Navy header" (chosen 29 Sep 2026, design canvas
   claude.ai/artifact/FFRbRjFCq8hgj78osxUHeq), with the audit R33 accessibility fixes: the site's
   font on every control, 16px fields, 12px labels, text at 4.5:1 or better, 44px targets. */
.ccl-cb-overlay{font-family:inherit}
.ccl-cb-overlay button,.ccl-cb-overlay input,.ccl-cb-overlay select,.ccl-cb-overlay textarea{font-family:inherit}
.ccl-cb-panel{max-width:560px;max-height:calc(100vh - 40px);overflow-y:auto;border-radius:18px}
.ccl-cb-head{background:#0b1320;border-bottom:3px solid #f6c85f;padding:28px 56px 18px}
.ccl-cb-head::after{display:none}
.ccl-cb-badge{width:48px;height:48px;margin-bottom:10px;background:#f6c85f;color:#0b1320;box-shadow:none;animation:none}
.ccl-cb-head .ccl-cb-title{font-family:"Inter Tight",Inter,system-ui,sans-serif;font-size:22px;line-height:1.2;text-wrap:balance}
.ccl-cb-head .ccl-cb-sub{color:#c9d4e3;font-size:15px;line-height:1.5}
.ccl-cb-close{top:12px;right:12px;width:44px;height:44px;border-radius:999px;background:rgba(255,255,255,.12);font-size:24px;line-height:44px}
.ccl-cb-close:hover{background:rgba(255,255,255,.24)}
.ccl-cb-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px;padding:22px 30px 14px}
.ccl-cb-form > .ccl-cb-field{margin:0}
.ccl-cb-form > .ccl-cb-err,.ccl-cb-form > .ccl-cb-submit,.ccl-cb-form > .ccl-cb-trust{grid-column:1 / -1}
.ccl-cb-form > .ccl-cb-err{margin:0}
.ccl-cb-field > span{font-size:12px;color:#475569}
.ccl-cb-field input,.ccl-cb-field select{height:48px;padding:0 14px;border:1.5px solid #7c8ba1;border-radius:10px;background:#f8fafc;font-size:16px}
.ccl-cb-field input::placeholder{color:#64748b}
.ccl-cb-submit{height:52px;margin-top:4px;padding:0 18px;border-radius:12px;background:#1d63ff;background-image:none;box-shadow:none}
.ccl-cb-submit:hover{background:#1a4fd6;box-shadow:none}
.ccl-cb-submit::before{display:none}
.ccl-cb-trust{margin:0;font-size:12px;color:#475569}
.ccl-cb-alt{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 30px 26px;padding:16px 18px;text-align:left;background:#f6f8fb;border-color:#e2e8f0}
.ccl-cb-alt[hidden]{display:none}
.ccl-cb-alt-or{font-size:12px;color:#475569}
.ccl-cb-alt-msg{margin:0;font-size:14px;color:#334155}
.ccl-cb-alt-btn{flex:none;display:inline-flex;align-items:center;min-height:44px;box-sizing:border-box;padding:0 20px;border-color:#0b1320;color:#0b1320}
.ccl-cb-alt-btn:hover,.ccl-cb-alt-btn:focus{background:#0b1320;color:#fff}
.ccl-cb-panel.is-done .ccl-cb-head,.ccl-cb-panel.is-done .ccl-cb-alt{display:none}
.ccl-cb-panel.is-done .ccl-cb-close{background:#f1f5f9;color:#0f172a}
.ccl-cb-done{padding:44px 30px 36px;border-top:6px solid #0b1320}
.ccl-cb-tick{background:#f6c85f;color:#0b1320;box-shadow:none}
.ccl-cb-doneclose{min-height:44px;padding:0 26px}
@media (max-width:600px){
.ccl-cb-panel{max-width:none;max-height:calc(100dvh - 12px);border-radius:20px 20px 0 0}
.ccl-cb-head{padding:28px 22px 18px}
.ccl-cb-head .ccl-cb-title{font-size:20px}
.ccl-cb-form{grid-template-columns:minmax(0,1fr);padding:18px 20px 14px}
.ccl-cb-alt{flex-direction:column;text-align:center;margin:8px 20px 22px}
}
html[data-ccl-theme="dark"] .ccl-cb-panel{background:#121b2e}
html[data-ccl-theme="dark"] .ccl-cb-head{background:#070c16}
html[data-ccl-theme="dark"] .ccl-cb-field > span,html[data-ccl-theme="dark"] .ccl-cb-trust{color:#a9b6ca}
html[data-ccl-theme="dark"] .ccl-cb-field input,html[data-ccl-theme="dark"] .ccl-cb-field select{background:#0b1220;border-color:rgba(255,255,255,.30);color:#e6edf7;color-scheme:dark}
html[data-ccl-theme="dark"] .ccl-cb-field input::placeholder{color:#8fa0b8}
html[data-ccl-theme="dark"] .ccl-cb-alt{background:#0f1729;border-color:rgba(255,255,255,.14)}
html[data-ccl-theme="dark"] .ccl-cb-alt-or{background:#121b2e;border-color:rgba(255,255,255,.14);color:#a9b6ca}
html[data-ccl-theme="dark"] .ccl-cb-alt-msg{color:#c9d4e3}
html[data-ccl-theme="dark"] .ccl-cb-alt-btn{background:transparent;border-color:#9ec1ff;color:#9ec1ff}
html[data-ccl-theme="dark"] .ccl-cb-alt-btn:hover,html[data-ccl-theme="dark"] .ccl-cb-alt-btn:focus{background:#9ec1ff;color:#0b1320}
html[data-ccl-theme="dark"] .ccl-cb-panel.is-done .ccl-cb-close{background:rgba(255,255,255,.10);color:#e6edf7}
html[data-ccl-theme="dark"] .ccl-cb-done .ccl-cb-title{color:#e6edf7}
html[data-ccl-theme="dark"] .ccl-cb-done .ccl-cb-sub{color:#c9d4e3}
html[data-ccl-theme="dark"] .ccl-cb-doneclose{background:#121b2e;border-color:rgba(255,255,255,.14);color:#e6edf7}

/* The pop-up's honeypot field (29 Sep 2026): kept off screen rather than display:none, which
   some form-filling scripts skip. People never see it and screen readers are told to ignore it. */
.ccl-cb-hp{position:absolute!important;left:-10000px!important;top:auto!important;width:1px!important;height:1px!important;overflow:hidden!important}

/* The collection notice under the button (audit R27, 30 Sep 2026): the same small print as the
   line above it, pulled up to sit with it, with the policy link underlined in the form's blue. */
.ccl-cb-form > .ccl-cb-notice{margin-top:-8px}
.ccl-cb-notice a{color:#1d4ed8;text-decoration:underline;text-underline-offset:2px}
.ccl-cb-notice a:hover,.ccl-cb-notice a:focus{color:#0b1320}
html[data-ccl-theme="dark"] .ccl-cb-notice a{color:#9ec1ff}
html[data-ccl-theme="dark"] .ccl-cb-notice a:hover,html[data-ccl-theme="dark"] .ccl-cb-notice a:focus{color:#ffffff}
