/* =========================================================
   Aquabottle Việt Nam – Support & Chatbot Page Styles
   ========================================================= */

.support-page {
  background-color: #f5f0e6;
  min-height: 100vh;
}

/* Support Hero */
.support-hero {
  padding: 32px 0 24px;
  text-align: center;
}
.support-hero-badge {
  display: inline-block;
  padding: 5px 14px;
  background: #e6f5ef;
  color: #0f766e;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.support-hero h1 {
  font-size: clamp(26px, 4.5vw, 38px);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
}
.support-hero p {
  color: var(--muted);
  font-size: 16px;
  max-width: 620px;
  margin: 0 auto 20px;
}

/* Quick Channels Pill Bar */
.support-channels {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}
.channel-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  text-decoration: none;
  transition: all 0.2s;
}
.channel-pill:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.channel-pill-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

/* Main Support Grid */
.support-grid {
  display: grid;
  gap: 32px;
  padding-bottom: 64px;
}

@media (min-width: 992px) {
  .support-grid {
    grid-template-columns: 1.25fr 1fr;
    align-items: start;
  }
}

/* Chatbot Container */
.chatbot-card {
  background: var(--white);
  border-radius: 20px;
  border: 1px solid #e2ece6;
  box-shadow: 0 10px 32px rgba(23, 33, 30, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 680px;
}

/* Chatbot Header */
.chat-header {
  background: var(--primary);
  color: var(--white);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-bot-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bot-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #2d5a4c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  position: relative;
}
.bot-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: #10b981;
  border: 2px solid var(--primary);
  border-radius: 50%;
}
.bot-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}
.bot-role {
  font-size: 12px;
  opacity: 0.85;
}
.chat-refresh-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: var(--white);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.chat-refresh-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Chat Messages Area */
.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fcfdfd;
}

.chat-bubble {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.55;
  animation: popIn 0.25s ease;
}
@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-bubble--bot {
  background: #edf3ef;
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat-bubble--user {
  background: var(--primary);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-time {
  font-size: 11px;
  opacity: 0.65;
  margin-top: 4px;
  display: block;
  text-align: right;
}
.chat-bubble--bot .chat-time {
  text-align: left;
}

/* Quick Chips within Chat - Dạng hàng dọc */
.chat-quick-chips {
  padding: 14px 16px;
  background: #f8faf9;
  border-top: 1px solid #edf2ee;
  border-bottom: 1px solid #edf2ee;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 205px;
  overflow-y: auto;
}

.chat-quick-chips::-webkit-scrollbar {
  width: 5px;
}
.chat-quick-chips::-webkit-scrollbar-track {
  background: transparent;
}
.chat-quick-chips::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.chat-quick-chips::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.chat-chips-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #0f766e;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
  display: block;
}

.chat-chip {
  background: var(--white);
  border: 1px solid #d0ded6;
  color: var(--primary);
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-align: left;
  display: block;
  box-shadow: 0 1px 3px rgba(14, 41, 32, 0.03);
}

.chat-chip:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateX(4px);
  box-shadow: 0 4px 10px rgba(14, 41, 32, 0.1);
}

.chat-chip--accent {
  border-color: #fdba74 !important;
  color: var(--cta) !important;
  background: #fffaf5 !important;
}

.chat-chip--accent:hover {
  background: var(--cta) !important;
  color: var(--white) !important;
  border-color: var(--cta) !important;
}

/* Chat Input Bar */
.chat-input-bar {
  padding: 14px 16px;
  background: var(--white);
  display: flex;
  gap: 10px;
  align-items: center;
}
.chat-input-bar input {
  flex: 1;
  min-height: 46px;
  padding: 10px 16px;
  border: 1.5px solid #d5e2dc;
  border-radius: 999px;
  font: 14.5px var(--font);
  color: var(--text);
  background: #fbfdfc;
  outline: none;
  transition: border-color 0.2s;
}
.chat-input-bar input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31, 61, 52, 0.12);
  background: #fff;
}
.chat-send-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--cta);
  color: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
  flex-shrink: 0;
}
.chat-send-btn:hover {
  background: var(--cta-dark);
  transform: scale(1.05);
}

/* Typing indicator */
.typing-dots {
  display: flex;
  gap: 4px;
  padding: 10px 14px;
  background: #edf3ef;
  border-radius: 14px;
  width: fit-content;
  align-self: flex-start;
}
.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: typing 1.2s infinite ease-in-out;
}
.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}
.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes typing {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  40% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

/* Embedded Chat Lead Form */
.chat-lead-box {
  background: var(--white);
  border: 1.5px solid #d5e2dc;
  border-radius: 12px;
  padding: 14px;
  margin-top: 10px;
}
.chat-lead-box h5 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.chat-lead-box input,
.chat-lead-box textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d5e2dc;
  border-radius: 8px;
  font-size: 13px;
  font-family: var(--font);
  margin-bottom: 8px;
}
.chat-lead-box button {
  width: 100%;
  min-height: 38px;
  border-radius: 8px;
  font-size: 13px;
}

/* Right Column: Support Form & FAQ Accordion */
.support-aside-card {
  background: var(--white);
  border-radius: 20px;
  border: 1px solid #e0e9e4;
  padding: 28px;
  box-shadow: 0 4px 18px rgba(23, 33, 30, 0.04);
  margin-bottom: 24px;
}

.support-aside-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.support-aside-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Support Form Fields */
.support-form .field {
  margin-bottom: 14px;
}
.support-form label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.support-form input,
.support-form textarea,
.support-form select {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1.5px solid #d6ddd9;
  border-radius: 10px;
  font: 14.5px var(--font);
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
}
.support-form textarea {
  resize: vertical;
}
.support-form input:focus,
.support-form textarea:focus,
.support-form select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31, 61, 52, 0.12);
}

/* Success Ticket Alert */
.ticket-success-alert {
  padding: 16px;
  background: #e6f7ef;
  border: 1.5px solid #059669;
  border-radius: 12px;
  color: #065f46;
  font-size: 14px;
  margin-bottom: 16px;
  display: none;
}
.ticket-success-alert.is-visible {
  display: block;
  animation: popIn 0.3s ease;
}
.ticket-id {
  font-weight: 800;
  color: var(--primary);
  background: #d1fae5;
  padding: 2px 8px;
  border-radius: 6px;
}

/* Accordion in Support Aside */
.faq-mini-item {
  border-bottom: 1px solid #edf2ee;
}
.faq-mini-item:last-child {
  border-bottom: none;
}
.faq-mini-q {
  width: 100%;
  padding: 14px 0;
  border: none;
  background: none;
  text-align: left;
  font: 600 14.5px var(--font);
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.faq-mini-q:hover {
  color: var(--cta);
}
.faq-mini-q::after {
  content: "+";
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  transition: transform 0.2s;
}
.faq-mini-q[aria-expanded="true"]::after {
  transform: rotate(45deg);
}
.faq-mini-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}
.faq-mini-a p {
  padding-bottom: 14px;
}
