/* Contact Hero */
.contact-hero {
  padding-top: 140px;
  background: radial-gradient(circle at 10% 20%, rgba(0, 242, 254, 0.04) 0%, transparent 60%);
  text-align: center;
}

.contact-hero p {
  max-width: 650px;
  margin: 0 auto 3rem auto;
  font-size: 1.2rem;
  color: var(--text-mid);
}

/* Form vs Chatbot Layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: flex-start;
  margin-top: 2rem;
}

/* Chatbot Console styling */
.chat-demo-container {
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  height: 480px;
}

.chat-demo-header {
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.chat-demo-header h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;;
}

.chat-demo-header p {
  font-size: 0.85rem;
  color: var(--text-low);
  margin: 0;
}

.chat-messages {
  flex-grow: 1;
  overflow-y: auto;
  padding-right: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Bubbles */
.chat-bubble {
  padding: 0.75rem 1.25rem;
  border-radius: var(--border-radius-md);
  max-width: 80%;
  font-size: 0.9rem;
  line-height: 1.5;
}

.agent-bubble {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  color: var(--text-high);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.user-bubble {
  background: var(--gradient-brand);
  color: #030307;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  font-weight: 500;
}

/* Quick buttons */
.quick-prompts {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.quick-prompt-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  color: var(--text-mid);
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quick-prompt-btn:hover {
  background: rgba(0, 242, 254, 0.08);
  border-color: var(--color-primary);
  color: var(--text-high);
}

/* Console input */
.chat-input-wrap {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-glass);
  border-radius: 50px;
  padding: 0.3rem 0.3rem 0.3rem 1.25rem;
  align-items: center;
}

.chat-input-wrap input {
  flex-grow: 1;
  color: var(--text-high);
  font-size: 0.9rem;
}

.chat-send-btn {
  background: var(--color-primary);
  color: #030307;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Typing state */
.typing-indicator span {
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--text-mid);
  border-radius: 50%;
  margin-right: 3px;
  animation: typing-bounce 1s infinite alternate;
}

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

@keyframes typing-bounce {
  to { transform: translateY(-5px); opacity: 0.4; }
}

/* Success Card */
#form-success-alert {
  display: none;
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid var(--color-success);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  text-align: center;
}

#form-success-alert h3 {
  color: var(--color-success);
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}
