/* ==========================================================================
   CHEAP INTERSTATE REMOVALISTS - FAQS PAGE STYLESHEET
   Theme: Official Brand Colors (Navy #0f172a, Amber #f59e0b, Orange #ea580c)
   ========================================================================== */

.faqs-page {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #334155;
  background-color: #f8fafc;
  overflow-x: clip !important;
  line-height: 1.65;
}

/* ==========================================================================
   1. HERO BANNER & SEARCH (CLEAN, FOCUSED, NO CLUTTERED PILLS)
   ========================================================================== */
.faq-hero-banner {
  position: relative;
  background: linear-gradient(135deg, #09121e 0%, #0f1c2d 50%, #17253a 100%);
  padding: 70px 0 75px;
  overflow: hidden;
  color: #ffffff;
}

.faq-banner-graphics {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 18% 25%, rgba(245, 158, 11, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 82% 75%, rgba(234, 88, 12, 0.14) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
  z-index: 1;
}

.faq-banner-wrap {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.faq-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 18px;
  border-radius: 9999px;
  margin-bottom: 18px;
}

.faq-badge-pill .badge-dot {
  width: 8px;
  height: 8px;
  background-color: #f59e0b;
  border-radius: 50%;
  box-shadow: 0 0 10px #f59e0b;
  animation: pulseBadgeDot 2s infinite ease-in-out;
}

@keyframes pulseBadgeDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.faq-banner-title {
  font-size: clamp(2.2rem, 4.2vw, 3.3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
  line-height: 1.18;
  margin-bottom: 16px;
}

.faq-banner-title .heading-accent {
  background: linear-gradient(135deg, #ffb703 0%, #fb8500 50%, #ea580c 100%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.faq-banner-subtext {
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  color: #cbd5e1;
  max-width: 680px;
  margin: 0 auto 28px auto;
  line-height: 1.65;
}

/* Central Live Search Box */
.faq-search-box-wrap {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

.faq-search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 2px solid rgba(245, 158, 11, 0.45);
  border-radius: 9999px;
  padding: 6px 10px 6px 20px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
  transition: all 0.25s ease;
}

.faq-search-box:focus-within {
  border-color: #ea580c;
  box-shadow: 0 16px 42px rgba(234, 88, 12, 0.35);
}

.faq-search-icon {
  color: #ea580c;
  flex-shrink: 0;
  margin-right: 12px;
}

.faq-search-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 1rem;
  color: #0f172a;
  font-family: inherit;
  font-weight: 500;
  padding: 9px 0;
}

.faq-search-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.faq-search-clear {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #64748b;
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 8px;
}

.faq-search-clear:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.faq-search-results-info {
  margin-top: 12px;
  font-size: 0.92rem;
  color: #fbbf24;
  font-weight: 700;
  text-align: center;
}

/* ==========================================================================
   2. TWO-COLUMN LAYOUT: STICKY SIDEBAR + MAIN ACCORDIONS
   ========================================================================== */
.faq-section {
  padding: 65px 0 90px;
  background-color: #f8fafc;
}

.faq-layout-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 36px;
  align-items: start;
}

/* Left Sidebar */
.faq-sidebar {
  position: sticky;
  top: 95px;
  z-index: 10;
}

.faq-sidebar-inner {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px 20px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.faq-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1.5px solid #f1f5f9;
}

.faq-sidebar-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.faq-sidebar-count-pill {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ea580c;
  background: #fff7ed;
  border: 1px solid #ffedd5;
  padding: 3px 10px;
  border-radius: 9999px;
}

.faq-sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: calc(100vh - 360px);
  overflow-y: auto;
  padding-right: 4px;
}

/* Custom scrollbar for sidebar menu */
.faq-sidebar-menu::-webkit-scrollbar {
  width: 5px;
}
.faq-sidebar-menu::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

.faq-sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  color: #475569;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: all 0.2s ease;
  width: 100%;
}

.faq-sidebar-link:hover {
  background: #f8fafc;
  color: #ea580c;
  border-left-color: #fed7aa;
}

.faq-sidebar-link.active {
  background: #fff7ed;
  color: #ea580c;
  border-left-color: #ea580c;
  font-weight: 700;
}

.faq-sidebar-label {
  flex: 1;
  line-height: 1.35;
}

