/* =====================
   VGK Chatbot Styles
   ===================== */

/* Toggle Button */
.vgk-chat-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #333;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  z-index: 99999;
  transition: background 0.2s;
}

.vgk-chat-toggle:hover {
  background: #555;
}

/* Chat Window */
.vgk-chat-window {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 370px;
  height: 600px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  z-index: 99998;
  overflow: hidden;
  animation: vgkSlideUp 0.22s ease;
}

@keyframes vgkSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header */
.vgk-chat-header {
  background: #2c2c2c;
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.vgk-chat-header-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #c9a84c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.vgk-chat-header-info {
  flex: 1;
}

.vgk-chat-header-info h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.vgk-chat-header-info p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #aaa;
}

.vgk-chat-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}

.vgk-chat-close:hover {
  color: #ccc;
}

/* Messages Area */
.vgk-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px;
  background: #f5f5f5;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Message Rows */
.vgk-msg-row {
  display: flex;
  flex-direction: column;
}

.vgk-msg-row.bot {
  align-items: flex-start;
}

.vgk-msg-row.user {
  align-items: flex-end;
}

.vgk-msg-meta {
  font-size: 11px;
  color: #999;
  margin-bottom: 3px;
  padding: 0 4px;
}

/* Bubbles */
.vgk-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.5;
  word-break: break-word;
}

.vgk-bubble.bot {
  background: #fff;
  color: #222;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  border-radius: 4px 12px 12px 12px;
}

.vgk-bubble.user {
  background: #555;
  color: #fff;
  border-radius: 12px 4px 12px 12px;
}

/* Chips */
.vgk-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0;
}

.vgk-chip {
  padding: 7px 16px;
  border-radius: 20px;
  border: 1.5px solid #bbb;
  background: #fff;
  color: #333;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.vgk-chip:hover:not(:disabled) {
  background: #333;
  color: #fff;
  border-color: #333;
}

.vgk-chip.selected {
  background: #333;
  color: #fff;
  border-color: #333;
}

.vgk-chip:disabled {
  opacity: 0.55;
  cursor: default;
}

/* Project Cards (legacy - kept for project-detail) */
.vgk-projects-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.vgk-project-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.09);
  overflow: hidden;
  width: 100%;
}

.vgk-project-card-logo {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
  background: #eee;
}

.vgk-project-card-body {
  padding: 10px 14px 12px;
}

.vgk-project-card-name {
  font-size: 14px;
  font-weight: 700;
  color: #222;
  margin: 0 0 4px;
}

.vgk-project-card-price {
  font-size: 12.5px;
  color: #555;
  margin: 2px 0;
}

.vgk-project-card-bhk {
  font-size: 12px;
  color: #777;
  margin: 2px 0 8px;
}

.vgk-btn-view-details {
  padding: 7px 18px;
  background: #00897b;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.15s;
}

.vgk-btn-view-details:hover {
  background: #00695c;
}

/* Project Detail */
.vgk-project-detail {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.09);
  padding: 14px;
  width: 100%;
  box-sizing: border-box;
}

.vgk-project-detail h4 {
  margin: 0 0 8px;
  font-size: 15px;
  color: #222;
}

.vgk-project-detail p {
  margin: 0 0 10px;
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}

.vgk-btn-floor-plan {
  padding: 7px 16px;
  background: #fff;
  color: #00897b;
  border: 1.5px solid #00897b;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}

.vgk-btn-floor-plan:hover {
  background: #e0f2f1;
}

/* Typing Indicator */
.vgk-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  background: #fff;
  border-radius: 4px 12px 12px 12px;
  width: fit-content;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.vgk-typing span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #bbb;
  display: inline-block;
  animation: vgkBounce 1.2s infinite ease-in-out;
}

.vgk-typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.vgk-typing span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes vgkBounce {
  0%, 80%, 100% {
    transform: translateY(0);
    background: #bbb;
  }
  40% {
    transform: translateY(-6px);
    background: #888;
  }
}

/* Lead confirm */
.vgk-lead-confirm {
  background: #e0f2f1;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13.5px;
  color: #004d40;
  line-height: 1.5;
}

