/* 0.39: "Ask us" on every page (assets/js/ask.js). Sits above any bottom bar via --vask-lift. */
.vask { --va: #4338ca; --vb: #7c3aed; --vink: #0b1f4d; position: fixed; right: 18px; bottom: var(--vask-lift, 18px); z-index: 1045; font-family: inherit; color: var(--vink);
  display: grid; justify-items: end; gap: .6rem; transition: bottom .25s ease, opacity .2s; }
.vask[hidden] { display: none; }
.vask.vask-hide { opacity: 0; pointer-events: none; }
.vask-fab { position: relative; display: inline-flex; align-items: center; gap: .55rem; height: 54px; padding: 0 1.15rem 0 .45rem; border: 0; border-radius: 999px; color: #fff; font-weight: 800; font-size: 1rem;
  background: linear-gradient(135deg, var(--va), var(--vb)); box-shadow: 0 14px 32px rgba(67, 56, 202, .42); cursor: pointer; }
.vask.anim .vask-fab { animation: vaskIn .6s 1.2s cubic-bezier(.3, 1.6, .5, 1) backwards; }
.vask-fab::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(124, 58, 237, .5); pointer-events: none; }
.vask.anim:not(.open) .vask-fab::before { animation: vaskPing 2.6s 3s infinite; }
.vask-fab:focus-visible, .vask-x:focus-visible, .vask-go:focus-visible { outline: 3px solid #fbbf24; outline-offset: 2px; }
.vask-av { position: relative; flex: none; display: inline-grid; }
.vask-img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; background: #fff; }
.vask-img.sq { border-radius: 12px; }
.vask-ini { display: grid; place-items: center; font-weight: 800; color: var(--va); }
.vask-dot { position: absolute; right: -1px; bottom: 1px; width: 13px; height: 13px; border-radius: 50%; background: #22c55e; border: 2px solid #fff; }
.vask.anim .vask-dot { animation: vaskDot 2.4s infinite; }
.vask-badge { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: #ef4444; color: #fff; font-size: .75rem; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }
.vask-badge[hidden] { display: none; }
.vask-nudge { position: relative; max-width: 250px; padding: .65rem .9rem .7rem; border-radius: 16px 16px 4px 16px; background: #fff; box-shadow: 0 14px 34px rgba(11, 31, 77, .2); font-size: .88rem; line-height: 1.35; cursor: pointer; display: grid; gap: .1rem; }
.vask-nudge[hidden] { display: none; }
.vask.anim .vask-nudge:not([hidden]) { animation: vaskPop .45s cubic-bezier(.3, 1.5, .5, 1); }
.vask-nudge b { font-size: .78rem; color: var(--va); padding-right: 1.2rem; }
.vask-nx { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: #64748b; display: grid; place-items: center; }
.vask-panel { width: 372px; max-height: min(620px, calc(100svh - var(--vask-lift, 18px) - 150px)); display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 24px 60px rgba(11, 31, 77, .3); }
.vask-panel[hidden] { display: none; }
.vask.anim .vask-panel:not([hidden]) { animation: vaskPop .3s ease-out; transform-origin: bottom right; }
.vask-head { display: flex; align-items: center; gap: .7rem; padding: .75rem .9rem; color: #fff; background: linear-gradient(135deg, #1e1b4b, var(--va)); }
.vask-who { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.vask-who b { font-size: .98rem; }
.vask-who small { font-size: .74rem; color: #c7d2fe; }
.vask-st { font-size: .76rem; font-weight: 600; color: #bbf7d0; }
.vask-x { flex: none; width: 36px; height: 36px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; }
.vask-body { flex: 1; min-height: 120px; overflow-y: auto; overscroll-behavior: contain; background: #f6f8fd; padding: .8rem .8rem .4rem; }
.vask-msgs { display: flex; flex-direction: column; gap: .5rem; }
.vask-b { max-width: 88%; padding: .55rem .75rem; border-radius: 14px 14px 14px 4px; background: #fff; border: 1px solid #e6ebf3; font-size: .88rem; line-height: 1.45; align-self: flex-start; overflow-wrap: anywhere; }
.vask-b.me { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: var(--va); border-color: var(--va); color: #fff; }
.vask-b.soft { background: transparent; border: 0; color: #64748b; font-size: .8rem; padding: .1rem .2rem; }
.vask-b.err { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.vask-b.wide { max-width: 100%; width: 100%; padding: .7rem; }
.vask-b.wa { display: grid; gap: .35rem; background: #fff; border-style: dashed; color: #475569; font-size: .8rem; }
.vask-by { display: block; font-size: .7rem; font-weight: 700; color: var(--va); margin-bottom: .1rem; }
.vask-at { display: block; font-size: .68rem; opacity: .7; margin-top: .25rem; }
.vask-link { display: inline-block; margin-top: .35rem; font-weight: 700; font-size: .84rem; }
.vask-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.vask-chips button { border: 1.5px solid #c7d2fe; border-radius: 999px; padding: .3rem .7rem; font-size: .8rem; font-weight: 600; color: #3730a3; background: #fff; }
.vask-chips button:hover { background: #eef2ff; }
.vask-wab { display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 40px; border: 1.5px solid #16a34a; border-radius: 10px; color: #15803d; font-weight: 700; font-size: .86rem; text-decoration: none; }
.vask-wab:hover { background: #f0fdf4; color: #166534; }
.vask-compose { display: flex; align-items: flex-end; gap: .45rem; padding: .55rem .6rem; border-top: 1px solid #eef1f6; background: #fff; }
.vask-compose textarea { flex: 1; min-width: 0; min-height: 42px; max-height: 120px; resize: none; border: 1.5px solid #cbd5e1; border-radius: 12px; padding: .55rem .7rem; font: inherit; font-size: .92rem; line-height: 1.35; color: var(--vink); }
.vask-compose textarea:focus { outline: 0; border-color: #8b5cf6; box-shadow: 0 0 0 .2rem rgba(139, 92, 246, .15); }
.vask-go, .vask-wa { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; }
.vask-go { border: 0; background: var(--va); color: #fff; }
.vask-wa { border: 1.5px solid #16a34a; color: #15803d; background: #fff; }
/* the details card */
.vask-card { display: grid; gap: .5rem; font-size: .84rem; }
.vask-card > b { font-size: .86rem; }
.vask-f { display: grid; gap: .2rem; }
.vask-f label { font-size: .74rem; font-weight: 700; color: #475569; }
.vask-f label span { font-weight: 500; color: #94a3b8; }
.vask-f input, .vask-ph select { height: 40px; border: 1.5px solid #cbd5e1; border-radius: 10px; padding: 0 .65rem; font: inherit; font-size: .92rem; color: var(--vink); background: #fff; min-width: 0; }
.vask-f input:focus, .vask-ph select:focus { outline: 0; border-color: #8b5cf6; box-shadow: 0 0 0 .2rem rgba(139, 92, 246, .14); }
.vask-ph { display: flex; gap: .35rem; }
.vask-ph select { flex: none; width: 104px; padding: 0 .4rem; font-size: .82rem; }
.vask-ph input { flex: 1; width: 100%; }
.vask-msg { font-size: .74rem; min-height: 0; color: #475569; }
.vask-msg:empty { display: none; }
.vask-f.bad input { border-color: #ef4444; }
.vask-f.bad .vask-msg { color: #b91c1c; font-weight: 600; }
.vask-f.good input { border-color: #22c55e; }
.vask-f.good .vask-msg { color: #15803d; }
.vask-fix { border: 0; border-radius: 6px; background: #eef2ff; color: #3730a3; font-weight: 700; font-size: .72rem; padding: .1rem .45rem; margin-left: .2rem; }
.vask-via { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .76rem; color: #475569; }
.vask-via > span { font-weight: 700; margin-right: .1rem; }
.vask-via label { position: relative; margin: 0; }
.vask-via input { position: absolute; opacity: 0; pointer-events: none; }
.vask-via label span { display: inline-block; padding: .25rem .65rem; border-radius: 999px; border: 1.5px solid #cbd5e1; font-weight: 600; cursor: pointer; }
.vask-via input:checked + span { background: #16a34a; border-color: #16a34a; color: #fff; }
.vask-via input:focus-visible + span { outline: 2px solid #8b5cf6; outline-offset: 2px; }
.vask-send { height: 42px; border: 0; border-radius: 10px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--va), var(--vb)); }
.vask-fine { font-size: .7rem; color: #64748b; text-align: center; }
.vask-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.vask-typing { display: inline-flex; gap: 4px; padding: .2rem 0; }
.vask-typing i { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; animation: vaskTy 1s infinite; }
.vask-typing i:nth-child(2) { animation-delay: .15s; } .vask-typing i:nth-child(3) { animation-delay: .3s; }
/* registration form: smaller, quieter */
.vask.reg .vask-fab { height: 46px; padding: 0 .9rem 0 .3rem; font-size: .88rem; background: #fff; color: #334155; box-shadow: 0 10px 24px rgba(15, 23, 42, .14); }
.vask.reg .vask-img { width: 36px; height: 36px; }
.vask.reg .vask-fab::before { display: none; }
@keyframes vaskIn { from { transform: scale(.4) translateY(30px); opacity: 0; } }
@keyframes vaskPop { from { transform: scale(.92) translateY(8px); opacity: 0; } }
@keyframes vaskPing { 0% { box-shadow: 0 0 0 0 rgba(124, 58, 237, .5); } 70%, 100% { box-shadow: 0 0 0 16px rgba(124, 58, 237, 0); } }
@keyframes vaskDot { 0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); } 50% { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); } }
@keyframes vaskTy { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
/* phones: round bubble; the chat opens as a sheet from the bottom */
@media (max-width: 575.98px) {
  .vask { right: 12px; bottom: var(--vask-lift, 12px); }
  .vask-fab { width: 56px; height: 56px; padding: 0; justify-content: center; }
  .vask-fab .vask-img { width: 50px; height: 50px; }
  .vask-lab { display: none; }
  .vask.reg .vask-fab { width: auto; height: 46px; padding: 0 .8rem 0 .25rem; }
  .vask.reg .vask-lab { display: inline; font-size: .82rem; }
  .vask-nudge { max-width: 220px; }
  .vask-panel { position: fixed; left: 0; right: 0; bottom: 0; width: auto; max-height: 88svh; border-radius: 20px 20px 0 0; z-index: 1046; padding-bottom: env(safe-area-inset-bottom); }
  .vask.open .vask-fab { visibility: hidden; }
  .vask-compose textarea { font-size: 16px; }
  .vask-f input, .vask-ph select { font-size: 16px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .vask, .vask * { animation: none !important; transition: none !important; } }
.vask-compose[hidden] { display: none; }
.vask-b.wa { max-width: 100%; width: 100%; } .vask-wab { padding: 0 .6rem; font-size: .84rem; text-align: center; }

/* 0.40: live chat. The status line turns brighter and the dot pulses when a counsellor is really online. */
.vask.live .vask-st::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; margin-right: 5px; vertical-align: 1px; box-shadow: 0 0 0 3px rgba(74, 222, 128, .25); }
.vask.live .vask-st { color: #dcfce7; }
.vask.live.anim .vask-dot { animation: vaskLive 1.6s infinite; }
@keyframes vaskLive { 50% { box-shadow: 0 0 0 5px rgba(34, 197, 94, .25); } }
.vask-b.staff a { color: inherit; text-decoration: underline; word-break: break-all; }
.vask-tp { padding-top: .35rem; padding-bottom: .35rem; }
@media (prefers-reduced-motion: reduce) { .vask.live .vask-dot { animation: none; } }
/* 0.40.1: the green dot shows only while a counsellor is Online. */
.vask:not(.live) .vask-dot { display: none; }
