/* Hide when [hidden] is set */
#vc-consult-popup[hidden] { display: none !important; }

/* Overlay container */
#vc-consult-popup.vc-popup {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: 16px;
}

/* Dark overlay */
#vc-consult-popup .vc-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
}

/* Modal box */
#vc-consult-popup .vc-popup-content {
  position: relative;
  width: min(820px, 96vw);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  padding: 22px 22px 18px;
  z-index: 1;
}

/* Close button */
#vc-consult-popup .vc-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: #f2f4f7;
  color: #111;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
#vc-consult-popup .vc-popup-close:hover {
  background: #e7ebf0;
}

/* Form layout */
#vc-consult-form {
  margin-top: 8px;
}

/* Grid for fields */
#vc-consult-form .vc-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

/* Field wrapper */
#vc-consult-form .vc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#vc-consult-form label {
  font-size: 13px;
  color: #344054;
}

/* Inputs */
#vc-consult-form input,
#vc-consult-form textarea,
#vc-consult-form select {
  width: 100%;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  background: #fff;
}

#vc-consult-form textarea {
  min-height: 110px;
  resize: vertical;
}

#vc-consult-form input:focus,
#vc-consult-form textarea:focus,
#vc-consult-form select:focus {
  border-color: #98a2b3;
  box-shadow: 0 0 0 4px rgba(152, 162, 179, .25);
}

/* Actions row */
#vc-consult-form .vc-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

/* Submit button */
#vc-consult-form button[type="submit"] {
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
}

/* Make it responsive */
@media (max-width: 760px) {
  #vc-consult-popup .vc-popup-content {
    width: 100%;
    padding: 18px 16px 14px;
  }

  #vc-consult-form .vc-form-grid {
    grid-template-columns: 1fr;
  }

  #vc-consult-form .vc-actions {
    justify-content: stretch;
  }

  #vc-consult-form button[type="submit"] {
    width: 100%;
  }
}
a.button,
a.button.alt {
  display: inline-block;
  text-decoration: none;
}
.vc-actions a.button:link,
.vc-actions a.button:visited,
.vc-actions a.button:hover,
.vc-actions a.button:active {
  text-decoration: none !important;
}
.vc-actions a.button:hover,
.vc-actions button:hover{
    background-color: black;
    color: white;
}
.vc-actions a.button:active,
.vc-actions button:active{
    background-color: grey;
    color: white;
}
.vc-chat { border: 1px solid #e6e6e6; border-radius: 14px; padding: 12px; margin-top: 16px; background: #fff; }
.vc-chat-log { height: 320px; overflow-y: auto; padding: 10px; border-radius: 12px; background: #fafafa; border: 1px solid #f0f0f0; }

.vc-msg { display:flex; margin: 10px 0; }
.vc-msg.vc-user { justify-content:flex-end; }
.vc-msg.vc-assistant { justify-content:flex-start; }

.vc-bubble { max-width: 82%; border-radius: 14px; padding: 10px 12px; border: 1px solid #eee; background:#fff; box-shadow: 0 1px 0 rgba(0,0,0,.03); }
.vc-user .vc-bubble { background:#f5f7ff; border-color:#e7ecff; }

.vc-meta { font-size: 12px; opacity: .65; margin-bottom: 6px; }
.vc-text { white-space: pre-wrap; line-height: 1.35; }

.vc-chat-controls { display:flex; gap:10px; margin-top:10px; align-items:stretch; }
#vc-chat-input { flex:1; padding: 10px 12px; border-radius: 12px; border:1px solid #ddd; outline:none; }
#vc-chat-input:focus { border-color:#bbb; }

#vc-chat-send, .vc-secondary {
  padding: 10px 14px; border-radius: 12px; border:1px solid #ddd; background:#fff; cursor:pointer;
}
#vc-chat-send.is-loading { opacity:.7; cursor:wait; }

.vc-secondary { opacity:.85; }

/* typing dots */
.vc-dots { display:inline-flex; gap:6px; align-items:center; }
.vc-dots i { width:6px; height:6px; border-radius:50%; background:#999; display:inline-block; animation: vcDot 1s infinite ease-in-out; }
.vc-dots i:nth-child(2) { animation-delay: .15s; }
.vc-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes vcDot { 0%, 80%, 100% { transform: translateY(0); opacity:.5; } 40% { transform: translateY(-3px); opacity:1; } }

@media (max-width: 600px) {
  .vc-chat-log { height: 260px; }
  .vc-chat-controls { flex-direction: column; }
  #vc-chat-send, .vc-secondary { width: 100%; }
}