.faq-sidebar-count {
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 9999px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.faq-sidebar-link:hover .faq-sidebar-count,
.faq-sidebar-link.active .faq-sidebar-count {
  background: #ffedd5;
  color: #ea580c;
}

/* Sidebar Quick Help Box */
.faq-sidebar-help-card {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1.5px solid #f1f5f9;
  text-align: center;
}

.faq-sidebar-help-card h4 {
  font-size: 0.94rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.faq-sidebar-help-card p {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.sidebar-help-phone-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  background: linear-gradient(135deg, #09121e 0%, #17253a 100%);
  color: #ffffff !important;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none !important;
  transition: all 0.25s ease;
}

.sidebar-help-phone-btn:hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  transform: translateY(-1px);
}

/* Mobile Category Pill Scroller */
.faq-mobile-pills {
  display: none;
}

/* ==========================================================================
   3. RIGHT MAIN CONTENT: ACCORDIONS & SEARCH RESULTS
   ========================================================================== */
.faq-main-content {
  min-width: 0;
}

/* Filter indicator banner */
.faq-active-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 18px;
  margin-bottom: 26px;
  font-size: 0.92rem;
  color: #334155;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
}

.faq-active-filter-bar strong {
  color: #ea580c;
}

.faq-reset-filter-link {
  color: #ea580c;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
}

.faq-reset-filter-link:hover {
  text-decoration: underline;
}

/* Category Blocks */
.faq-category-block {
  margin-bottom: 42px;
  scroll-margin-top: 100px;
}

.faq-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e2e8f0;
  gap: 14px;
  flex-wrap: wrap;
}

.faq-category-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.32rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  padding: 0;
  letter-spacing: -0.01em;
}

.faq-category-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff7ed;
  border: 1px solid #ffedd5;
  color: #ea580c;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq-category-count-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 4px 12px;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}

/* Accordion Item */
.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item-modern {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.02);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.faq-item-modern:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.faq-item-modern.active {
  border-color: #ea580c;
  box-shadow: 0 8px 24px -4px rgba(234, 88, 12, 0.12);
}

.faq-header-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  gap: 16px;
}

.faq-question-text {
  font-size: 1.02rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
  transition: color 0.2s ease;
  pointer-events: none;
}

.faq-item-modern.active .faq-question-text {
  color: #ea580c;
}

.faq-toggle-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
  pointer-events: none;
}

.faq-item-modern.active .faq-toggle-icon {
  background: #ea580c;
  color: #ffffff;
  transform: rotate(45deg);
}

/* ==========================================================================
   ACCORDION COLLAPSE & EXPANSION
   Controlled by main.js via max-height transition.
   Zero padding on .faq-body-collapse prevents any text leaking when closed.
   ========================================================================== */
.faq-body-collapse {
  max-height: 0;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  transition: max-height 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-body-inner {
  font-size: 0.96rem;
  color: #475569;
  line-height: 1.75;
  padding: 16px 22px 22px 22px !important;
  border-top: 1px solid #f1f5f9;
}

.faq-body-inner p {
  margin-bottom: 12px;
}

.faq-body-inner p:last-child {
  margin-bottom: 0;
}

.faq-body-inner strong,
.faq-body-inner b {
  color: #0f172a;
  font-weight: 700;
}

.faq-body-inner ul,
.faq-body-inner ol {
  margin: 10px 0 14px 22px;
  padding: 0;
}

.faq-body-inner li {
  margin-bottom: 6px;
}

.faq-body-inner a {
  color: #ea580c;
  text-decoration: underline;
  font-weight: 600;
}

.faq-body-inner a:hover {
  color: #c2410c;
}

/* No Search Results Card */
.faq-no-results-card {
  text-align: center;
  background: #ffffff;
  border: 2px dashed #cbd5e1;
  border-radius: 18px;
  padding: 50px 30px;
  margin: 20px 0 40px 0;
}

.no-results-icon {
  margin-bottom: 16px;
}

.faq-no-results-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
}

.faq-no-results-card p {
  color: #64748b;
  font-size: 0.98rem;
  max-width: 480px;
  margin: 0 auto 22px auto;
  line-height: 1.6;
}

/* ==========================================================================
   4. BOTTOM CTA BANNER: FIXED HOVER WITH NO FLYING CORNER SQUARES
   ========================================================================== */
