/* Contact Hub pop-up (Teams chat / Email) */
.rlh{position:fixed;inset:0;z-index:100010;display:flex;align-items:center;justify-content:center;padding:16px;font-family:var(--rl-font,"Poppins","Segoe UI",system-ui,Arial,sans-serif)}
.rlh[hidden]{display:none}
body.rlh-open{overflow:hidden}
.rlh-backdrop{position:absolute;inset:0;background:rgba(10,14,6,.55);backdrop-filter:blur(6px);animation:rlhFade .25s ease}
.rlh-box{--rlh-a:#5059c9;--rlh-b:#7b83eb;position:relative;display:flex;flex-direction:column;width:min(440px,100%);max-height:min(640px,calc(100vh - 32px));border-radius:24px;background:#fff;overflow:hidden;box-shadow:0 30px 80px rgba(0,0,0,.35);animation:rlhPop .3s cubic-bezier(.2,.9,.3,1.2)}
.rlh--email .rlh-box{--rlh-a:#d93025;--rlh-b:#ff7a59}
.rlh-head{display:flex;align-items:center;gap:14px;padding:18px 20px;color:#fff;background:linear-gradient(135deg,var(--rlh-a),var(--rlh-b));position:relative}
.rlh-head:after{content:"";position:absolute;right:-30px;top:-40px;width:140px;height:140px;border-radius:50%;background:rgba(255,255,255,.12);pointer-events:none}
.rlh-ico{flex:none;width:46px;height:46px;border-radius:14px;background:#fff;display:grid;place-items:center;box-shadow:0 6px 16px rgba(0,0,0,.2)}
.rlh-ht{display:flex;flex-direction:column;min-width:0;line-height:1.25}
.rlh-ht strong{font-size:17px;font-weight:700}
.rlh-ht small{font-size:12px;opacity:.9;margin-top:2px}
.rlh-x{margin-left:auto;position:relative;z-index:1;width:34px;height:34px;border:0;border-radius:50%;background:rgba(255,255,255,.2);color:#fff;font-size:22px;line-height:1;cursor:pointer;transition:background .2s}
.rlh-x:hover{background:rgba(255,255,255,.35)}
.rlh-thread{flex:1 1 auto;min-height:120px;overflow-y:auto;padding:18px 18px 8px;background:linear-gradient(180deg,#f6f8ee,#fff);display:flex;flex-direction:column;gap:10px}
.rlh-thread[hidden]{display:none}
.rlh-b{max-width:84%;padding:10px 14px 6px;border-radius:18px;font-size:14px;line-height:1.5;animation:rlhIn .25s ease;word-wrap:break-word}
.rlh-b p{margin:0;white-space:pre-wrap}
.rlh-b time{display:block;margin-top:3px;font-size:10px;opacity:.6;text-align:right}
.rlh-b--bot{align-self:flex-start;background:#fff;color:#1b1c1f;border:1px solid #e6e8e0;border-bottom-left-radius:6px;box-shadow:0 4px 12px rgba(6,6,6,.05)}
.rlh-b--me{align-self:flex-end;color:#fff;background:linear-gradient(135deg,var(--rlh-a),var(--rlh-b));border-bottom-right-radius:6px}
.rlh-typing{display:flex;gap:4px;padding:12px 14px}
.rlh-typing i{width:7px;height:7px;border-radius:50%;background:#9aa0a6;animation:rlhDot 1s infinite}
.rlh-typing i:nth-child(2){animation-delay:.15s}.rlh-typing i:nth-child(3){animation-delay:.3s}
.rlh-form{flex:0 1 auto;padding:14px 18px 18px;background:#fff;border-top:1px solid #eef0e6;overflow-y:auto}
.rlh-form.is-follow{overflow:visible}
.rlh--teams .rlh-row + .rlh-row{grid-template-columns:1fr}
.rlh-form[hidden]{display:none}
.rlh-first[hidden]{display:none}
.rlh-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:10px}
.rlh-row label{display:flex;flex-direction:column;gap:4px;font-size:11px;font-weight:600;color:#5f6368;text-transform:uppercase;letter-spacing:.04em;min-width:0}
.rlh-row label[hidden]{display:none}
.rlh-form input[type=text],.rlh-form input[type=email],.rlh-form input[type=tel],.rlh-form textarea{width:100%;box-sizing:border-box;padding:11px 13px;border:1.5px solid #e1e5d6;border-radius:12px;background:#fbfcf7;font-size:14px;line-height:1.4;font-family:inherit;color:#1b1c1f;text-transform:none;letter-spacing:0;transition:border-color .2s,box-shadow .2s}
.rlh-form input:focus,.rlh-form textarea:focus{outline:0;border-color:var(--rlh-a);box-shadow:0 0 0 3px rgba(80,89,201,.15);background:#fff}
.rlh--email .rlh-form input:focus,.rlh--email .rlh-form textarea:focus{box-shadow:0 0 0 3px rgba(217,48,37,.14)}
.rlh-form textarea{resize:none;display:block}
.rlh-compose{display:flex;flex-direction:column;gap:10px}
.rlh-form.is-follow .rlh-compose{flex-direction:row;align-items:flex-end}
.rlh-form.is-follow textarea{flex:1}
.rlh-send{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 22px;border:0;border-radius:12px;background:var(--rl-primary,#c3db55);color:#10200a;font-size:14px;font-weight:700;line-height:1;font-family:inherit;cursor:pointer;box-shadow:0 8px 20px rgba(132,189,47,.3);transition:transform .15s,box-shadow .15s}
.rlh-send:hover{transform:translateY(-1px);box-shadow:0 12px 24px rgba(132,189,47,.38)}
.rlh-send:disabled{opacity:.6;cursor:wait;transform:none}
.rlh-form.is-follow .rlh-send{width:46px;height:46px;padding:0;border-radius:50%;flex:none}
.rlh-form.is-follow .rlh-send span{display:none}
.rlh-msg{margin:10px 0 0;min-height:0;font-size:13px}
.rlh-msg:empty{display:none}
.rlh-msg.is-err{color:#c5221f}.rlh-msg.is-ok{color:#2f7a12}
.rlh-done{position:relative;padding:34px 26px 30px;text-align:center;background:linear-gradient(180deg,#f6f8ee,#fff);overflow:hidden}
.rlh-bar{position:absolute;left:0;bottom:0;height:4px;width:100%;background:linear-gradient(90deg,#c3db55,#6aa012);transform-origin:left;transform:scaleX(0);opacity:0}
.rlh-done.is-closing .rlh-bar{opacity:1;animation:rlhBar 3s linear forwards}
@keyframes rlhBar{from{transform:scaleX(1)}to{transform:scaleX(0)}}
.rlh-done[hidden]{display:none}
.rlh-check{display:inline-grid;place-items:center;width:64px;height:64px;border-radius:50%;background:linear-gradient(135deg,#d6ec6a,#6aa012);color:#10200a;font-size:30px;font-weight:800;box-shadow:0 0 0 8px rgba(195,219,85,.25);animation:rlhPop .4s ease}
.rlh-done-t{margin:18px 0 18px;font-size:15px;line-height:1.6;color:#1b1c1f}
.rlh-again{border:2px solid #e1e5d6;background:#fff;border-radius:12px;padding:10px 20px;font-size:13px;font-weight:600;line-height:1;font-family:inherit;cursor:pointer;color:#1b1c1f}
.rlh-again:hover{border-color:var(--rl-primary,#c3db55)}
@keyframes rlhFade{from{opacity:0}}
@keyframes rlhPop{from{opacity:0;transform:translateY(18px) scale(.96)}}
@keyframes rlhIn{from{opacity:0;transform:translateY(8px)}}
@keyframes rlhDot{0%,60%,100%{transform:translateY(0);opacity:.5}30%{transform:translateY(-4px);opacity:1}}
@media(max-width:520px){.rlh{align-items:flex-end;padding:0}.rlh-box{width:100%;max-height:92vh;border-radius:24px 24px 0 0}.rlh-row{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.rlh-box,.rlh-backdrop,.rlh-b,.rlh-check,.rlh-typing i{animation:none}}
