* {
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}





:root {
    --primary: hsl(16, 90%, 55%);
    --primary-dark: hsl(16, 90%, 45%);
    --secondary: hsl(174, 62%, 47%);
    --background: hsl(0, 0%, 98%);
    --foreground: hsl(222, 47%, 11%);
    --card: hsl(0, 0%, 100%);
    --border: hsl(214, 32%, 91%);
    --muted: hsl(210, 40%, 96%);
    --muted-foreground: hsl(215, 16%, 47%);
    --success: hsl(142, 71%, 45%);
    --warning: hsl(38, 92%, 50%);
    --destructive: hsl(0, 84%, 60%);
}

body {
  margin: 0;
  background: #f5f5f5;
}

/* Main */
.container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 20px;
}

/* Responsive adjustments */
@media(max-width: 700px) {
  .ticket-form {
    padding: 20px;
  }
  #ticket-table th, #ticket-table td {
    font-size: 13px;
    padding: 10px 12px;
  }
  .ticket-reply {
    max-width: 100%;
  }
  .ticket-reply-form button {
    width: 100%;
  }
}
/* ===== Talk to Agent Section ===== */
#talk-agent {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

#talk-agent h2 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 28px;
}

.agent-options {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.agent-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  flex: 1 1 250px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.agent-card .icon {
  font-size: 40px;
}

.agent-card h3 {
  margin: 0;
}

.agent-card p {
  font-size: 14px;
  color: #555;
}

.agent-card button,
.agent-card a {
  display: inline-block;
  margin-top: auto;
  padding: 10px 15px;
  border-radius: 5px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s;
}

.agent-card button:hover,
.agent-card a:hover {
  background: #e66d00;
}


/* Styling the Font Awesome Icons */
.agent-card .icon {
  font-size: 40px;
  color: #fff;
  background: hsl(16, 85%, 65%);
  width: 80px;
  height: 80px;
  line-height: 80px; /* Centers icon vertically */
  border-radius: 50%; /* Makes it a circle */
  margin: 0 auto 15px; /* Centers the circle and adds space below */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

/* Fun hover effect */
.agent-card:hover .icon {
  transform: scale(1.1);
  
  
}

/* WhatsApp specific brand color (Optional) */
.agent-card.whatsapp .icon {
  background: #25D366;
  color: #fff;
}

/* FAQ Section Styles */
.faq-container {
  display: flex;
  gap: 30px; /* space between tabs and FAQ list */
}

.faq-tabs {
  display: flex;
  flex-direction: column; /* vertical */
  gap: 20px;
  min-width: 150px;
  overflow-y: auto;
  position: sticky;
  top: 20px;
}

.faq-tabs button {
  width: 100%;
  text-align: left;
  padding: 10px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
  transition: all 0.2s;
}

.faq-tabs button.active,
.faq-tabs button:hover {
  background: hsl(16, 80%, 95%);
  color: var(--primary);
}

.faq-list {
  flex: 1;
  padding-left: 10px;
}

.faq-item {
  border-bottom: 1px solid #eee;
  padding: 10px 0;
}

.faq-question {
  cursor: pointer;
  display: block;
  font-weight: bold;
}

.faq-answer {
  display: none;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: #000;
  transition: all 0.3s ease;
}

.faq-answer.show {
  display: block;
}


/* ======================
   GUIDE WRAPPER
====================== */
#guides-wrapper {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

/* ======================
   GUIDE CATEGORIES (VERTICAL)
====================== */
#guide-categories {
  display: flex;
  flex-direction: column; /* vertical */
  gap: 10px;
  width: 200px; /* fixed width for sidebar */
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

#guide-categories button {
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 10px 15px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s, color 0.2s;
  text-align: left;
}

#guide-categories button:hover {
  background-color: hsl(16, 80%, 95%); ;
  color: var(--primary) ;
}

#guide-categories button.active {
  background-color: hsl(16, 80%, 95%); ; /* indigo */
  color: var(--primary);
  border-color: var(--primary);
}

/* ======================
   GUIDES CONTENT
====================== */
#guides-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  flex: 1; /* take remaining space */
}

/* ======================
   GUIDE CARD
====================== */
.guide {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.guide h3 {
  margin-top: 0;
  font-size: 1.5rem;
  color: #333;
}

.guide p {
  line-height: 1.5;
  color: #555;
  margin-bottom: 10px;
}

.guide video {
  width: 100%;
  max-height: 250px; /* limits height */
  margin-top: 10px;
  border-radius: 6px;
  object-fit: contain; /* no cropping, keeps full video visible */
}

/* ======================
   GUIDE STEPS
====================== */
.guide-step {
  margin-top: 15px;
  padding: 15px;
  border-left: 4px solid #4f46e5;
  background-color: #f9f9ff;
  border-radius: 4px;
}

.guide-step h4 {
  margin-top: 0;
  font-size: 1.2rem;
  color: #333;
}

.guide-step p {
  margin-bottom: 10px;
  color: #555;
}

/* ======================
   GUIDE STEP IMAGES
====================== */
.guide-step-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin-top: 8px;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}


/* Base button layout to accommodate the chevron */
.faq-tabs button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 12px 15px;
  position: relative;
  transition: all 0.3s ease;
}

/* The Chevron Icon */
.faq-tabs button::after {
  content: '\f054'; /* Font Awesome Chevron Right */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 12px;
  transition: transform 0.3s ease, color 0.3s ease;
  color: var(--muted-foreground);
  margin-left: 10px;
}

