:root{
  --code9-contact-modal-muted:#5c5a55;
  --code9-contact-modal-radius:28px;
  --code9-contact-modal-mono:"SFMono-Regular","IBM Plex Mono","Menlo",monospace;
}

.code9-ai-bots__modal-overlay{
  position:fixed;
  inset:0;
  z-index:900;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
  background:rgba(0,0,0,.55);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  opacity:0;
  pointer-events:none;
  transition:opacity .28s ease;
}

.code9-ai-bots__modal-overlay.is-open{
  opacity:1;
  pointer-events:auto;
}

.code9-ai-bots__modal-box{
  position:relative;
  width:100%;
  max-width:560px;
  max-height:90vh;
  overflow-y:auto;
  border-radius:var(--code9-contact-modal-radius);
  background:#fff;
  color:#050505;
  box-shadow:0 40px 100px rgba(0,0,0,.22), 0 8px 32px rgba(0,0,0,.12);
  transform:translateY(24px) scale(.97);
  transition:transform .3s cubic-bezier(.22,1,.36,1);
  scrollbar-width:thin;
  scrollbar-color:rgba(0,0,0,.18) transparent;
}

.code9-ai-bots__modal-overlay.is-open .code9-ai-bots__modal-box{
  transform:translateY(0) scale(1);
}

.code9-ai-bots__modal-box::-webkit-scrollbar{
  width:4px;
}

.code9-ai-bots__modal-box::-webkit-scrollbar-thumb{
  background:rgba(0,0,0,.18);
  border-radius:4px;
}

.code9-ai-bots__modal-close{
  position:absolute;
  top:20px;
  right:20px;
  z-index:10;
  display:flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  border:1px solid rgba(0,0,0,.12);
  border-radius:50%;
  background:#fff;
  color:#050505;
  cursor:pointer;
  transition:background .16s ease, border-color .16s ease;
}

.code9-ai-bots__modal-close:hover{
  background:#f4cf53;
  border-color:#f4cf53;
}

.code9-ai-bots__modal-close svg{
  width:18px;
  height:18px;
}

.code9-ai-bots__modal-pane{
  padding:36px 36px 32px;
}

.code9-ai-bots__modal-title{
  margin:10px 0 0;
  font-size:clamp(1.9rem, 4vw, 2.8rem);
  line-height:.92;
  letter-spacing:-.06em;
}

.code9-ai-bots__modal-sub{
  margin:12px 0 0;
  color:var(--code9-contact-modal-muted);
  font-size:15px;
  line-height:1.55;
}

.code9-ai-bots__modal-form{
  display:flex;
  flex-direction:column;
  gap:18px;
  margin-top:26px;
}

.code9-ai-bots__mfield{
  display:flex;
  flex-direction:column;
  gap:7px;
}

