#homecoder-ai-launch {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99999;
  padding: 14px 20px;
  border: 0;
  border-radius: 40px;
  background: linear-gradient(135deg,#1677ff,#00b894);
  color: white;
  font: 600 15px system-ui,sans-serif;
  cursor: pointer;
  box-shadow: 0 8px 30px #0005;
}
#homecoder-ai-panel {
  position: fixed;
  right: 20px;
  bottom: 85px;
  width: min(390px,calc(100vw - 24px));
  height: min(540px,calc(100dvh - 110px));
  z-index: 99999;
  background: #101827;
  color: white;
  border: 1px solid #ffffff30;
  border-radius: 18px;
  box-shadow: 0 20px 60px #0008;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font: 14px system-ui,sans-serif;
}
#homecoder-ai-panel[hidden] { display: none; }

#hc-ai-lead-form:not([hidden]) {
  display: grid;
}

#hc-ai-lead-form[hidden] {
  display: none;
}

#hc-ai-lead-form input:not([type="checkbox"]),
#hc-ai-lead-form select,
#hc-ai-lead-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid #aaa;
  border-radius: 8px;
  font: inherit;
}

/* HomeCoder AI 2.0 — scrollable lead form */
#hc-ai-lead-form:not([hidden]) {
  overflow-y: auto;
  min-height: 0;
  flex: 0 1 auto;
  max-height: 55%;
  overscroll-behavior: contain;
}

#hc-ai-lead-form > button[type="submit"] {
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  background: #1677ff;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

#hc-ai-lead-form > label {
  font-size: 12px;
  line-height: 1.5;
}
