/* PHD Services chatbot - refreshed premium responsive UI */
#phdsc-widget{font-family:Inter,Arial,sans-serif!important;font-size:14px!important;position:fixed!important;right:24px!important;bottom:24px!important;z-index:999999!important;color:#172b45!important;line-height:1.4!important}
#phdsc-widget *{box-sizing:border-box}
#phdsc-launch{appearance:none!important;display:flex!important;align-items:center!important;gap:12px!important;position:relative!important;isolation:isolate!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important;box-shadow:none!important;cursor:pointer!important;transform:translateZ(0);animation:phdsc-float 3.2s ease-in-out infinite}
#phdsc-launch .phdsc-launch-label{display:flex!important;align-items:center!important;justify-content:center!important;height:48px!important;min-width:70px!important;padding:0 20px!important;border:1px solid rgba(15,40,75,.06)!important;border-radius:15px!important;background:#fff!important;color:#21344c!important;font-size:14px!important;font-weight:700!important;box-shadow:0 8px 26px rgba(13,35,66,.16)!important;transition:all .25s ease!important}
#phdsc-launch .phdsc-launch-icon{display:flex!important;align-items:center!important;justify-content:center!important;position:relative!important;width:62px!important;height:62px!important;flex:0 0 62px!important;border-radius:50%!important;background:linear-gradient(145deg,#3d6bff,#1745e8)!important;box-shadow:0 9px 25px rgba(37,83,245,.38)!important;transition:transform .28s cubic-bezier(.2,.8,.2,1),box-shadow .28s ease!important}
#phdsc-launch .phdsc-launch-icon:before{content:""!important;position:absolute!important;inset:-7px!important;border:2px solid rgba(48,91,255,.32)!important;border-radius:50%!important;animation:phdsc-ring 2.4s ease-out infinite!important}
#phdsc-launch .phdsc-launch-icon:after{content:""!important;position:absolute!important;top:-30%;bottom:-30%;left:-60%;width:42%!important;background:rgba(255,255,255,.24)!important;transform:rotate(25deg)!important;animation:phdsc-shine 3.8s ease-in-out infinite!important}
#phdsc-launch .phdsc-launch-icon svg{display:block!important;width:31px!important;height:31px!important;fill:none!important;stroke:#fff!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important}
#phdsc-launch:hover .phdsc-launch-label{transform:translateY(-2px)!important;box-shadow:0 12px 30px rgba(13,35,66,.2)!important;color:#214de9!important}
#phdsc-launch:hover .phdsc-launch-icon{transform:scale(1.09) rotate(-5deg)!important;box-shadow:0 13px 32px rgba(37,83,245,.46)!important}
#phdsc-launch:focus-visible{outline:3px solid rgba(48,91,255,.35)!important;outline-offset:6px!important;border-radius:40px!important}
#phdsc-widget.phdsc-open #phdsc-launch{opacity:0!important;visibility:hidden!important;pointer-events:none!important;transform:translateY(12px) scale(.82)!important;animation:none!important}
#phdsc-panel{appearance:none!important;position:absolute!important;right:0!important;bottom:82px!important;width:370px!important;max-width:calc(100vw - 28px)!important;height:500px!important;max-height:calc(100dvh - 115px)!important;min-height:390px!important;margin:0!important;padding:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;border:1px solid rgba(20,50,85,.1)!important;border-radius:20px!important;background:#fff!important;box-shadow:0 18px 55px rgba(11,31,58,.24)!important;transform-origin:bottom right!important;animation:phdsc-pop .34s cubic-bezier(.16,1,.3,1) both!important}
#phdsc-panel[hidden],#phdsc-lead[hidden],#phdsc-chat-form[hidden]{display:none!important}
#phdsc-panel.phdsc-closing{animation:phdsc-close .18s ease both!important}
#phdsc-panel header{display:flex!important;align-items:center!important;gap:11px!important;flex:0 0 72px!important;min-height:72px!important;height:72px!important;padding:12px 16px!important;margin:0!important;border:0!important;border-radius:0!important;background:linear-gradient(120deg,#10385f,#174f7f 60%,#2456bd)!important;color:#fff!important;box-shadow:0 4px 16px rgba(8,35,67,.15)!important}
#phdsc-panel .phdsc-brand-mark{width:38px!important;height:38px!important;flex:0 0 38px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:3px!important;border:1px solid rgba(255,255,255,.22)!important;border-radius:12px!important;background:rgba(255,255,255,.13)!important}
#phdsc-panel .phdsc-brand-mark span{width:4px!important;border-radius:4px!important;background:#fff!important;animation:phdsc-wave 1s ease-in-out infinite!important}
#phdsc-panel .phdsc-brand-mark span:nth-child(1){height:11px!important}
#phdsc-panel .phdsc-brand-mark span:nth-child(2){height:19px!important;animation-delay:.13s!important}
#phdsc-panel .phdsc-brand-mark span:nth-child(3){height:14px!important;animation-delay:.26s!important}
#phdsc-panel .phdsc-heading{display:flex!important;flex:1!important;flex-direction:column!important;gap:3px!important;min-width:0!important}
#phdsc-panel .phdsc-heading b{display:block!important;margin:0!important;padding:0!important;color:#fff!important;font-size:14px!important;font-weight:700!important;line-height:1.25!important}
#phdsc-panel .phdsc-heading small{display:block!important;color:rgba(255,255,255,.75)!important;font-size:11px!important;line-height:1.2!important}
#phdsc-panel header button{display:flex!important;align-items:center!important;justify-content:center!important;width:34px!important;height:34px!important;flex:0 0 34px!important;margin:0!important;padding:0!important;border:0!important;border-radius:50%!important;background:rgba(255,255,255,.1)!important;color:#fff!important;font-size:23px!important;line-height:1!important;cursor:pointer!important;transition:all .2s ease!important}
#phdsc-panel header button:hover{background:rgba(255,255,255,.23)!important;transform:rotate(90deg)!important}
#phdsc-messages{display:block!important;flex:1 1 auto!important;min-height:100px!important;max-height:none!important;overflow-y:auto!important;overscroll-behavior:contain!important;padding:14px!important;margin:0!important;background:linear-gradient(135deg,#f5f8fc,#eef3f9)!important;scroll-behavior:smooth!important}
#phdsc-messages p{display:table!important;width:auto!important;max-width:91%!important;margin:0 0 10px!important;padding:11px 13px!important;border:1px solid rgba(24,55,90,.055)!important;border-radius:4px 14px 14px 14px!important;background:#fff!important;color:#26384e!important;font-size:13px!important;font-weight:400!important;line-height:1.5!important;white-space:pre-wrap!important;overflow-wrap:anywhere!important;box-shadow:0 3px 12px rgba(22,42,70,.055)!important;animation:phdsc-message .25s ease both!important}
#phdsc-messages p.phdsc-user{margin-left:auto!important;margin-right:0!important;border-color:rgba(40,85,245,.08)!important;border-radius:14px 4px 14px 14px!important;background:linear-gradient(145deg,#e7f1ff,#d8e8ff)!important;color:#1b3760!important}
#phdsc-messages p.phdsc-typing{display:flex!important;align-items:center!important;gap:5px!important;min-width:55px!important;min-height:38px!important}
#phdsc-messages .phdsc-typing span{display:block!important;width:7px!important;height:7px!important;border-radius:50%!important;background:#6582ba!important;animation:phdsc-dot .85s infinite ease-in-out!important}
#phdsc-messages .phdsc-typing span:nth-child(2){animation-delay:.15s!important}
#phdsc-messages .phdsc-typing span:nth-child(3){animation-delay:.3s!important}
#phdsc-lead,#phdsc-chat-form{display:grid!important;flex:0 0 auto!important;gap:8px!important;padding:12px!important;margin:0!important;border:0!important;border-top:1px solid #e8eef5!important;border-radius:0!important;background:#fff!important}
#phdsc-lead p{margin:0 0 2px!important;padding:0!important;color:#304158!important;font-size:13px!important;line-height:1.4!important}
#phdsc-lead input,#phdsc-lead select,#phdsc-chat-form input{display:block!important;width:100%!important;height:43px!important;min-height:43px!important;max-height:43px!important;margin:0!important;padding:0 12px!important;border:1px solid #d8e1ec!important;border-radius:9px!important;background:#fff!important;color:#1d2d43!important;font-family:inherit!important;font-size:14px!important;line-height:normal!important;box-shadow:none!important;transition:border-color .2s ease,box-shadow .2s ease!important}
#phdsc-lead input:focus,#phdsc-lead select:focus,#phdsc-chat-form input:focus{outline:none!important;border-color:#4774ff!important;box-shadow:0 0 0 3px rgba(40,85,245,.11)!important}
#phdsc-lead button,#phdsc-chat-form button{display:block!important;width:100%!important;height:45px!important;margin:0!important;padding:0 14px!important;border:0!important;border-radius:9px!important;background:linear-gradient(100deg,#e87924,#f29138)!important;color:#fff!important;font-family:inherit!important;font-size:14px!important;font-weight:700!important;line-height:45px!important;box-shadow:0 5px 14px rgba(232,121,36,.2)!important;cursor:pointer!important;transition:transform .2s ease,box-shadow .2s ease!important}
#phdsc-lead button:hover,#phdsc-chat-form button:hover{transform:translateY(-2px)!important;box-shadow:0 8px 18px rgba(232,121,36,.28)!important}
#phdsc-panel footer{display:block!important;flex:0 0 auto!important;margin:0!important;padding:8px 8px 10px!important;border:0!important;border-top:1px solid #f0f3f7!important;background:#fff!important;color:#607087!important;text-align:center!important;font-size:10px!important;line-height:1.3!important}
#phdsc-panel footer a{color:#174d7b!important;text-decoration:none!important;font-weight:700!important}
@keyframes phdsc-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
@keyframes phdsc-ring{0%{transform:scale(.82);opacity:.8}75%,100%{transform:scale(1.35);opacity:0}}
@keyframes phdsc-shine{0%,68%{left:-60%}88%,100%{left:140%}}
@keyframes phdsc-pop{from{opacity:0;transform:translateY(18px) scale(.94)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes phdsc-close{to{opacity:0;transform:translateY(10px) scale(.97)}}
@keyframes phdsc-wave{0%,100%{transform:scaleY(.65)}50%{transform:scaleY(1)}}
@keyframes phdsc-message{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@keyframes phdsc-dot{0%,60%,100%{transform:translateY(0);opacity:.4}30%{transform:translateY(-5px);opacity:1}}
@media(max-width:600px){
 #phdsc-widget{right:14px!important;bottom:16px!important}
 #phdsc-panel{right:0!important;bottom:76px!important;width:min(390px,calc(100vw - 28px))!important;height:min(520px,calc(100dvh - 105px))!important;min-height:360px!important}
 #phdsc-launch .phdsc-launch-label{height:43px!important;min-width:62px!important}
 #phdsc-launch .phdsc-launch-icon{width:56px!important;height:56px!important;flex-basis:56px!important}
}
@media(prefers-reduced-motion:reduce){
 #phdsc-launch,#phdsc-launch .phdsc-launch-icon:before,#phdsc-launch .phdsc-launch-icon:after,#phdsc-panel,.phdsc-brand-mark span,#phdsc-messages p,#phdsc-messages .phdsc-typing span{animation:none!important;transition:none!important}
}