.code9-ai-bots__mfield-label{
  margin:0;
  color:var(--code9-contact-modal-muted);
  font-family:var(--code9-contact-modal-mono);
  font-size:11px;
  font-weight:600;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.code9-ai-bots__mfield-input{
  width:100%;
  height:52px;
  padding:0 16px;
  border:1.5px solid rgba(0,0,0,.15);
  border-radius:16px;
  background:#fff;
  color:#050505;
  font:inherit;
  font-size:16px;
  outline:none;
  transition:border-color .18s ease, box-shadow .18s ease;
}

.code9-ai-bots__mfield-input:focus{
  border-color:#050505;
  box-shadow:0 0 0 3px rgba(0,0,0,.06);
}

.code9-ai-bots__mfield-input::placeholder{
  color:rgba(0,0,0,.3);
}

.code9-ai-bots__mfield-input.has-error{
  border-color:#ef4444;
  box-shadow:0 0 0 3px rgba(239,68,68,.1);
}

.code9-ai-bots__field-err{
  display:block;
  margin-top:5px;
  color:#ef4444;
  font-size:12px;
  line-height:1.4;
}

.code9-ai-bots__req-star{
  color:#ef4444;
  margin-left:3px;
  font-weight:700;
}

.code9-ai-bots__memail-wrap{
  position:relative;
}

.code9-ai-bots__memail-drop{
  position:absolute;
  top:calc(100% + 4px);
  left:0;
  right:0;
  z-index:50;
  margin:0;
  padding:6px;
  list-style:none;
  border:1.5px solid #050505;
  border-radius:14px;
  background:#fff;
  box-shadow:0 12px 32px rgba(0,0,0,.12);
  overflow:hidden;
}

.code9-ai-bots__memail-opt{
  padding:10px 14px;
  border-radius:9px;
  font-size:15px;
  color:#050505;
  cursor:pointer;
  transition:background .12s ease;
}

.code9-ai-bots__memail-opt:hover,
.code9-ai-bots__memail-opt.is-focused{
  background:#f4cf53;
}

.code9-ai-bots__memail-opt span{
  color:rgba(0,0,0,.38);
}

.code9-ai-bots__ch-picks{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}

.code9-ai-bots__ch-pick{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:14px 8px;
  border:1.5px solid rgba(0,0,0,.14);
  border-radius:16px;
  background:#fff;
  color:#050505;
  font-size:12px;
  font-weight:600;
  text-align:center;
  cursor:pointer;
  transition:border-color .16s ease, background .16s ease, transform .12s ease;
}

.code9-ai-bots__ch-pick-icon{
  width:28px;
  height:28px;
  flex:0 0 28px;
  border-radius:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:transparent;
  box-shadow:none;
}

.code9-ai-bots__ch-pick-icon svg,
.code9-ai-bots__ch-pick-icon img{
  width:28px;
  height:28px;
  flex-shrink:0;
  display:block;
}

.code9-ai-bots__ch-pick-icon--max img{
  width:28px;
  height:28px;
}

.code9-ai-bots__ch-pick-icon--email{
  color:#050505;
}

.code9-ai-bots__ch-pick:hover{
  border-color:#050505;
  transform:translateY(-2px);
}

.code9-ai-bots__ch-pick.is-active{
  border-color:#050505;
  background:#050505;
  color:#fff;
}

.code9-ai-bots__ch-pick[data-ch="whatsapp"]:not(.is-active){
  color:#25D366;
  border-color:rgba(37,211,102,.3);
}

.code9-ai-bots__ch-pick[data-ch="telegram"]:not(.is-active){
  color:#26A5E4;
  border-color:rgba(38,165,228,.3);
}

.code9-ai-bots__ch-pick[data-ch="max"]:not(.is-active){
  color:#8B5CF6;
  border-color:rgba(139,92,246,.3);
}

.code9-ai-bots__ch-pick[data-ch="whatsapp"].is-active{
  background:#25D366;
  border-color:#25D366;
  color:#fff;
}

.code9-ai-bots__ch-pick[data-ch="telegram"].is-active{
  background:#26A5E4;
  border-color:#26A5E4;
  color:#fff;
}

.code9-ai-bots__ch-pick[data-ch="max"].is-active{
  background:linear-gradient(135deg, #8B5CF6 0%, #6D7CF5 60%, #60A5FA 100%);
  border-color:#8B5CF6;
  color:#fff;
}

.code9-ai-bots__modal-box .code9-legal-form{
  width:100%;
  display:grid;
  gap:10px;
}

.code9-ai-bots__modal-box .code9-legal-check{
  width:100%;
  display:flex;
  gap:10px;
  align-items:flex-start;
  justify-content:flex-start;
  flex-wrap:nowrap;
}

.code9-ai-bots__modal-box .code9-legal-check__text{
  display:block;
  flex:1 1 auto;
  min-width:0;
  width:auto;
  max-width:none;
  white-space:normal !important;
  overflow-wrap:break-word;
  word-break:normal !important;
  line-height:1.55;
}

.code9-ai-bots__modal-box .code9-legal-check a{
  display:inline;
  white-space:normal !important;
}

.code9-ai-bots__modal-box .code9-legal-check__box{
  flex:0 0 18px;
}

.code9-ai-bots__modal-box .code9-legal-form__error{
  margin:2px 0 0 28px;
}

.code9-ai-bots__modal-footer{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:26px;
}

.code9-ai-bots__modal-footer .code9-legal-page__contact-cta{
  width:100%;
  min-height:52px;
  border-radius:16px;
  align-self:stretch;
  cursor:pointer;
  appearance:none;
  -webkit-appearance:none;
  font:inherit;
}

.code9-ai-bots__modal-footer button.code9-legal-page__contact-cta{
  border:1px solid rgba(255,255,255,.16);
}

@media (max-width:600px){
  .code9-ai-bots__modal-pane{
    padding:28px 20px 24px;
  }

  .code9-ai-bots__ch-picks{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .code9-ai-bots__modal-title{
    font-size:clamp(1.7rem, 9vw, 2.2rem);
  }
}
