/* Ask Fio widget (the Ask iFusion assistant) — Fields design: flat colours, pills, 28 px card. Self-contained tokens. */
.ask { --a-blue: #2671F7; --a-blue-d: #1C5BD6; --a-ink: #0C1118; --a-paper: #F5F1E4; --a-text: #141B25; --a-yellow: #F5E211; --a-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  position: fixed; right: 18px; bottom: 18px; z-index: 120; font-family: var(--a-sans); color: var(--a-text); font-size: 15px; line-height: 1.45; }
.ask * { box-sizing: border-box; }
/* the launcher is Fio peeking over a pill: the button itself is see-through so she can stand BEHIND the pill */
.ask__launch { display: flex; flex-direction: column; align-items: center; width: fit-content; margin-left: auto; padding: 0; border: 0; background: none; color: #fff; font: 500 16px/1 var(--a-sans); cursor: pointer; transition: transform .3s cubic-bezier(.17,.67,.3,1.33); touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.ask__launch:hover { transform: translateY(-2px); }
.ask__pill { position: relative; z-index: 1; display: inline-flex; align-items: center; height: 56px; padding: 0 26px; border-radius: 999px; background: var(--a-ink); white-space: nowrap; box-shadow: 0 10px 30px -12px rgba(0,0,0,.45); }
.ask__launch:focus-visible, .ask__min:focus-visible { outline: none; }
.ask__launch:focus-visible .ask__pill, .ask__min:focus-visible .ask__pill { outline: 3px solid var(--a-yellow); outline-offset: 3px; }
.ask.is-open .ask__launch { display: none; }
.ask__panel { width: min(400px, calc(100vw - 36px)); max-height: min(640px, calc(100vh - 36px)); display: flex; flex-direction: column; background: #fff; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0,0,0,.5); }
.ask__panel[hidden] { display: none; }
.ask__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 20px 16px; background: var(--a-blue); color: #fff; }
.ask__title { flex: 1; min-width: 0; }
.ask__title h2 { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.ask__sub { font-size: 13px; opacity: .9; margin-top: 3px; }
.ask__close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--a-blue-d); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; flex: none; }
.ask__thread { flex: 1; overflow-y: auto; padding: 16px; background: var(--a-paper); display: flex; flex-direction: column; gap: 10px; min-height: 180px; }
.ask__starters { display: flex; flex-wrap: wrap; gap: 8px; }
.ask__chip { border: 0; border-radius: 999px; background: #fff; color: var(--a-text); padding: 9px 14px; font: 500 14px/1.3 var(--a-sans); cursor: pointer; text-align: left; }
.ask__chip:hover { background: var(--a-yellow); }
.ask__chip--sm { padding: 6px 11px; font-size: 13px; background: var(--a-paper); }
.ask__msg { max-width: 92%; border-radius: 20px; padding: 12px 16px; }
.ask__msg p { margin: 0; }
.ask__msg--you { align-self: flex-end; background: var(--a-blue-d); color: #fff; border-bottom-right-radius: 6px; }
.ask__msg--bot { align-self: flex-start; background: #fff; border-bottom-left-radius: 6px; }
.ask__msg.is-pending { padding: 8px 14px 6px; }
.ask__think { display: flex; align-items: center; gap: 12px; }
.ask__think-txt { font-size: 13px; color: #4A5363; }
.ask__road { display: block; overflow: visible; flex: none; }
.ask__road .f-ink { fill: var(--a-ink); } .ask__road .f-paper { fill: var(--a-paper); } .ask__road .f-yellow { fill: var(--a-yellow); } .ask__road .f-blue { fill: var(--a-blue); }
.ask__road .s-ink { fill: none; stroke: var(--a-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ask__road .s-yellow { fill: none; stroke: var(--a-yellow); stroke-width: 2.5; stroke-linecap: round; }
.ask__road-line { stroke: var(--a-ink); stroke-width: 1.5; stroke-dasharray: 6 5; stroke-linecap: round; animation: ask-road 0.6s linear infinite; }
.ask__veh { opacity: 0; transform: translateX(-70px); animation: ask-drive 5.2s cubic-bezier(.4,0,.2,1) infinite; }
.ask__veh--taxi { animation-delay: 1.3s; } .ask__veh--train { animation-delay: 2.6s; } .ask__veh--bike { animation-delay: 3.9s; }
@keyframes ask-road { to { stroke-dashoffset: -11; } }
@keyframes ask-drive {
  0% { opacity: 0; transform: translateX(-70px); }
  6% { opacity: 1; transform: translateX(0) translateY(0); }
  10% { transform: translateX(0) translateY(-0.6px); } 14% { transform: translateX(0) translateY(0.4px); } 18% { transform: translateX(0) translateY(-0.4px); }
  21% { opacity: 1; transform: translateX(0) translateY(0); }
  26%, 100% { opacity: 0; transform: translateX(70px); }
}
@media (prefers-reduced-motion: reduce) { .ask__road-line, .ask__veh { animation: none; } .ask__veh--bus { opacity: 1; transform: none; } }
.ask__cites { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ask__cite { display: inline-block; background: var(--a-paper); color: var(--a-text); border-radius: 999px; padding: 5px 11px; font-size: 12.5px; font-weight: 500; text-decoration: none; }
a.ask__cite:hover { background: var(--a-yellow); }
.ask__fb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: #4A5363; }
.ask__form { padding: 12px 12px 0; background: #fff; }
.ask__row { display: flex; gap: 8px; }
.ask__row input { flex: 1; min-width: 0; font: 400 15px/1.3 var(--a-sans); color: var(--a-text); background: var(--a-paper); border: 2px solid transparent; border-radius: 999px; padding: 12px 16px; }
.ask__row input:focus { outline: none; border-color: var(--a-blue-d); background: #fff; }
.ask__send { width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--a-blue-d); color: #fff; font-size: 20px; cursor: pointer; flex: none; }
.ask__send[disabled] { opacity: .5; cursor: default; }
.ask__counter { padding: 8px 16px 0; font-size: 12px; color: #4A5363; background: #fff; min-height: 8px; }
.ask__note { padding: 6px 16px 14px; font-size: 12px; color: #4A5363; background: #fff; }
@media (max-width: 480px) { .ask { right: 12px; bottom: 12px; left: 12px; } .ask__panel { width: 100%; max-height: calc(100vh - 24px); } .ask.is-open .ask__launch { display: none; } .ask__head-fio { --fio: 108px; } }
@media (prefers-reduced-motion: reduce) { .ask__launch { transition: none; } }

/* ---- Phase F: guiding the visitor ---------------------------------------------------------------- */
.ask__nav { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding: 10px 12px 12px; border-radius: 14px; background: var(--a-ink); color: #fff; font-size: 13.5px; overflow: hidden; touch-action: manipulation; }
.ask__nav-txt { flex: 1; min-width: 0; }
.ask__nav-stay { flex: none; min-height: 32px; min-width: 24px; padding: 6px 12px; border: 0; border-radius: 999px; background: var(--a-yellow); color: var(--a-ink); font: 600 13px/1 var(--a-sans); cursor: pointer; touch-action: manipulation; }
.ask__nav-stay:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.ask__nav-prog { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--a-yellow); transform-origin: left; animation: ask-nav-prog 3s linear forwards; }
.ask__nav--still .ask__nav-prog { animation: none; transform: none; }
.ask__nav.is-stayed { background: var(--a-paper); color: var(--a-text); }
.ask__nav.is-stayed .ask__nav-prog { display: none; }
.ask__nav-go { flex: none; color: var(--a-blue-d); font-weight: 600; text-decoration: none; min-height: 24px; display: inline-flex; align-items: center; touch-action: manipulation; }
@keyframes ask-nav-prog { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.ask__here { margin-top: 10px; font-size: 13px; color: #4A5363; }
.ask__open { display: inline-flex; align-items: center; min-height: 36px; margin-top: 10px; padding: 8px 14px; border-radius: 999px; background: var(--a-ink); color: #fff; font-size: 13.5px; font-weight: 600; text-decoration: none; touch-action: manipulation; }
.ask__open:hover { background: var(--a-blue-d); }
/* the minimised strip after arriving on a small screen, so the highlighted section stays visible */
.ask__min { display: none; flex-direction: column; align-items: center; width: fit-content; margin-left: auto; padding: 0; border: 0; background: none; color: #fff; font: 500 15px/1 var(--a-sans); cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.ask__min .ask__pill { height: 44px; padding: 0 20px; }
.ask__min .ask__peek { --fio: 72px; margin-bottom: -10px; }
.ask.is-min .ask__min { display: flex; }
.ask.is-min .ask__launch, .ask.is-min .ask__panel { display: none; }
/* the section the assistant brought the visitor to (lives on the page, outside the widget) */
.is-ask-target { outline: 4px solid #F5E211; outline-offset: -4px; animation: ask-target 4s ease-out forwards; }
@keyframes ask-target { 0%, 55% { outline-color: #F5E211; } 100% { outline-color: rgba(245,226,17,0); } }
@media (prefers-reduced-motion: reduce) { .is-ask-target { animation: none; } }

/* ---- Fio, the mascot ------------------------------------------------------------------------------
   A square stage (.ask__fio) seen through a window (.ask__fio-win) that shows her from the tuft to the waist.
   Layers inside: one whole body per pose, then mouth and eye patches placed in % of the square by ask.js.
   Only layers with .is-on are visible, and only ever one body. Motion: a pop on first sight, a squash on each
   pose cut, slow breathing, a quick bob while talking, a sway while thinking. */
.ask__fio-win { display: block; flex: none; width: var(--fio, 92px); height: calc(var(--fio, 92px) * .66); overflow: hidden; pointer-events: none; }
.ask__fio { position: relative; display: block; width: var(--fio, 92px); height: var(--fio, 92px); opacity: 0; transform-origin: 50% 66%; }
.ask__fio.is-ready { opacity: 1; }
.ask__fio-in { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; transform-origin: 50% 66%; animation: ask-fio-breathe 3.1s ease-in-out infinite; }
.ask__fio img { position: absolute; display: block; max-width: none; margin: 0; border: 0; visibility: hidden; user-select: none; -webkit-user-drag: none; }
.ask__fio img.is-on { visibility: visible; }
.ask__fio-body { left: 0; top: 0; width: 100%; height: 100%; z-index: 1; }
.ask__fio-eyes { z-index: 2; }
.ask__fio-mouth { z-index: 3; }
.ask__fio.is-pop { animation: ask-fio-pop .6s cubic-bezier(.2,1.5,.4,1) both; }
.ask__fio.is-cut { animation: ask-fio-cut .22s ease-out both; }
.ask__fio.is-talking .ask__fio-in { animation: ask-fio-talk .22s ease-in-out infinite; }
.ask[data-fio="thinking"] .ask__fio-in { animation: ask-fio-think 2.4s ease-in-out infinite; }
.ask__peek { --fio: 100px; margin-bottom: -14px; }                               /* tucked behind the top of the pill */
.ask__head-fio { --fio: 124px; align-self: flex-end; margin: -16px -12px -16px -18px; }   /* standing on the header's bottom edge */
@keyframes ask-fio-breathe { 0%, 100% { transform: scale(1.006, .99); } 50% { transform: scale(.994, 1.012); } }
@keyframes ask-fio-pop { from { transform: translateY(72%); } to { transform: none; } }
@keyframes ask-fio-cut { 0% { transform: none; } 45% { transform: scale(1.04, .95); } 100% { transform: none; } }
@keyframes ask-fio-talk { 0%, 100% { transform: none; } 50% { transform: scale(.996, 1.014); } }
@keyframes ask-fio-think { 0%, 100% { transform: rotate(-1.2deg); } 50% { transform: rotate(1.2deg); } }
@media (prefers-reduced-motion: reduce) { .ask__fio, .ask__fio-in { animation: none !important; } }
