/* ============================================================
   ATC Chatbot — Aligned to ATC Brand System v3
   ============================================================ */

.atc-chatbot {
  position: fixed;
  right: 24px;
  bottom: 100px;
  z-index: 340;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}

.atc-chatbot-panel {
  width: min(380px, calc(100vw - 32px));
  max-height: min(70vh, 580px);
  display: none;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(17, 37, 72, 0.14);
  overflow: hidden;
}

.atc-chatbot.open .atc-chatbot-panel {
  display: flex;
}

.atc-chatbot-header {
  padding: 20px 20px 18px;
  background: #112548;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.atc-chatbot-eyebrow {
  font-family: "Syne", sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #CFAE64;
}

.atc-chatbot-title {
  margin-top: 10px;
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.15;
  color: #FFFFFF;
}

.atc-chatbot-subtitle {
  margin-top: 10px;
  font-size: 0.84rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
}

.atc-chatbot-body {
  padding: 18px;
  overflow-y: auto;
  display: grid;
  gap: 12px;
  background: #F8FAFC;
}

.atc-chatbot-message {
  padding: 14px 16px;
  border: 1px solid #E5E7EB;
  background: #FFFFFF;
  border-radius: 10px;
  color: #64748B;
  font-size: 0.84rem;
  line-height: 1.65;
}

.atc-chatbot-actions {
  display: grid;
  gap: 8px;
}

.atc-chatbot-chip {
  width: 100%;
  text-align: left;
  border: 1px solid #E5E7EB;
  background: #FFFFFF;
  border-radius: 8px;
  color: #1B3A6B;
  padding: 12px 14px;
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.atc-chatbot-chip:hover {
  background: rgba(27, 58, 107, 0.04);
  border-color: #1B3A6B;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(17, 37, 72, 0.06);
}

.atc-chatbot-footer {
  display: grid;
  gap: 8px;
  padding: 0 18px 18px;
  background: #F8FAFC;
}

.atc-chatbot-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 8px;
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.atc-chatbot-link.primary {
  background: #1B3A6B;
  color: #FFFFFF;
}

.atc-chatbot-link.primary:hover {
  background: #112548;
}

.atc-chatbot-link.secondary {
  border: 1px solid #E5E7EB;
  color: #1B3A6B;
  background: #FFFFFF;
}

.atc-chatbot-link.secondary:hover {
  background: rgba(27, 58, 107, 0.04);
  border-color: #1B3A6B;
}

.atc-chatbot-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  background: #1B3A6B;
  color: #FFFFFF;
  padding: 14px 20px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(17, 37, 72, 0.2);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.atc-chatbot-toggle:hover {
  background: #112548;
  box-shadow: 0 8px 28px rgba(17, 37, 72, 0.25);
  transform: translateY(-1px);
}

.atc-chatbot-toggle-label {
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.atc-chatbot-toggle-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #CFAE64;
}

.atc-chatbot-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-size: 1rem;
  transition: color 0.15s ease;
}

.atc-chatbot-close:hover {
  color: #FFFFFF;
}

/* Response box styling (inside body) */
.atc-chatbot-response {
  background: #FFFFFF;
  border-color: rgba(27, 58, 107, 0.1);
  color: #2A2A2A;
}

.atc-chatbot-response a.atc-chatbot-link.primary {
  margin-top: 10px;
}

@media (max-width: 768px) {
  .atc-chatbot {
    right: 16px;
    left: 16px;
    bottom: 80px;
    align-items: stretch;
  }

  .atc-chatbot-panel {
    width: 100%;
  }

  .atc-chatbot-toggle {
    align-self: flex-end;
  }
}
