/* ════════════════════════════════════════════════════════════════
   MBGPLG.COM — Pusat Bantuan & Knowledge Base SPPG Stylesheet
   Version: 1.0 | Antigravity B2B Food System
════════════════════════════════════════════════════════════════ */

:root {
  --navy-900: #071E49;
  --navy-800: #0D2E68;
  --navy-700: #1A3D8B;
  --emerald-600: #059669;
  --emerald-500: #10B981;
  --emerald-400: #34D399;
  --emerald-50: #ECFDF5;
  --slate-50: #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1E293B;
  --slate-900: #0F172A;
}

body.bantuan-page-body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #F8FAFD;
  color: var(--slate-900);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* ─── 1. HERO SEARCH SECTION ─── */
.bantuan-hero-section {
  background: linear-gradient(135deg, #071E49 0%, #0D2E68 50%, #064E3B 100%);
  color: #FFFFFF;
  padding: calc(var(--header-h, 72px) + 3rem) 1.5rem 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.bantuan-hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(34, 197, 94, 0.18) 0%, transparent 50%),
                    radial-gradient(circle at 80% 70%, rgba(14, 165, 233, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.bantuan-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.4rem 1.1rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #86EFAC;
  backdrop-filter: blur(8px);
  margin-bottom: 1rem;
}

.bantuan-hero-title {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 1rem;
  line-height: 1.2;
}

.bantuan-hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 680px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* Hero Search Box */
.bantuan-search-wrapper {
  max-width: 660px;
  margin: 0 auto 1.5rem;
  position: relative;
}

.bantuan-search-box {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border-radius: 50px;
  padding: 0.45rem 0.6rem 0.45rem 1.5rem;
  box-shadow: 0 12px 36px rgba(7, 30, 73, 0.22);
  border: 2px solid transparent;
  transition: all 0.25s ease;
}

.bantuan-search-box:focus-within {
  border-color: #38BDF8;
  box-shadow: 0 12px 40px rgba(56, 189, 248, 0.35);
}

.bantuan-search-icon {
  color: var(--slate-400);
  margin-right: 0.85rem;
  display: flex;
  align-items: center;
}

.bantuan-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--slate-900);
  background: transparent;
}

.bantuan-search-input::placeholder {
  color: var(--slate-400);
}

.bantuan-search-btn {
  background: var(--navy-900);
  color: #FFFFFF;
  border: none;
  padding: 0.75rem 1.4rem;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bantuan-search-btn:hover {
  background: var(--navy-800);
}

/* Quick Search Chips */
.bantuan-quick-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 780px;
  margin: 0 auto;
}

.chip-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.bantuan-chip {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  padding: 0.28rem 0.85rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.bantuan-chip:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

/* ─── 2. MAIN CONTAINER ─── */
.bantuan-container {
  max-width: 1240px;
  margin: -2rem auto 4rem;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
}

/* ─── 3. TOPIC CARDS GRID ─── */
.bantuan-topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.topic-card {
  background: #FFFFFF;
  border: 1px solid var(--slate-200);
  border-radius: 18px;
  padding: 1.85rem 1.6rem;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.topic-card:hover {
  transform: translateY(-4px);
  border-color: #38BDF8;
  box-shadow: 0 16px 36px rgba(7, 30, 73, 0.08);
}

.topic-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: transparent;
  transition: background 0.25s ease;
}

.topic-card:hover::after {
  background: linear-gradient(90deg, #10B981, #0284C7);
}

.topic-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.icon-blue { background: #E0F2FE; color: #0284C7; }
.icon-emerald { background: #D1FAE5; color: #059669; }
.icon-amber { background: #FEF3C7; color: #D97706; }
.icon-purple { background: #F3E8FF; color: #9333EA; }
.icon-rose { background: #FFE4E6; color: #E11D48; }
.icon-teal { background: #CCFBF1; color: #0D9488; }

.topic-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 0.5rem;
}

.topic-desc {
  font-size: 0.88rem;
  color: var(--slate-600);
  line-height: 1.55;
  margin-bottom: 1.2rem;
  flex: 1;
}

.topic-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  color: #0284C7;
  border-top: 1px solid var(--slate-100);
  padding-top: 0.85rem;
}

.topic-arrow {
  transition: transform 0.2s ease;
}

.topic-card:hover .topic-arrow {
  transform: translateX(4px);
}

/* ─── 4. FAQ ACCORDION SECTION ─── */
.bantuan-faq-section {
  background: #FFFFFF;
  border: 1px solid var(--slate-200);
  border-radius: 24px;
  padding: 2.75rem 2.5rem;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.04);
  margin-bottom: 3.5rem;
}

.bantuan-section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.bantuan-section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--emerald-600);
  background: var(--emerald-50);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.3rem 0.9rem;
  border-radius: 30px;
  margin-bottom: 0.6rem;
  letter-spacing: 0.5px;
}

.bantuan-section-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 0.5rem;
}

.bantuan-section-desc {
  font-size: 0.95rem;
  color: var(--slate-500);
  max-width: 600px;
  margin: 0 auto;
}

/* Filter Tabs */
.faq-filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.faq-tab-btn {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  color: var(--slate-600);
  padding: 0.55rem 1.15rem;
  border-radius: 30px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.faq-tab-btn:hover {
  background: #FFFFFF;
  border-color: var(--slate-300);
  color: var(--slate-900);
}

.faq-tab-btn.active {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(7, 30, 73, 0.2);
}

/* Accordion */
.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.bantuan-faq-item {
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.2s ease;
  background: #FFFFFF;
}

.bantuan-faq-item.active {
  border-color: #38BDF8;
  box-shadow: 0 6px 18px rgba(7, 30, 73, 0.05);
}

.bantuan-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: #FFFFFF;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy-900);
  text-align: left;
  cursor: pointer;
  gap: 1rem;
  transition: background 0.15s ease;
}

.bantuan-faq-question:hover {
  background: var(--slate-50);
}

.bantuan-faq-item.active .bantuan-faq-question {
  color: #0284C7;
}

.faq-q-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
  background: var(--slate-100);
  color: var(--slate-600);
  margin-right: 0.5rem;
  vertical-align: middle;
}

.faq-icon-arrow {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
  color: var(--slate-600);
}

.bantuan-faq-item.active .faq-icon-arrow {
  transform: rotate(180deg);
  background: #E0F2FE;
  color: #0284C7;
}

.bantuan-faq-answer {
  display: none;
  padding: 0 1.5rem 1.4rem;
  font-size: 0.92rem;
  color: var(--slate-700);
  line-height: 1.65;
  border-top: 1px solid var(--slate-100);
  background: #FAFCFF;
}

.bantuan-faq-item.active .bantuan-faq-answer {
  display: block;
  padding-top: 1rem;
}

.bantuan-faq-answer ul {
  margin: 0.6rem 0 0.6rem 1.25rem;
  padding: 0;
}

.bantuan-faq-answer li {
  margin-bottom: 0.35rem;
}

.bantuan-faq-answer .alert-box {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-top: 0.75rem;
  font-size: 0.86rem;
  color: #065F46;
}

/* ─── 5. EMERGENCY & FAST CHANNELS ─── */
.bantuan-channels-section {
  margin-bottom: 3.5rem;
}

.channels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.channel-card {
  background: #FFFFFF;
  border: 1px solid var(--slate-200);
  border-radius: 18px;
  padding: 1.5rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.channel-card:hover {
  transform: translateY(-3px);
  border-color: #10B981;
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.12);
}

.channel-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
}