.faq-still-questions,
.faq-support-banner {
  background: linear-gradient(135deg, #09121e 0%, #0f1c2d 50%, #17253a 100%);
  border-radius: 20px;
  padding: 42px 40px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.3);
  margin-top: 60px;
  position: relative;
  overflow: hidden;
}

.still-questions-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #f59e0b;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq-support-text {
  flex: 1;
}

.faq-support-text h3 {
  font-size: clamp(1.35rem, 2.1vw, 1.8rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.25;
}

.faq-support-text p {
  color: #cbd5e1;
  font-size: 0.96rem;
  line-height: 1.6;
  margin: 0;
}

.faq-support-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
  flex-shrink: 0;
}

/* Clean, modern CTA buttons that will NEVER glitch with flying corner spans */
.faq-cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 12px;
  font-size: 0.96rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.25s ease;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  outline: none;
}

.faq-cta-btn-primary {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.35);
}

.faq-cta-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.5);
  color: #ffffff !important;
}

.faq-cta-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: #ffffff !important;
  backdrop-filter: blur(8px);
}

.faq-cta-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #ffffff;
  transform: translateY(-2px);
  color: #ffffff !important;
}

/* Strict suppression of any inherited origami corner elements on these buttons */
.faq-support-actions .btn-corner-tr,
.faq-support-actions .btn-corner-bl,
.faq-support-actions .btn-slide-bg,
.faq-cta-btn .btn-corner-tr,
.faq-cta-btn .btn-corner-bl,
.faq-cta-btn .btn-slide-bg {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
}

/* ==========================================================================
   5. RESPONSIVE MEDIA QUERIES (DESKTOP -> TABLET -> MOBILE)
   ========================================================================== */
@media (max-width: 991px) {
  .faq-layout-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* Transform vertical sidebar into horizontal sticky pill scroller */
  .faq-sidebar {
    position: static;
  }

  .faq-sidebar-inner {
    padding: 16px;
    border-radius: 16px;
  }

  .faq-sidebar-head {
    margin-bottom: 12px;
    padding-bottom: 10px;
  }

  .faq-sidebar-menu {
    flex-direction: row;
    overflow-x: auto;
    white-space: nowrap;
    max-height: none;
    padding-bottom: 8px;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .faq-sidebar-link {
    width: auto;
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 8px 14px;
    border-radius: 9999px;
    background: #f1f5f9;
  }

  .faq-sidebar-link.active {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: #ffffff;
    border-bottom-color: transparent;
  }

  .faq-sidebar-link.active .faq-sidebar-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
  }

  .faq-sidebar-help-card {
    display: none;
  }

  .faq-still-questions,
  .faq-support-banner {
    flex-direction: column;
    text-align: center;
    padding: 36px 24px;
    gap: 24px;
  }

  .still-questions-icon {
    margin: 0 auto;
  }

  .faq-support-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .faq-cta-btn {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .faq-hero-banner {
    padding: 50px 0 60px;
  }

  .faq-header-btn {
    padding: 16px 18px;
  }

  .faq-question-text {
    font-size: 0.96rem;
  }

  .faq-item-modern.active .faq-body-collapse {
    padding: 0 18px 18px 18px !important;
  }

  .faq-category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 991px) {
  /* Sidebar + content ko ek ke neeche ek karo, aur column ko screen se bada hone se roko */
  .faq-layout-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 20px !important;
    width: 100%;
    max-width: 100% !important;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }

  .faq-sidebar,
  .faq-main-content {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .faq-category-block,
  .faq-accordion-list,
  .faq-item-modern {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Question text wrap ho, cut na ho */
  .faq-header-btn {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    text-align: left;
    box-sizing: border-box;
  }

  .faq-question-text {
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.4;
  }

  .faq-toggle-icon {
    flex: 0 0 auto;
  }

  /* Answer ke andar ki lambi lines, tables aur images bhi bahar na jaayein */
  .faq-body-inner {
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  .faq-body-inner img,
  .faq-body-inner table,
  .faq-body-inner iframe {
    max-width: 100%;
    height: auto;
  }

  .faq-body-inner table {
    display: block;
    overflow-x: auto;
  }

  /* Category heading aur "5 Questions" badge ek line mein wrap ho */
  .faq-category-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
  }
}