/* engage.css — engagement popups (client portal + public site). Mobile: bottom sheet. Desktop: centred card. */
.eg-ov{position:fixed;inset:0;z-index:2147482000;display:flex;align-items:flex-end;justify-content:center;background:rgba(10,28,22,.5);
  font-family:Lexend,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;-webkit-font-smoothing:antialiased;animation:egFade .2s ease-out}
.eg-ov *,.eg-slide *{box-sizing:border-box}
.eg-ov button,.eg-ov input,.eg-ov textarea,.eg-ov a,.eg-ov h2,.eg-ov p,.eg-slide button,.eg-slide input,.eg-slide a,.eg-slide h2,.eg-slide p{font-family:Lexend,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
.eg-ov i.fas,.eg-slide i.fas{font-family:"Font Awesome 6 Free"!important;font-weight:900;font-style:normal}
.eg-card:focus{outline:none}
html.eg-open,html.eg-open body{overflow:hidden}
@keyframes egFade{from{opacity:0}to{opacity:1}}
@keyframes egUp{from{transform:translateY(40px);opacity:0}to{transform:none;opacity:1}}
@keyframes egPop{from{transform:translateY(14px) scale(.97);opacity:0}to{transform:none;opacity:1}}
.eg-ov.eg-closing{animation:egFade .18s ease-in reverse forwards}

.eg-card{position:relative;width:100%;max-height:90vh;overflow-y:auto;background:#fffdf8;color:#1d2b26;border-radius:26px 26px 0 0;
  padding:26px 20px calc(20px + env(safe-area-inset-bottom));box-shadow:0 -18px 50px -20px rgba(0,0,0,.45);animation:egUp .28s cubic-bezier(.2,.9,.3,1.1)}
.eg-card::before{content:"";display:block;width:44px;height:5px;border-radius:5px;background:#d9d2c3;margin:-12px auto 14px}
@media(min-width:768px){
  .eg-ov{align-items:center;padding:24px}
  .eg-card{max-width:470px;border-radius:24px;padding:30px 28px 24px;animation:egPop .26s cubic-bezier(.2,.9,.3,1.15);box-shadow:0 30px 70px -24px rgba(0,0,0,.55)}
  .eg-card::before{display:none}
}
.eg-x{position:absolute;top:12px;right:12px;width:38px;height:38px;border-radius:50%;border:1px solid #e7dfcf;background:#fff;color:#33413c;
  display:flex;align-items:center;justify-content:center;font-size:1rem;cursor:pointer;line-height:1}
.eg-x:hover{background:#f6f1e7}
.eg-badge{width:56px;height:56px;border-radius:18px;display:flex;align-items:center;justify-content:center;font-size:1.45rem;margin-bottom:12px;
  background:#e6f2ec;color:#1f5446}
.eg-t-gold .eg-badge{background:#fff3d6;color:#b7790a}
.eg-t-red .eg-badge{background:#fde6e3;color:#b42318}
.eg-t-care .eg-badge{background:#fdeef0;color:#c0395a}
.eg-eyebrow{margin:0 0 4px;font-size:.74rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:#b5651d}
.eg-title{margin:0 0 8px;font-size:1.32rem;line-height:1.25;font-weight:700;color:#12302a;padding-right:34px}
.eg-body{margin:0 0 14px;font-size:.95rem;line-height:1.5;color:#3b4a44}
.eg-meta{display:inline-block;margin:-4px 0 14px;padding:4px 12px;border-radius:999px;background:#fff3d6;color:#8a5a00;font-weight:700;font-size:.85rem}
.eg-prog{height:8px;border-radius:8px;background:#ece6d9;overflow:hidden;margin:0 0 16px}
.eg-prog i{display:block;height:100%;border-radius:8px;background:linear-gradient(90deg,#1f5446,#3c8b6c)}

.eg-list{list-style:none;margin:0 0 16px;padding:0;display:grid;gap:8px}
.eg-list a{display:flex;align-items:center;gap:12px;padding:11px 14px;border-radius:14px;background:#fff;border:1px solid #ece4d3;color:#1d2b26;text-decoration:none;font-weight:600;font-size:.92rem}
.eg-list a:hover{border-color:#1f5446}
.eg-list .eg-chk{width:24px;height:24px;flex:0 0 24px;border-radius:50%;border:2px solid #c9c0ad;display:flex;align-items:center;justify-content:center;font-size:.7rem;color:#fff}
.eg-list .is-done .eg-chk{background:#1f8a5b;border-color:#1f8a5b}
.eg-list .is-done span{text-decoration:line-through;color:#7a867f}
.eg-list small{margin-left:auto;color:#8a5a00;font-weight:700;white-space:nowrap}
.eg-list .eg-go{margin-left:auto;color:#9aa5a0}

.eg-form{margin:0 0 14px}
.eg-stars{display:flex;gap:6px;margin:0 0 12px}
.eg-stars button{flex:1;max-width:58px;height:50px;border-radius:14px;border:1.5px solid #e2d9c6;background:#fff;color:#c9c0ad;font-size:1.35rem;cursor:pointer}
.eg-stars button.on{color:#f2a900;border-color:#f2b632;background:#fff8e6}
.eg-moods{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin:0 0 12px}
.eg-moods button{border:1.5px solid #e2d9c6;background:#fff;border-radius:14px;padding:8px 2px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:3px;color:#33413c}
.eg-moods button span{font-size:1.6rem;line-height:1}
.eg-moods button small{font-size:.68rem;font-weight:600}
.eg-moods button.on{border-color:#1f5446;background:#e6f2ec;box-shadow:0 0 0 3px rgba(31,84,70,.15)}
.eg-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.eg-chips label{cursor:pointer;margin:0}
.eg-chips input{position:absolute;opacity:0;pointer-events:none}
.eg-chips span{display:inline-block;padding:8px 13px;border-radius:999px;border:1.5px solid #ddd4c1;background:#fff;font-size:.84rem;font-weight:600;color:#33413c}
.eg-chips input:checked+span{background:#1f5446;border-color:#1f5446;color:#fff}
.eg-chips input:focus-visible+span{outline:3px solid rgba(242,182,50,.6)}
.eg-ta,.eg-in{width:100%;border:1.5px solid #ddd4c1;border-radius:14px;padding:11px 13px;font-size:16px;background:#fff;color:#1d2b26;resize:vertical}
.eg-ta{min-height:84px}
.eg-ta:focus,.eg-in:focus{outline:none;border-color:#1f5446;box-shadow:0 0 0 3px rgba(31,84,70,.14)}
.eg-share{display:flex;gap:8px;align-items:center;margin:10px 0 0;font-size:.85rem;color:#3b4a44}
.eg-share input{width:18px;height:18px;accent-color:#1f5446}
.eg-err{color:#b42318;font-size:.85rem;font-weight:600;margin:8px 0 0}
.eg-err:empty{display:none}

.eg-acts{display:flex;flex-direction:column;gap:9px}
@media(min-width:560px){.eg-acts{flex-direction:row;flex-wrap:wrap}.eg-acts .eg-btn{flex:1 1 auto}}
.eg-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:12px 18px;border-radius:999px;font-weight:700;font-size:.97rem;
  text-decoration:none;cursor:pointer;border:0;line-height:1.2;text-align:center}
.eg-btn.primary{background:linear-gradient(180deg,#f8922f,#e2581a);color:#fff;box-shadow:0 10px 22px -12px rgba(226,88,26,.9)}
.eg-btn.primary:hover{filter:brightness(1.05);color:#fff}
.eg-btn.line{background:#fff;color:#1f5446;border:1.5px solid #1f5446}
.eg-btn.line:hover{background:#eef6f2;color:#1f5446}
.eg-btn.text{background:none;color:#5b6863;text-decoration:underline;min-height:40px}
.eg-btn[disabled]{opacity:.6;cursor:wait}
.eg-foot{margin:14px 0 0;padding:10px 12px;border-radius:12px;background:#fdeef0;color:#8c1d36;font-size:.84rem;font-weight:600}
.eg-never{display:block;margin:12px auto 0;background:none;border:0;color:#7a867f;font-size:.8rem;text-decoration:underline;cursor:pointer}
.eg-done{text-align:center;padding:10px 0 4px}
.eg-done .eg-badge{margin:0 auto 12px;background:#e3f4ea;color:#1f8a5b}

/* Slide-in (public, non-blocking) */
.eg-slide{position:fixed;z-index:2147481000;left:12px;right:12px;bottom:calc(86px + env(safe-area-inset-bottom));animation:egUp .3s ease-out;
  font-family:Lexend,system-ui,sans-serif}
.eg-slide .eg-card{border-radius:20px;max-height:70vh;padding:18px 16px 16px;box-shadow:0 18px 44px -14px rgba(0,0,0,.45);animation:none}
.eg-slide .eg-card::before{display:none}
.eg-slide .eg-title{font-size:1.08rem}
.eg-slide .eg-badge{width:44px;height:44px;font-size:1.1rem;border-radius:14px;margin-bottom:8px}
.eg-slide .eg-row{display:flex;gap:8px;flex-wrap:wrap}
.eg-slide .eg-row .eg-in{flex:1 1 180px}
@media(min-width:768px){.eg-slide{left:auto;right:24px;bottom:24px;width:380px}}

/* Confetti */
.eg-confetti{position:fixed;inset:0;pointer-events:none;z-index:2147482500;overflow:hidden}
.eg-confetti i{position:absolute;top:-12px;width:9px;height:14px;border-radius:2px;opacity:.95;animation:egFall linear forwards}
@keyframes egFall{to{transform:translate3d(var(--dx),105vh,0) rotate(720deg);opacity:.9}}
@media (prefers-reduced-motion: reduce){.eg-card,.eg-ov,.eg-slide{animation:none!important}.eg-confetti{display:none}}
