/* Same contact controls for company pages, platform examples and inline lead forms. */
#embomix-contact {
  position:fixed; right:max(24px,env(safe-area-inset-right)); bottom:max(24px,env(safe-area-inset-bottom));
  z-index:150; color:#263e52; font:14px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;
}
#embomix-contact *, .emc-form-host, .emc-form-host * { box-sizing:border-box; }
#embomix-contact [hidden], .emc-form-host [hidden] { display:none!important; }
.emc-form-host { color:#263e52; }
.emc-panel {
  position:absolute; right:0; bottom:66px; width:min(390px,calc(100vw - 36px)); padding:24px;
  max-height:calc(100vh - 112px); max-height:calc(100dvh - 112px);
  overflow:auto; overscroll-behavior:contain; border:1px solid var(--glass-edge,#ffffffed); border-radius:24px;
  background:rgba(245,249,253,.93); box-shadow:inset 0 1px 1px #fff,0 0 0 1px #9aafc658,0 18px 48px #274d7529;
  -webkit-backdrop-filter:blur(22px) saturate(130%); backdrop-filter:blur(22px) saturate(130%);
}
.emc-top { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 15px; }
#embomix-contact h2, .emc-result h3 { font-size:1.3rem; font-weight:650; line-height:1.35; color:#23394b; letter-spacing:-.025em; margin:0; }
.emc-intro { margin:0 0 14px; color:#4a6273; font-size:.91rem; overflow-wrap:anywhere; }
.emc-launcher, .emc-close, .emc-form-host :is(.emc-submit,.emc-again) {
  display:inline-flex; align-items:center; justify-content:center; min-height:44px; border-radius:999px;
  border:1px solid var(--glass-edge,#ffffffeb); background:var(--action-glass-fill);
  box-shadow:var(--glass-shadow,inset 0 1px 1px #fff,inset 0 -1px 2px #53667529,0 0 0 1px #52687929,0 5px 15px -9px #344c6273);
  color:var(--action-glass-ink); font:inherit; font-weight:600; line-height:1.4; text-decoration:none; text-align:center; cursor:pointer;
  -webkit-backdrop-filter:blur(14px) saturate(135%); backdrop-filter:blur(14px) saturate(135%);
  transition:background-color .16s,box-shadow .16s,color .16s,transform .16s;
}
.emc-launcher {
  --action-glass-fill:linear-gradient(145deg,rgba(84,117,142,.94),rgba(57,91,118,.91));
  --action-glass-ink:#f5f9fc;
  --action-glass-hover:linear-gradient(145deg,rgba(96,131,155,.96),rgba(66,103,132,.94));
  --action-glass-hover-ink:#fff;
  --action-glass-pressed:linear-gradient(145deg,#466982,#365a75);
  --glass-edge:#c4d9e888;
  --glass-shadow:inset 0 1px 1px #ffffff66,inset 0 -1px 2px #17395133,0 0 0 1px #46698333,0 7px 18px -9px #29475f80;
  min-height:50px; gap:9px; padding:9px 19px;
}
.emc-launcher svg { flex:none; width:22px; height:22px; }
.emc-close { width:40px; min-height:40px; padding:0; flex:none; }
.emc-close svg { width:18px; height:18px; }
.emc-launcher[aria-expanded=true] {
  background:var(--action-glass-hover); color:#fff; border-color:#d2e3efaa;
  box-shadow:var(--glass-shadow);
}
.emc-form { display:grid; gap:12px; margin:0; }
.emc-field { display:block; min-width:0; margin:0; text-align:start; color:#374e60; font-weight:500; }
.emc-field > span { display:block; margin:0 0 5px; font-size:.875rem; line-height:1.45; }
.emc-field :is(input,select,textarea) {
  display:block; width:100%; min-width:0; min-height:42px; margin:0; padding:9px 11px; border:1px solid #c4d1dc;
  border-radius:10px; color:#233849; background:#ffffffca; box-shadow:inset 0 1px 3px #344c6210;
  font:inherit; font-size:1rem; font-weight:400; line-height:1.4;
}
.emc-field select { padding-right:24px; text-overflow:ellipsis; }
.emc-field textarea { min-height:64px; max-height:180px; resize:vertical; }
.emc-form-host .emc-submit { padding:9px 22px; }
.emc-form-host .emc-file { font-size:.91rem; }
.emc-form-host .emc-again { display:flex; width:fit-content; margin:12px auto 0; padding:8px 17px; font-size:.875rem; }
.emc-status { font-size:.875rem; color:#4d6172; line-height:1.6; margin:0; overflow-wrap:anywhere; }
.emc-status:is([data-state=invalid],[data-state=failure],[data-state=unknown],[data-state=unavailable],[data-state=offline]) { color:#774528; }
.emc-result { text-align:center; padding:12px 0; }
.emc-result-message { max-width:32rem; margin:8px auto 18px; color:#4a6273; line-height:1.6; }
[data-lead-form] .emc-form { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 20px; }
[data-lead-form] .emc-form .emc-wide { grid-column:1/-1; }
[data-lead-form] .emc-form .emc-submit { justify-self:start; }
#embomix-contact :focus-visible, .emc-form-host :is(a,button,input,select,textarea):focus-visible { outline:2px solid #39759c; outline-offset:2px; }
.emc-form-host :is(.emc-submit,input,select,textarea):disabled { opacity:.65; cursor:wait; }
@media(hover:hover) {
  .emc-launcher:hover, .emc-close:hover, .emc-form-host :is(.emc-submit,.emc-again):hover:not(:disabled) {
    background:var(--action-glass-hover); color:var(--action-glass-hover-ink);
  }
}
.emc-launcher:active, .emc-close:active, .emc-form-host :is(.emc-submit,.emc-again):active:not(:disabled) {
  background:var(--action-glass-pressed);
  transform:translateY(1px); box-shadow:inset 0 1px 3px #607b913b,0 0 0 1px #9aaebd6b;
}
@media (min-width:601px) and (max-width:900px) {
  .portal-home .emc-launcher { width:46px; height:46px; min-height:46px; padding:10px; }
  .portal-home .emc-launcher span { display:none; }
}
@media(max-width:600px) {
  #embomix-contact { right:max(14px,env(safe-area-inset-right)); bottom:max(14px,env(safe-area-inset-bottom)); }
  .emc-launcher { width:46px; height:46px; min-height:46px; padding:10px; }
  .emc-launcher span { display:none; }
  .emc-panel { bottom:58px; width:min(390px,calc(100vw - 28px)); max-height:calc(100dvh - 92px - env(safe-area-inset-bottom)); padding:18px; }
  .emc-close { width:44px; min-height:44px; }
  .emc-panel .emc-top { margin-bottom:12px; }
  .emc-panel .emc-form { gap:9px; }
  [data-lead-form] .emc-form { grid-template-columns:minmax(0,1fr); }
}
@media(prefers-reduced-transparency:reduce) {
  .emc-panel { background:#f4f8fb; }
  .emc-panel,.emc-launcher,.emc-close,.emc-form-host :is(.emc-submit,.emc-again) { -webkit-backdrop-filter:none; backdrop-filter:none; }
}
@media(prefers-reduced-motion:reduce) {
  .emc-launcher,.emc-close,.emc-form-host :is(.emc-submit,.emc-again) { transition:none; }
}
#embomix-contact:has(> .emc-launcher.emc-over-action[aria-expanded="false"]:not(:focus-visible)) { visibility:hidden; }
