.rg-contact-rail{position:fixed;right:18px;bottom:28px;z-index:150;display:flex;flex-direction:column;gap:8px;padding:10px;background:#f8faffed;border:1px solid #d9e1f5;border-radius:22px;box-shadow:0 10px 35px #29365022;backdrop-filter:blur(16px)}
.rg-contact-rail a,.rg-contact-rail button{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid #d5dff1;border-radius:14px;background:#eef3ff;color:#5378bc;text-decoration:none;font:600 18px Arial;cursor:pointer}.rg-contact-rail a:nth-child(2){background:#f1e9fc;color:#9565bd}.rg-contact-rail a:nth-child(3){background:#e7f6f0;color:#398b7c}.rg-contact-rail a:nth-child(4){background:#f0ebfa;color:#9265b0}.rg-contact-rail button{background:linear-gradient(140deg,#5876c7,#9066b8);color:white}.rg-contact-rail svg{width:22px;height:22px}
.rg-chat{position:fixed;inset:auto 98px 28px auto;width:min(390px,calc(100vw - 24px));max-height:calc(100dvh - 36px);padding:0;border:1px solid #d7e0f2;border-radius:24px;color:#2b3650;background:#f6f9ff;box-shadow:0 24px 90px #25364844;font-family:Golos,Arial,sans-serif}.rg-chat::backdrop{background:#25364833;backdrop-filter:blur(3px)}
.rg-chat-head{display:flex;align-items:center;justify-content:space-between;padding:20px;background:linear-gradient(120deg,#e8efff,#f0e8fa,#e7f5f0);border-bottom:1px solid #dce3f1}.rg-chat-head strong{font-size:18px}.rg-chat-head small{display:block;font-size:12px;color:#62738c;margin-top:3px}.rg-chat-close{border:0;background:#fff9;border-radius:50%;width:32px;height:32px;font-size:22px;color:#53677b;cursor:pointer}
.rg-chat-log{padding:20px;display:flex;flex-direction:column;gap:12px;max-height:38dvh;min-height:120px;overflow:auto}.rg-chat-bubble{max-width:90%;padding:12px 15px;border-radius:16px 16px 16px 4px;background:white;border:1px solid #dfe6f3;font-size:14px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}.rg-chat-bubble--user{align-self:flex-end;border-radius:16px 16px 4px 16px;background:#e9e9fa}
.rg-chat-compose{padding:0 20px 20px}.rg-chat-compose label{display:block;font-size:12px;color:#62738c;margin-bottom:8px}.rg-chat-compose input:not([type=checkbox]),.rg-chat-compose textarea{width:100%;box-sizing:border-box;padding:12px;border:1px solid #c8d5ec;border-radius:12px;background:white;color:#253648;font:14px Golos,Arial,sans-serif}.rg-chat-compose textarea{resize:vertical;min-height:82px}.rg-chat-actions{display:flex;gap:8px;margin-top:12px}.rg-chat-actions button{flex:1;padding:11px;border:1px solid #bccce9;border-radius:12px;background:linear-gradient(110deg,#e6edff,#eee5fa,#e0f3ec);color:#2b3650;font:500 14px Golos,Arial,sans-serif;cursor:pointer}.rg-chat-actions button:disabled{opacity:.5;cursor:wait}.rg-chat-consent{display:flex!important;gap:8px;align-items:flex-start;line-height:1.5}.rg-chat-consent input{margin-top:3px}.rg-chat-error{color:#aa3448;font-size:12px;margin:8px 0}.rg-chat-note{font-size:11px;color:#62738c;margin:10px 0 0}.rg-chat-compose a{color:#5876c7}
@media(max-width:600px){.rg-contact-rail{right:10px;bottom:12px;gap:6px;padding:7px}.rg-contact-rail a,.rg-contact-rail button{width:38px;height:38px}.rg-chat{inset:auto 12px 12px 12px;width:auto;max-height:calc(100dvh - 24px)}.rg-chat-log{max-height:35dvh}.footer{padding-right:70px}}
/* Transparent contact rail and a full application form inside the popup. */
.rg-contact-rail{background:transparent;border:0;box-shadow:none;backdrop-filter:none;padding:0;gap:10px}
.rg-contact-rail a,.rg-contact-rail button{box-shadow:0 4px 14px #25364815}
.rg-contact-rail .rg-phone-button{background:#e7f6f0;color:#398b7c;border-color:#b5dfd4}
.rg-contact-rail .rg-request-button{background:linear-gradient(140deg,#5876c7,#9066b8);color:white}
.rg-chat{overflow:auto}.rg-request-form{padding:20px}.rg-request-form>label:not(:first-child){margin-top:16px}.rg-request-form>label>span{font-weight:400}.rg-request-form .rg-chat-consent{font-size:11px}.rg-phone-view{padding:24px}.rg-phone-view p{font-size:14px;line-height:1.6;color:#53677b}.rg-phone-number{display:block;margin:12px 0 24px;font-size:25px;font-weight:600;color:#487eb5;text-decoration:none;white-space:nowrap}.rg-callback{display:block;width:100%;margin-top:18px;padding:13px;border:1px solid #bccce9;border-radius:12px;background:linear-gradient(110deg,#e6edff,#eee5fa,#e0f3ec);color:#2b3650;font:500 14px Golos,Arial,sans-serif;cursor:pointer}
.rg-email-field{margin-top:16px}.rg-contact-hint{font-size:11px;line-height:1.5;color:#62738c;margin-top:8px}.header-messengers a.header-phone{color:#398b7c;background:linear-gradient(145deg,#f6fcf9,#e0f3ec);border-color:#b5dfd4}
.rg-phone-view:not([hidden]){padding-bottom:0}.rg-phone-view:not([hidden])+.rg-request-form{padding-top:16px}.rg-phone-number{margin-bottom:14px}
/* Compact popup: all fields remain visible on typical laptop screens. */
.rg-chat{box-sizing:border-box;width:min(360px,calc(100vw - 24px));max-height:calc(100dvh - 24px);bottom:12px;border-radius:18px;margin:0;overscroll-behavior:contain;scrollbar-width:thin}
.rg-chat-head{position:sticky;top:0;z-index:1;padding:13px 16px;background:linear-gradient(120deg,#e8efff,#f0e8fa,#e7f5f0)}
.rg-chat-head strong{font-size:16px}.rg-chat-head small{font-size:11px;margin-top:2px}
.rg-request-form{padding:14px 16px}.rg-request-form label{font-size:11px;margin-bottom:5px}.rg-request-form>label:not(:first-child){margin-top:10px}.rg-email-field{margin-top:10px}
.rg-request-form input:not([type=checkbox]),.rg-request-form textarea{padding:9px 10px;font-size:13px;border-radius:10px}.rg-request-form textarea{min-height:58px;height:58px}
.rg-contact-hint{font-size:10px;margin:5px 0 0}.rg-request-form .rg-chat-consent{font-size:10px;line-height:1.4;margin-top:10px}.rg-chat-actions{margin-top:10px}.rg-chat-actions button{padding:10px}.rg-chat-note{font-size:10px;line-height:1.4;margin-top:7px}
.rg-phone-view{padding:14px 16px 0}.rg-phone-view p{font-size:12px}.rg-phone-number{font-size:23px;margin:7px 0 10px}.rg-phone-view:not([hidden])+.rg-request-form{padding-top:10px}
@media(max-width:600px){.rg-chat{inset:auto 12px 12px;width:calc(100vw - 24px)}.rg-request-form input:not([type=checkbox]),.rg-request-form textarea{font-size:16px}}
.rg-chat--callback{width:min(340px,calc(100vw - 24px))}
.rg-chat--callback .rg-chat-head{padding:12px 16px}.rg-chat--callback .rg-chat-head strong{font-size:16px}
.rg-chat--callback .rg-phone-view{padding:12px 16px 0}.rg-chat--callback .rg-phone-view p{font-size:12px;line-height:1.45}
.rg-chat--callback .rg-phone-number{font-size:18px;font-weight:550;line-height:1.4;margin:6px 0 12px}
.rg-chat--callback .rg-request-form{padding:10px 16px 14px}.rg-chat--callback .rg-request-form>label:not(:first-child){margin-top:9px}
@media(max-width:600px){.rg-chat--callback{width:calc(100vw - 24px)}}
/* Callback heading and Larisa's details form one unified contact card. */
.rg-chat--callback .rg-chat-head{align-items:flex-start;padding:15px 16px 13px}
.rg-chat--callback .rg-chat-head>div{flex:1;min-width:0}.rg-chat--callback .rg-chat-close{position:absolute;right:12px;top:12px}
.rg-chat--callback #rg-chat-title{display:block;padding-right:32px;margin-bottom:12px;font-size:15px}
.rg-head-contact{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:10px;border-top:1px solid #cbd6e788}
.rg-head-contact b{display:block;font-size:13px;font-weight:600}.rg-head-contact small{display:block!important;font-size:10px;margin-top:2px;color:#62738c}
.rg-head-contact a{font-size:14px;font-weight:600;letter-spacing:-.25px;text-decoration:none;color:#5876c7;white-space:nowrap}
.rg-chat--callback .rg-phone-view>p:first-child,.rg-chat--callback .rg-phone-view>.rg-phone-number{display:none}
.rg-chat--callback .rg-phone-view{padding-top:12px}
/* Match the header contact buttons on hover. */
.rg-contact-rail a,.rg-contact-rail button{transition:transform .2s,box-shadow .2s;box-shadow:inset 0 1px 0 #fff,0 3px 10px #3765860c}
@media(hover:hover){.rg-contact-rail a:hover,.rg-contact-rail button:hover{transform:translateY(-2px);box-shadow:inset 0 1px 0 white,0 5px 14px #42658a20}}
@media(prefers-reduced-motion:reduce){.rg-contact-rail a,.rg-contact-rail button{transition:none}}
/* Same upward motion, with a stronger hover shade on each contact channel. */
@media(hover:hover){.rg-contact-rail a:hover,.rg-contact-rail button:hover{transform:translateY(-3px);filter:brightness(.91);box-shadow:inset 0 1px 0 #fff9,0 7px 18px #42658a35}}
.rg-contact-rail a,.rg-contact-rail button{transition:transform .2s,filter .2s,box-shadow .2s}
.corporate-email-pending{display:grid;grid-template-columns:22px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:48px;padding:12px 14px;border:1px solid #decdf2;border-radius:13px;background:linear-gradient(115deg,#fff,#f0e5fa);color:#53677b;font-size:13px}
.corporate-email-pending svg{width:20px;height:20px;color:#9967b7}.corporate-email-pending small{font-size:10px;color:#8c729c}.corporate-email-pending>span{min-width:0}
@media(prefers-reduced-motion:reduce){.rg-contact-rail a,.rg-contact-rail button{transition:none}}

.rg-request-form .rg-chat-policy{font-size:10px;line-height:1.4;margin:0 0 8px 24px;color:#62738c}
