.smc-mascot{ position:fixed; right:14px; bottom:10px; z-index:9990; width:104px; border:0; padding:0; background:none; cursor:pointer; filter:drop-shadow(0 8px 14px rgba(15,35,60,.25)); animation:smcBob 3.2s ease-in-out infinite; }
.smc-mascot:hover{ animation-play-state:paused; transform:scale(1.05); }
.smc-mascot:focus-visible{ outline:3px solid var(--color-accent,#2FA98C); outline-offset:4px; border-radius:16px; }
.smc-mascot.is-hidden{ display:none; }
.smc-char{ display:block; width:100%; height:auto; overflow:visible; }
.smc-char__arm-r{ transform-origin:84px 96px; animation:smcWave 1.6s ease-in-out infinite; }
.smc-char__head{ transform-origin:60px 90px; animation:smcTilt 4s ease-in-out infinite; }
.smc-mascot__sr{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
@keyframes smcBob{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-6px); } }
@keyframes smcWave{ 0%,100%{ transform:rotate(0); } 50%{ transform:rotate(-16deg); } }
@keyframes smcTilt{ 0%,100%{ transform:rotate(0); } 50%{ transform:rotate(2.5deg); } }
.smc-bubble{ position:fixed; right:116px; bottom:96px; z-index:9990; max-width:230px; background:var(--color-primary,#1E3A5F); color:#fff; padding:14px 30px 14px 18px; border-radius:18px; font:600 .95rem/1.4 var(--font-body,Inter,sans-serif); box-shadow:0 10px 28px rgba(15,35,60,.3); cursor:pointer; animation:smcPop .35s ease-out; }
.smc-bubble[hidden]{ display:none; }
.smc-bubble b{ color:var(--color-warm,#F2A33A); }
.smc-bubble::after{ content:''; position:absolute; right:-8px; bottom:22px; border:9px solid transparent; border-left-color:var(--color-primary,#1E3A5F); border-right:0; }
.smc-bubble__x{ position:absolute; top:4px; right:8px; background:none; border:0; color:#fff; opacity:.7; font-size:1.2rem; line-height:1; cursor:pointer; padding:2px; }
@keyframes smcPop{ from{ opacity:0; transform:translateY(8px) scale(.96); } to{ opacity:1; transform:none; } }
@media (prefers-reduced-motion:reduce){ .smc-mascot,.smc-char__arm-r,.smc-char__head,.smc-bubble{ animation:none; } }
.smc-panel{ position:fixed; right:20px; bottom:20px; z-index:9991; width:380px; max-width:calc(100vw - 24px); height:600px; max-height:calc(100vh - 40px); display:flex; flex-direction:column; background:#fff; border-radius:18px; overflow:hidden; box-shadow:0 18px 50px rgba(15,35,60,.35); font-family:var(--font-body,Inter,sans-serif); }
.smc-panel[hidden]{ display:none; }
.smc-head{ display:flex; align-items:center; gap:12px; background:var(--color-primary,#1E3A5F); color:#fff; padding:14px 16px; }
.smc-head__av{ width:40px; height:40px; border-radius:50%; background:rgba(255,255,255,.16); display:flex; align-items:center; justify-content:center; font-size:1.3rem; }
.smc-head__t{ flex:1; display:flex; flex-direction:column; line-height:1.25; }
.smc-head__t span{ font-size:.78rem; opacity:.8; }
.smc-x{ background:none; border:0; color:#fff; font-size:1.7rem; line-height:1; cursor:pointer; padding:0 4px; }
.smc-body{ flex:1; display:flex; flex-direction:column; min-height:0; background:#f6f8fb; }
/* form */
.smc-form{ padding:20px; overflow:auto; background:#fff; flex:1; }
.smc-form h4{ margin:0 0 4px; font-size:1.1rem; color:var(--color-primary,#1E3A5F); }
.smc-form p{ margin:0 0 14px; color:#6b7280; font-size:.88rem; }
.smc-form label{ display:block; font-size:.82rem; font-weight:600; color:#374151; margin-bottom:12px; }
.smc-form input, .smc-form select{ display:block; width:100%; margin-top:5px; padding:10px 12px; border:1.5px solid #e1e6ee; border-radius:10px; font:inherit; font-weight:400; background:#fafbfd; box-sizing:border-box; }
.smc-form input:focus, .smc-form select:focus{ outline:2px solid var(--color-accent,#2FA98C); border-color:transparent; }
.smc-hp{ position:absolute !important; left:-9999px !important; }
.smc-err{ color:#b93030; font-size:.82rem; min-height:1.1em; margin-bottom:8px; }
.smc-btn{ width:100%; border:0; border-radius:10px; background:var(--color-primary,#1E3A5F); color:#fff; padding:13px; font:700 .95rem inherit; font-family:inherit; cursor:pointer; }
.smc-btn:disabled{ opacity:.6; cursor:wait; }
/* chat */
.smc-log{ flex:1; overflow-y:auto; padding:16px; display:flex; flex-direction:column; gap:10px; }
.smc-msg{ max-width:86%; padding:10px 14px; border-radius:14px; font-size:.9rem; line-height:1.5; word-wrap:break-word; }
.smc-msg a{ color:var(--color-accent-dark,#1E8A6E); font-weight:600; }
.smc-msg--bot{ background:#fff; color:#1f2937; align-self:flex-start; border-bottom-left-radius:4px; box-shadow:0 1px 3px rgba(0,0,0,.06); }
.smc-msg--me{ background:var(--color-primary,#1E3A5F); color:#fff; align-self:flex-end; border-bottom-right-radius:4px; }
.smc-typing{ display:flex; gap:4px; padding:14px; }
.smc-typing i{ width:7px; height:7px; border-radius:50%; background:#9aa5b5; animation:smcb 1s infinite; }
.smc-typing i:nth-child(2){ animation-delay:.15s; } .smc-typing i:nth-child(3){ animation-delay:.3s; }
@keyframes smcb{ 0%,60%,100%{ transform:translateY(0); opacity:.5; } 30%{ transform:translateY(-5px); opacity:1; } }
.smc-chips{ display:flex; gap:6px; overflow-x:auto; padding:6px 12px 8px; flex-shrink:0; scrollbar-width:thin; }
.smc-chip{ flex:none; border:1.5px solid #d6dde8; background:#fff; color:var(--color-primary,#1E3A5F); border-radius:999px; padding:6px 12px; font:600 .78rem inherit; font-family:inherit; cursor:pointer; white-space:nowrap; }
.smc-chip:hover{ border-color:var(--color-accent,#2FA98C); color:var(--color-accent-dark,#1E8A6E); }
.smc-actions{ display:flex; gap:8px; padding:0 12px 8px; flex-shrink:0; }
.smc-actions a{ flex:1; text-align:center; text-decoration:none; font-size:.76rem; font-weight:600; padding:7px 6px; border-radius:8px; background:#e9f6f2; color:var(--color-accent-dark,#1E8A6E); }
.smc-bar{ display:flex; gap:8px; padding:10px 12px; background:#fff; border-top:1px solid #e8ecf2; flex-shrink:0; }
.smc-bar input{ flex:1; border:1.5px solid #e1e6ee; border-radius:999px; padding:10px 14px; font:inherit; font-size:.9rem; min-width:0; }
.smc-bar input:focus{ outline:2px solid var(--color-accent,#2FA98C); border-color:transparent; }
.smc-bar button{ width:42px; height:42px; border:0; border-radius:50%; background:var(--color-accent,#2FA98C); color:#fff; font-size:1.05rem; cursor:pointer; }
@media (max-width:520px){ .smc-mascot{ width:78px; right:8px; } .smc-bubble{ right:88px; bottom:70px; max-width:190px; font-size:.85rem; } .smc-panel{ right:0; bottom:0; width:100vw; max-width:100vw; height:100dvh; max-height:100dvh; border-radius:0; } }
@media print{ .smc-mascot,.smc-bubble,.smc-panel{ display:none !important; } }
/* keep the assistant above the sticky Call / WhatsApp / Admission bar on phones */
@media (max-width:760px){ body:not(.logged-in) .smc-mascot{ bottom:72px; width:64px; right:8px; } body:not(.logged-in) .smc-bubble{ bottom:128px; right:78px; max-width:180px; } }