.channel-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 0.35rem;
}

.channel-desc {
  font-size: 0.82rem;
  color: var(--slate-500);
  margin-bottom: 0.75rem;
  line-height: 1.45;
}

.channel-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: #059669;
  background: #D1FAE5;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}

/* ─── 6. CONTACT TICKET BOX ─── */
.bantuan-ticket-box {
  background: linear-gradient(135deg, #071E49 0%, #0D2E68 100%);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  color: #FFFFFF;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  box-shadow: 0 16px 40px rgba(7, 30, 73, 0.25);
  position: relative;
  overflow: hidden;
}

.bantuan-ticket-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25), transparent 70%);
  pointer-events: none;
}

.ticket-info-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #FFFFFF !important;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.ticket-info-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88) !important;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.ticket-feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: #A7F3D0;
}

.ticket-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Form */
.ticket-form {
  background: #FFFFFF;
  border-radius: 18px;
  padding: 1.85rem;
  color: var(--slate-900);
}

.ticket-form-group {
  margin-bottom: 1rem;
}

.ticket-form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 0.35rem;
}

.ticket-form-control {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--slate-300);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.ticket-form-control:focus {
  border-color: #0284C7;
}

.ticket-submit-btn {
  width: 100%;
  background: var(--navy-900);
  color: #FFFFFF;
  border: none;
  padding: 0.85rem;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.ticket-submit-btn:hover {
  background: var(--navy-800);
}

/* ─── RESPONSIVE BREAKPOINTS ─── */
@media (max-width: 1024px) {
  .bantuan-topics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .channels-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bantuan-ticket-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .bantuan-hero-section {
    padding: calc(var(--header-h, 60px) + 1.75rem) 1.25rem 3.5rem;
  }
  .bantuan-hero-badge {
    font-size: 0.72rem;
    padding: 0.35rem 0.85rem;
    white-space: normal;
    text-align: center;
    max-width: 90%;
  }
  .bantuan-hero-title {
    font-size: 1.45rem;
    line-height: 1.25;
  }
  .bantuan-hero-subtitle {
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
  }
  .bantuan-search-box {
    border-radius: 50px;
    padding: 0.3rem 0.4rem 0.3rem 0.9rem;
    gap: 0.35rem;
  }
  .bantuan-search-icon {
    margin-right: 0.4rem;
  }
  .bantuan-search-input {
    font-size: 0.82rem;
  }
  .bantuan-search-btn {
    padding: 0.55rem 0.9rem;
    font-size: 0.8rem;
    white-space: nowrap;
    border-radius: 30px;
  }
  .bantuan-topics-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .bantuan-faq-section {
    padding: 1.75rem 1.25rem;
  }
  .bantuan-section-title {
    font-size: 1.35rem;
  }
  .channels-grid {
    grid-template-columns: 1fr;
  }
  .bantuan-ticket-box {
    padding: 2rem 1.25rem;
  }
}
