/* ================================
   PUSAT BANTUAN
================================ */
.help-page {
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--bg-soft);
    color: var(--text);
}

.help-section-label {
    display: inline-flex;
    margin-bottom: var(--space-3, 12px);
    padding: var(--space-1, 4px) var(--space-3, 12px);
    border-radius: var(--radius-full);
    background: var(--primary-light);
    color: var(--primary);
    font-size: var(--fs-xxs);
    font-weight: var(--fw-bold);
}


/* ================================
   HERO CHATBOT
================================ */
.help-hero {
    position: relative;
    overflow: hidden;
    padding-top: var(--space-14, 56px);
    padding-bottom: var(--space-10, 40px);
    background: var(--bg-soft);
}

/* dot-grid texture, senada sama tc-header di halaman Syarat & Ketentuan */
.help-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(var(--border-soft) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
    background-size: 32px 32px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 0%, transparent 75%);
            mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 0%, transparent 75%);
}

.help-hero-decor {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.help-blob {
    position: absolute;
    border-radius: 50%;
    background: var(--primary);
    filter: blur(70px);
}
.help-blob-1 { top: -160px; left: -100px; width: 340px; height: 340px; opacity: .18; }
.help-blob-2 { bottom: -140px; right: -80px;  width: 280px; height: 280px; opacity: .14; }
.help-blob-3 { top: 30%; right: 12%;          width: 160px; height: 160px; opacity: .10; }

.help-float-icon {
    position: absolute;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--primary);
    font-size: 17px;
    box-shadow: var(--shadow-card);
    animation: helpFloat 6s ease-in-out infinite;
}
.help-float-1 { top: 14%; left: 7%;  animation-delay: 0s; }
.help-float-2 { top: 68%; left: 11%; animation-delay: 1.4s; }
.help-float-3 { top: 20%; right: 8%; animation-delay: .8s; }

@keyframes helpFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}

@media (max-width: 1100px) {
    .help-float-icon { display: none; }
}

.help-hero-content {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin-inline: auto;
    text-align: center;
}

.help-pill {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2, 8px);
    margin: 0 auto var(--space-6, 24px);
    padding: var(--space-2, 8px) var(--space-5, 20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    background: var(--bg);
    color: var(--primary);
    font-size: var(--fs-xxs);
    font-weight: var(--fw-bold);
    box-shadow: var(--shadow-soft);
}

.help-pill i {
    color: var(--primary);
    font-size: var(--fs-xs);
    line-height: 1;
}

.help-hero h1 {
    margin: 0;
    color: var(--text-dark);
    font-size: clamp(28px, 4.2vw, 42px);
    font-weight: var(--fw-extrabold);
    line-height: 1.3;
    letter-spacing: -.03em;
}

.help-hero h1 strong {
    color: var(--primary);
    font-weight: var(--fw-extrabold);
}

.help-bot-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-right: var(--space-3, 12px);
    border-radius: var(--radius-full);
    background: var(--primary-light);
    color: var(--primary);
    vertical-align: middle;
}

.help-bot-icon i {
    position: relative;
    z-index: 1;
    font-size: 28px;
    line-height: 1;
}

.help-bot-pulse {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    opacity: .55;
    animation: helpPulse 2.2s ease-out infinite;
}

@keyframes helpPulse {
    0%   { transform: scale(.85); opacity: .6; }
    100% { transform: scale(1.4); opacity: 0; }
}

.help-hero p {
    max-width: 620px;
    margin: var(--space-4, 16px) auto 0;
    color: var(--muted);
    font-size: var(--fs-sm);
    line-height: 1.75;
}

/* ---- Trust chips ---- */
.help-trust-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3, 12px);
    margin-top: var(--space-5, 20px);
}

.help-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: var(--space-1, 4px) var(--space-4, 16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    background: var(--bg);
    color: var(--text-dark);
    font-size: var(--fs-xxs);
    font-weight: var(--fw-bold);
}

.help-trust-item i {
    color: var(--primary);
    font-size: 13px;
}

/* ---- Chatbox ---- */
.chatbox {
    position: relative;
    max-width: 720px;
    margin: var(--space-7, 28px) auto 0;
    padding: var(--space-4, 16px);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 16px);
    box-shadow: var(--shadow-card);
    text-align: left;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.chatbox::before {
    content: "";
    position: absolute;
    top: 0;
    left: var(--space-5, 20px);
    right: var(--space-5, 20px);
    height: 3px;
    background: linear-gradient(90deg, var(--primary), transparent);
    border-radius: 0 0 4px 4px;
}

.chatbox:focus-within {
    border-color: var(--primary);
}

.chatbox-input {
    width: 100%;
    min-height: 46px;
    max-height: 160px;
    border: none;
    outline: none;
    resize: none;
    background: transparent;
    color: var(--text);
    font-size: var(--fs-xs);
    line-height: 1.6;
    font-family: inherit;
    box-shadow: none;
}

