/* The call-back pop-up (contact.js), shared by Home and the course page.
   The course page also has these rules in course.css. */
/* ======================================================================
   CONTACT US: the button in the questions section, and its popup
   ====================================================================== */
.fq-btns{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.fq-contact{display:inline-flex;align-items:center;gap:9px;padding:15px 24px;border-radius:14px;border:1.5px solid rgb(47 107 255 / .35);background:#fff;
  font:700 15px var(--font);color:var(--navy);cursor:pointer;box-shadow:0 14px 30px -20px rgb(10 31 92 / .5);transition:border-color .25s,background-color .25s,translate .3s var(--ease)}
.fq-contact:hover{border-color:var(--cta);background:#F2F6FF;translate:0 -2px}
.fq-contact svg{width:17px;height:17px;fill:none;stroke:var(--cta);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.ct{width:min(460px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;border:0;border-radius:28px;background:transparent;overflow:visible;color:var(--ink)}
.ct::backdrop{background:rgb(6 13 46 / .55);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);opacity:0;transition:opacity .22s ease}
.ct.on::backdrop{opacity:1}
.ct-card{position:relative;overflow:auto;max-height:calc(100dvh - 32px);padding:34px 32px 26px;border-radius:28px;background:#fff;
  box-shadow:0 50px 100px -40px rgb(6 13 46 / .8);opacity:0;translate:0 24px;scale:.96;transition:opacity .22s ease,translate .3s var(--ease),scale .3s var(--ease)}
.ct-card::before{content:"";position:absolute;left:0;right:0;top:0;height:6px;background:linear-gradient(90deg,#2F6BFF,#22B8F0,#FFB52E)}
.ct.on .ct-card{opacity:1;translate:none;scale:1}
.ct-x{position:absolute;right:16px;top:18px;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;border:0;background:#F2F6FF;cursor:pointer;transition:background-color .25s}
.ct-x:hover{background:#E1E9FB}
.ct-x svg{width:16px;height:16px;fill:none;stroke:var(--navy);stroke-width:2.2;stroke-linecap:round}
.ct-ic,.ct-tick{display:grid;place-items:center;width:52px;height:52px;margin:0 0 16px;border-radius:16px;background:var(--grad-cta);box-shadow:0 14px 26px -12px rgb(47 107 255 / .8)}
.ct-ic svg,.ct-tick svg{width:24px;height:24px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ct h2{margin:0 0 6px;font:800 26px/1.15 var(--font);letter-spacing:-.03em;color:var(--navy)}
.ct-l{margin:0 0 22px;font-size:14.5px;line-height:1.55;color:var(--mute)}
.ct-fl{display:block;margin:0 0 14px}
.ct-k{display:block;margin:0 0 6px;font:700 13px var(--font);color:var(--navy)}
.ct-k i{font-style:normal;color:#E5484D}
.ct-fl input{width:100%;box-sizing:border-box;padding:13px 14px;border-radius:12px;border:1.5px solid rgb(10 31 92 / .16);background:#F8FAFF;font:500 15px var(--font);color:var(--ink);
  outline:none;transition:border-color .2s,box-shadow .2s,background-color .2s}
.ct-fl input:focus{border-color:var(--cta);background:#fff;box-shadow:0 0 0 4px rgb(47 107 255 / .15)}
.ct-pre{display:flex}
.ct-pre b{display:grid;place-items:center;padding:0 12px;border:1.5px solid rgb(10 31 92 / .16);border-right:0;border-radius:12px 0 0 12px;background:#EEF3FF;font:700 14.5px var(--font);color:var(--navy)}
.ct-pre input{border-radius:0 12px 12px 0}
.ct-fl.bad input,.ct-fl.bad .ct-pre b{border-color:#E5484D}
.ct-fl.bad input:focus{box-shadow:0 0 0 4px rgb(229 72 77 / .15)}
.ct-e{display:block;min-height:0;margin-top:5px;font-size:12.5px;font-weight:600;color:#D33A3F}
.ct-e:empty{display:none}
.ct-go{position:relative;width:100%;margin-top:8px;padding:16px;border:0;border-radius:14px;background:var(--grad-cta);font:800 15.5px var(--font);color:#fff;cursor:pointer;
  box-shadow:0 18px 36px -16px rgb(47 107 255 / .75),inset 0 1px 0 rgb(255 255 255 / .25);transition:translate .3s var(--ease),filter .25s}
.ct-go:hover{translate:0 -2px;filter:brightness(1.06)}
.ct-go:disabled{cursor:wait;filter:saturate(.7)}
.ct-go.busy span{opacity:0}
.ct-go.busy::after{content:"";position:absolute;left:50%;top:50%;width:20px;height:20px;margin:-10px 0 0 -10px;border-radius:50%;border:2.5px solid rgb(255 255 255 / .4);border-top-color:#fff;animation:ct-spin .8s linear infinite}
@keyframes ct-spin{ to{transform:rotate(360deg)} }
.ct-note{margin:12px 0 0;font-size:12px;line-height:1.5;text-align:center;color:var(--mute)}
.ct-fail{margin:12px 0 0;font-size:13px;font-weight:600;color:#D33A3F;text-align:center}
.ct-done{padding:10px 0 4px;text-align:center}
.ct-done .ct-tick{margin:0 auto 16px;background:linear-gradient(135deg,#34D399,#16A34A);box-shadow:0 14px 26px -12px rgb(22 163 74 / .7);animation:ct-pop .5s cubic-bezier(.2,1.6,.4,1)}
@keyframes ct-pop{ from{scale:.4;opacity:0} }
.ct-done p{margin:0 0 22px;color:var(--mute)}
.ct-close{padding:13px 30px;border-radius:12px;border:1.5px solid rgb(47 107 255 / .35);background:#fff;font:700 14.5px var(--font);color:var(--navy);cursor:pointer}
@media (max-width:560px){ .ct-card{padding:28px 20px 22px} .fq-btns > *{flex:1 1 100%;justify-content:center;text-align:center} }
@media (prefers-reduced-motion:reduce){ .ct-card,.ct::backdrop{transition:none} .ct-done .ct-tick{animation:none} }