/* Input Area */
.vgk-chat-input-area {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #e0e0e0;
  background: #fff;
  flex-shrink: 0;
}

.vgk-chat-input {
  flex: 1;
  padding: 9px 14px;
  border: 1.5px solid #ddd;
  border-radius: 24px;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.15s;
}

.vgk-chat-input:focus {
  border-color: #00897b;
}

.vgk-chat-send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #00897b;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}

.vgk-chat-send:hover {
  background: #00695c;
}

.vgk-chat-send:disabled {
  background: #bbb;
  cursor: default;
}

/* Scrollbar */
.vgk-chat-messages::-webkit-scrollbar {
  width: 5px;
}

.vgk-chat-messages::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

@media (max-width: 420px) {
  .vgk-chat-window {
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
  }

  .vgk-chat-toggle {
    bottom: 16px;
    right: 16px;
  }
}

/* Header logo image support */
.vgk-chat-header-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

/* =====================
   Project Slider
   ===================== */
.vgk-slider-wrap {
  position: relative;
  width: 100%;
  margin-top: 8px;
  padding: 0 20px;
  box-sizing: border-box;
}

.vgk-slider-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
}

.vgk-slider-name {
  font-size: 14px;
  font-weight: 700;
  color: #222;
  padding: 10px 14px 6px;
  margin: 0;
  text-align: center;
}

.vgk-slider-img-wrap {
  position: relative;
}

.vgk-slider-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  background: #eee;
}

.vgk-slider-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 13px;
}

.vgk-slider-prev,
.vgk-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
  color: #555;
  z-index: 2;
  transition: background 0.15s, color 0.15s;
  padding: 0;
  line-height: 1;
}

.vgk-slider-prev {
  left: -20px;
}

.vgk-slider-next {
  right: -20px;
}

.vgk-slider-prev:hover,
.vgk-slider-next:hover {
  background: #fff;
  color: #222;
  border-color: #bbb;
}

.vgk-slider-footer {
  padding: 8px 14px 12px;
}

.vgk-slider-counter {
  font-size: 11px;
  color: #999;
  margin: 0 0 4px;
}

.vgk-slider-info {
  font-size: 12.5px;
  color: #555;
  margin: 0 0 4px;
  line-height: 1.4;
}

.vgk-slider-price {
  font-size: 12px;
  color: #777;
  margin: 0 0 10px;
}

.vgk-btn-see-details {
  padding: 6px 20px;
  background: transparent;
  color: #333;
  border: 1.5px solid #bbb;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.15s, border-color 0.15s;
}

.vgk-btn-see-details:hover {
  background: #f5f5f5;
  border-color: #999;
}

/* =====================
   Inline Lead Form
   ===================== */
.vgk-lead-form {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.09);
  padding: 16px;
  width: 100%;
  box-sizing: border-box;
}

.vgk-lead-form-title {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #222;
  margin: 0 0 4px;
}

.vgk-lead-form-subtitle {
  text-align: center;
  font-size: 12px;
  color: #888;
  margin: 0 0 14px;
}

.vgk-lead-field {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 6px;
  gap: 8px;
  transition: border-color 0.15s;
}

.vgk-lead-field:focus-within {
  border-color: #00897b;
}

.vgk-lead-field-error {
  border-color: #e53935;
}

.vgk-lead-field input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 13px;
  color: #333;
  background: transparent;
  min-width: 0;
}

.vgk-lead-icon {
  font-size: 14px;
  flex-shrink: 0;
  line-height: 1;
}

.vgk-lead-prefix {
  font-size: 12px;
  color: #555;
  white-space: nowrap;
  flex-shrink: 0;
}

.vgk-lead-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  color: #555;
  line-height: 1.4;
  margin: 6px 0 12px;
  cursor: pointer;
}

.vgk-lead-consent input[type='checkbox'] {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #00897b;
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.vgk-lead-error {
  font-size: 11px;
  color: #e53935;
  margin: -2px 0 6px 2px;
}

.vgk-lead-submit {
  width: 100%;
  padding: 10px;
  background: #555;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.vgk-lead-submit:hover:not(:disabled) {
  background: #333;
}

.vgk-lead-submit:disabled {
  background: #bbb;
  cursor: default;
}