.chatbox-input:focus,
.chatbox-input:focus-visible {
    outline: none;
    box-shadow: none;
    border: none;
}

.chatbox-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4, 16px);
    margin-top: var(--space-3, 12px);
    padding-top: var(--space-3, 12px);
    border-top: 1px solid var(--border-soft);
}

.chatbox-tools {
    display: flex;
    align-items: center;
    gap: var(--space-2, 8px);
}

.chatbox-tools button {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: var(--radius-full);
    background: var(--bg-soft);
    color: var(--muted);
    font-size: var(--fs-sm);
    cursor: pointer;
    transition: .2s ease;
}

.chatbox-tools button:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.chatbox-send {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border: none;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: #fff;
    font-size: var(--fs-sm);
    cursor: pointer;
    transition: .2s ease;
}

.chatbox-send:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

/* ---- Chat preview (class/id dipakai JS — jangan diganti) ---- */
.chat-preview {
    max-width: 720px;
    display: grid;
    gap: var(--space-3, 12px);
    margin: var(--space-4, 16px) auto 0;
    text-align: left;
}

.chat-message {
    max-width: 82%;
    padding: var(--space-4, 16px);
    border: 1px solid var(--border);
    border-radius: var(--radius, 14px);
    background: var(--bg);
    box-shadow: var(--shadow-soft);
}

.chat-message strong {
    display: block;
    margin-bottom: var(--space-1, 4px);
    color: var(--primary);
    font-size: var(--fs-xxs);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: .03em;
}

.chat-message p {
    margin: 0;
    color: var(--text);
    font-size: var(--fs-xs);
    line-height: 1.7;
}

.chat-message.bot {
    justify-self: start;
    border-bottom-left-radius: var(--space-1, 4px);
}

.chat-message.user {
    justify-self: end;
    background: var(--primary);
    border-color: var(--primary);
    border-bottom-right-radius: var(--space-1, 4px);
}

.chat-message.user strong,
.chat-message.user p {
    color: #fff;
}

.chat-message.loading p::after {
    content: "";
    animation: helpDots 1.2s infinite steps(1);
}

@keyframes helpDots {
    0%   { content: "."; }
    33%  { content: ".."; }
    66%  { content: "..."; }
}

/* ---- Quick topic chips ---- */
.help-quick-topics {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-2, 8px);
    max-width: 720px;
    margin: var(--space-5, 20px) auto 0;
    font-size: var(--fs-xxs);
    color: var(--muted);
}

.help-quick-chip {
    padding: var(--space-1, 4px) var(--space-4, 16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    background: var(--bg);
    color: var(--text-dark);
    font-size: var(--fs-xxs);
    font-weight: var(--fw-medium);
    cursor: pointer;
    transition: .15s ease;
}

.help-quick-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

/* ================================
   CONTACT
================================ */
.help-contact-section {
    padding-top: var(--space-14, 56px);
    padding-bottom: var(--space-14, 56px);
    background: var(--bg);
    border-top: 1px solid var(--border-soft);
}

.help-contact-section .help-section-heading {
    max-width: 620px;
    margin: 0 auto var(--space-10, 40px);
    text-align: center;
}

.help-contact-section .help-section-heading h2 {
    margin: 0 0 var(--space-2, 8px);
    color: var(--text-dark);
    font-size: var(--fs-lg);
    font-weight: var(--fw-extrabold);
    letter-spacing: -.02em;
}

.help-contact-section .help-section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: var(--fs-xs);
}

.help-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-5, 20px);
    max-width: 940px;
    margin-inline: auto;
}

.contact-card,
.contact-hours-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4, 16px);
    padding: var(--space-6, 24px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 16px);
    background: var(--bg-soft);
    color: inherit;
    text-decoration: none;
    transition: .2s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    background: var(--bg);
    box-shadow: var(--shadow-card);
}

.contact-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: var(--radius-full);
    background: var(--primary-light);
    color: var(--primary);
}

.contact-icon i {
    font-size: 24px;
    line-height: 1;
}

.contact-text {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.contact-text strong {
    color: var(--text-dark);
    font-size: var(--fs-sm);
    font-weight: var(--fw-extrabold);
    line-height: 1.3;
}

.contact-label {
    color: var(--primary);
    font-size: var(--fs-xxs);
    font-weight: var(--fw-bold);
}

.contact-desc {
    color: var(--muted);
    font-size: var(--fs-xxs);
    line-height: 1.5;
}

.contact-arrow {
    align-self: flex-end;
    margin-top: auto;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: var(--fs-md);
    transition: .2s ease;
}

.contact-card:hover .contact-arrow {
    transform: translateX(3px);
    color: var(--primary);
}

.contact-hours-card {
    background: var(--bg-soft);
    border-style: dashed;
}

.tc-faq-help {
    margin-top: var(--space-8, 32px);
    padding: var(--space-5, 20px);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 16px);
}

.tc-faq-help p {
    margin: 0 0 var(--space-2, 8px);
    color: var(--text-dark);
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
}