/* Active State: Rotate and Change Color */
.faq-tabs button.active::after {
  transform: rotate(90deg); /* Points down when open */
  color: var(--primary); /* Using your softer primary */
}

/* Hover State: Subtle color shift */
.faq-tabs button:hover::after {
  color: #fb923c;
}


/* DESKTOP ONLY */
@media (min-width: 769px) {


  .faq-tabs button.active, 
  .faq-tabs button:hover{
    background: var(--primary);
    color: #fff;
  }
  .faq-tabs button.active::after {
    transform: rotate(0deg); /* Keep it pointing right on desktop */
    color: #fff;
  }

  .faq-tabs button:hover::after {
  color: #fff;
}

/* Add Chevron to the actual FAQ Questions */
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 60%;
  background: none;
  border: none;
  text-align: center;
  padding: 10px 0;
  font-weight: bold;
  cursor: pointer;
}
.faq-answer{
  width: 60%;
}

.faq-question::after {
  content: '\f054'; /* Font Awesome Chevron Right */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 12px;
  color: var(--muted-foreground);
  transition: transform 0.3s ease;
  margin-left: 10px;
}

/* Rotate the question chevron when the answer is shown */
/* This works by checking if the NEXT element (the answer) has the .show class */
.faq-question:has(+ .faq-answer.show)::after {
  transform: rotate(90deg);
  color: var(--primary);
}

}
/* ======================
   RESPONSIVE
====================== */
@media (max-width: 768px) {
  #guides-wrapper {
    flex-direction: column;
  }

}


@media (max-width: 768px) {
  #guide-categories {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    padding: 10px 0;
    gap: 10px; /* space between buttons */
  }

  #guide-categories button {
    min-width: 120px; /* ensures button is large enough for tap */
    flex: 0 0 auto;
    font-size: 14px;
    padding: 12px 15px;
  }

  #guides-content {
    gap: 20px;
    padding: 0 10px;
  }

  .guide video {
    max-height: 200px;
  }
}


/* Mobile specific injection styling */
@media (max-width: 768px) {
  .faq-list-inline {
    width: 100%;
    margin: 5px 0 15px 0;
    padding-left: 10px;
    border-left: 2px solid #f97316;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  /* Hide the desktop container on mobile to prevent duplicate content */
  #faq-list {
    display: none;
  }
  .faq-answer{
    text-align: center;
  }
}

/* Desktop layout: keep the sidebar view */
@media (min-width: 769px) {
  .faq-container {
    display: flex;
    gap: 30px;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    padding: 20px;
  }
  #faq-list {
    display: block;
    flex: 1;
  }
  .faq-title{
    margin: 20px 7px;
  }
  
}

@media (max-width: 768px) {
  /* 1. Force the flex container to be a block/column */
  .faq-container {
    display: block;
    width: 95%;      /* Shrink slightly so shadow shows on sides */
    margin: 10px auto; /* Center it and add space top/bottom */
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* Slightly deeper shadow for mobile */
  }

  /* 2. Ensure tabs take up full width */
  .faq-tabs {
    width: 100%;
    position: static; /* Remove sticky on mobile for better flow */
    padding: 10px;
  }

  /* 3. Make buttons look like full-width bars (matching your image) */
  .faq-tabs button {
    width: 100%;
    margin-bottom: 5px;
    padding: 15px; /* Better hit area for fingers */
    font-size: 16px;
    border-radius: 5px;
  }

  /* 4. Ensure the list matches the width */
  .faq-list-inline {
    width: 100%;
    padding-left: 0; /* Remove padding if you want it flush */
    border-left: none; /* Optional: remove the orange line if it looks cramped */
  }
  .faq-title{
    margin: 20px 20px 10px;
  }
  .guide-step p{
    margin-bottom: 0;
    font-size: 14px;
  }
  .guide-step{
    padding: 12px;
  }
  .guide h3{
    font-size: 18px;
    font-weight: 700;
  }

  .guide-step h4{
   font-size: 16px;
  }
}


@media (max-width: 480px) {
  .container {
    padding: 10px; /* Reduce padding on very small screens */
    margin: 10px auto;
  }
}

@media (max-width: 768px) {
  /* ... your existing mobile styles ... */

  #talk-agent {
    margin: 20px auto; /* Reduce top margin on mobile */
  }

  .agent-options {
    gap: 15px; /* Slightly tighter gap */
    padding: 0 10px;
  }

  .agent-card {
    flex: 1 1 100%; /* Force cards to be full width on mobile */
    padding: 25px 20px;
    border: 1px solid var(--border); /* Add a subtle border to define the card */
  }

  .agent-card .icon {
    width: 60px; /* Slightly smaller icons for mobile screens */
    height: 60px;
    line-height: 60px;
    font-size: 28px;
  }

  .agent-card h3 {
    font-size: 20px;
  }

  .agent-card p {
    font-size: 15px;
    padding: 0 10px; /* Keep text away from edges */
  }

  /* Make buttons larger for better "thumb" tapping */
  .agent-card button,
  .agent-card a {
    width: 100%; /* Full width buttons */
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
  }
}




#chatbaseModal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  align-items: center;
  justify-content: center;
}

#chatbaseModal > div {
  background-color: #fff;
  width: 95%;
  max-width: 450px;
  height: 85vh;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

#chatbaseModal button {
  position: absolute;
  top: 2px;
  right: 8px;
  
  border: none;

  font-size:20px;
  cursor: pointer;
  font-weight: bold;
  z-index: 10000;
  color:var(--destructive);
}