.tc-faq-help-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2, 8px);
    color: var(--primary);
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    text-decoration: none;
    transition: gap .15s ease;
}

.tc-faq-help-link:hover {
    gap: var(--space-3, 12px);
}

.tc-faq-help-link i {
    font-size: var(--fs-xs);
}

/* ---- Map card (sementara, sebelum dipindah ke Tentang Kami) ---- */
.map-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: box-shadow .2s ease;
}

.map-card:hover {
    box-shadow: var(--shadow-card);
}

.map-card iframe {
    display: block;
    width: 100%;
    height: 260px;
    border: none;
}

.map-address {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3, 12px);
    padding: var(--space-4, 16px) var(--space-5, 20px);
    background: var(--bg-soft);
    border-top: 1px solid var(--border-soft);
}

.map-address .map-icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--primary);
    font-size: var(--fs-sm);
}

.map-address .map-text {
    flex: 1;
    min-width: 0;
    display: grid;
    gap: 2px;
}

.map-address .map-title {
    color: var(--text-dark);
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
}

.map-address .map-subtitle {
    color: var(--text);
    font-size: var(--fs-xxs);
    font-weight: var(--fw-medium);
}

.map-address .map-location {
    color: var(--muted);
    font-size: var(--fs-xxs);
    line-height: 1.5;
    margin-top: 2px;
}

.map-address .map-open-btn {
    flex-shrink: 0;
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: var(--space-1, 4px);
    padding: var(--space-2, 8px) var(--space-4, 16px);
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: var(--fs-xxs);
    font-weight: var(--fw-bold);
    text-decoration: none;
    white-space: nowrap;
    transition: opacity .15s ease;
}

.map-address .map-open-btn:hover {
    opacity: .88;
}

/* ================================
   FAQ
================================ */
.help-faq-section {
    padding: var(--space-16, 64px) 0;
    background: var(--bg);
    border-top: 1px solid var(--border-soft);
}

.help-faq-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-12, 48px);
    align-items: start;
}

.help-faq-intro {
    position: sticky;
    top: 104px;
}

.help-faq-intro h2 {
    margin: 0 0 var(--space-2, 8px);
    color: var(--text-dark);
    font-size: var(--fs-lg);
    font-weight: var(--fw-extrabold);
    line-height: 1.25;
    letter-spacing: -.02em;
}

.help-faq-intro p {
    margin: 0;
    color: var(--muted);
    font-size: var(--fs-xs);
    line-height: 1.75;
}

.help-faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3, 12px);
}

.help-faq-item {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 16px);
    padding: var(--space-5, 20px) var(--space-6, 24px);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.help-faq-item[open] {
    border-color: var(--primary);
    background: var(--bg);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .04);
}

.help-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4, 16px);
    color: var(--text-dark);
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    line-height: 1.5;
    cursor: pointer;
    list-style: none;
}
.help-faq-item summary::-webkit-details-marker {
    display: none;
}

.help-faq-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--primary);
    font-size: 12px;
    transition: .2s ease;
}
.help-faq-item[open] .help-faq-icon {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: rotate(135deg);
}

.help-faq-answer p {
    margin: var(--space-3, 12px) 0 0;
    color: var(--muted);
    font-size: var(--fs-xs);
    line-height: 1.8;
}

.help-faq-empty {
    padding: var(--space-8, 32px);
    background: var(--bg-soft);
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg, 16px);
    color: var(--muted);
    font-size: var(--fs-xs);
    text-align: center;
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 900px) {
    .help-contact-layout,
    .help-faq-layout {
        grid-template-columns: 1fr;
        gap: var(--space-8, 32px);
    }
    .help-faq-intro {
        position: static;
    }
}

@media (max-width: 640px) {
    .help-hero {
        padding-top: var(--space-9, 36px);
        padding-bottom: var(--space-7, 28px);
    }
    .help-pill {
        margin-bottom: var(--space-5, 20px);
        padding: var(--space-2, 8px) var(--space-4, 16px);
    }
    .help-hero h1 {
        font-size: var(--fs-lg);
    }
    .help-bot-icon {
        width: 42px;
        height: 42px;
    }
    .help-bot-icon i {
        font-size: 22px;
    }
    .chatbox {
        border-radius: var(--radius-md, 12px);
    }
    .chat-message {
        max-width: 92%;
    }
    .help-contact-section,
    .help-faq-section {
        padding-top: var(--space-10, 40px);
        padding-bottom: var(--space-10, 40px);
    }
    .contact-card {
        grid-template-columns: 40px minmax(0, 1fr);
        padding: var(--space-4, 16px);
    }
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    .contact-arrow {
        display: none;
    }
    .map-card iframe {
        height: 200px;
    }
    .map-address {
        flex-wrap: wrap;
        padding: var(--space-3, 12px) var(--space-4, 16px);
    }
    .map-address .map-open-btn {
        width: 100%;
        justify-content: center;
    }
    .help-faq-item {
        padding: var(--space-4, 16px);
    }
}