/* ==============================================================================
   Help Center & Customer Guide Styles (ระบบสินค้าที่ระลึก ม.อ. ปัตตานี)
   ============================================================================== */

.page-help {
    background: #f8fafc;
}

/* Hero Section */
.help-hero {
    background: linear-gradient(135deg, #00284d 0%, #003C71 60%, #00509e 100%);
    color: #fff;
    padding: 48px 0 36px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.help-hero::before {
    content: "";
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.15) 0%, rgba(0, 60, 113, 0) 70%);
    pointer-events: none;
}

.help-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto;
}

.help-hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 600;
    color: #f2d889;
    margin-bottom: 16px;
    backdrop-filter: blur(4px);
}

.help-hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
    letter-spacing: -0.5px;
}

.help-hero-desc {
    font-size: 1.05rem;
    color: #d0e1f3;
    line-height: 1.6;
    margin-bottom: 32px;
}

/* Tab Navigation Buttons */
.help-tabs-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.help-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    color: #fff;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
    white-space: nowrap;
}

.help-tab-btn i {
    font-size: 1rem;
    color: #f2d889;
    transition: transform .2s ease;
}

.help-tab-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.help-tab-btn.active {
    background: #fff;
    color: #003C71;
    border-color: #fff;
    box-shadow: 0 6px 18px rgba(0, 40, 77, 0.2);
}

.help-tab-btn.active i {
    color: #003C71;
    transform: scale(1.1);
}

/* Tab Content Panes */
.help-tab-pane {
    display: none;
    animation: helpFadeIn .3s ease forwards;
}

.help-tab-pane.active {
    display: block;
}

@keyframes helpFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.help-section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 36px;
}

.help-section-header .section-tag {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #c9a227;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}

.help-section-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1d2a38;
    margin-bottom: 8px;
}

.help-section-header p {
    color: #64748b;
    font-size: 0.96rem;
}

/* Step Roadmap (How to Order) */
.ordering-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}

.step-card {
    position: relative;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 32px 22px 24px;
    box-shadow: 0 8px 24px rgba(0, 40, 77, 0.04);
    transition: all .25s ease;
    text-align: center;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 60, 113, 0.08);
    border-color: #cbd5e1;
}

.step-num {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c9a227, #f2d889);
    color: #00284d;
    font-weight: 800;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(201, 162, 39, 0.3);
}

.step-icon {
    width: 60px;
    height: 60px;
    margin: 4px auto 16px;
    border-radius: 16px;
    background: #eef5fb;
    color: #003C71;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
}

.step-card:hover .step-icon {
    background: #003C71;
    color: #fff;
    transform: scale(1.05);
}

.step-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* User Type Comparison (Member vs Guest) */
.user-type-comparison {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 36px 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.comparison-header {
    text-align: center;
    margin-bottom: 28px;
}

.comparison-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1d2a38;
}

.comparison-header p {
    color: #64748b;
    font-size: 0.92rem;
}

.user-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 18px;
    padding: 26px 24px;
    transition: all .2s ease;
}

.user-card.is-member {
    border-color: #003C71;
    background: #f4f8fc;
}

.user-card-badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    background: #003C71;
    color: #f2d889;
    margin-bottom: 12px;
}

.user-card-badge.is-alt {
    background: #64748b;
    color: #fff;
}

.user-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.user-card-desc {
    font-size: 0.88rem;
    color: #64748b;
    margin-bottom: 16px;
}

.user-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    flex: 1 1 auto;
}

.user-benefits li {
    font-size: 0.88rem;
    color: #334155;
    line-height: 1.5;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.user-benefits li i {
    color: #059669;
    margin-top: 3px;
    flex-shrink: 0;
}

.user-status-ok {
    font-size: 0.88rem;
    font-weight: 600;
    color: #059669;
    padding: 8px 12px;
    background: #ecfdf5;
    border-radius: 8px;
}

/* Payment Guide */
.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.payment-card {
    position: relative;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: 0 10px 30px rgba(0, 40, 77, 0.04);
}

.payment-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
}

.payment-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: #eef5fb;
    color: #003C71;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.payment-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.payment-card p {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 18px;
}

.bank-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bank-logos .badge {
    padding: 6px 10px;
    font-weight: 500;
    font-size: 0.82rem;
}

.payment-security-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.payment-security-list li {
    font-size: 0.9rem;
    color: #334155;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.help-notice-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-left: 4px solid #f59e0b;
    border-radius: 12px;
    padding: 16px 20px;
}

.help-notice-box .notice-ico {
    color: #f59e0b;
    font-size: 1.3rem;
    margin-top: 2px;
}

.help-notice-box strong {
    display: block;
    color: #92400e;
    font-size: 0.92rem;
    margin-bottom: 2px;
}

.help-notice-box span {
    color: #78350f;
    font-size: 0.88rem;
    line-height: 1.5;
}

/* Shipping Cards */
.shipping-card {
    height: 100%;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: 0 10px 30px rgba(0, 40, 77, 0.04);
}

.shipping-card.is-campus {
    border-color: #003C71;
    background: #fbfdff;
}

.shipping-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: #fef3c7;
    color: #92400e;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.shipping-tag.is-blue {
    background: #e0f2fe;
    color: #0369a1;
}

.shipping-icon-header {
    font-size: 2.2rem;
    color: #003C71;
    margin-bottom: 12px;
}

.shipping-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.shipping-desc {
    color: #64748b;
    font-size: 0.92rem;
    margin-bottom: 22px;
}

.shipping-points {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.point-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.point-item i {
    font-size: 1.15rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.point-item strong {
    display: block;
    font-size: 0.92rem;
    color: #1e293b;
    margin-bottom: 2px;
}

.point-item span {
    display: block;
    font-size: 0.86rem;
    color: #64748b;
    line-height: 1.45;
}

/* FAQ Accordion */
.faq-accordion {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    transition: all .2s ease;
}

.faq-item.active {
    border-color: #003C71;
    box-shadow: 0 8px 24px rgba(0, 60, 113, 0.07);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    background: transparent;
    border: 0;
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 600;
    color: #1e293b;
    text-align: left;
    cursor: pointer;
    transition: color .2s ease;
}

.faq-question:hover {
    color: #003C71;
}

.faq-arrow {
    font-size: 0.85rem;
    color: #94a3b8;
    transition: transform .25s ease, color .2s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
    color: #003C71;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s cubic-bezier(0, 1, 0, 1);
    background: #fbfdff;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    transition: max-height .35s ease-in-out;
}

.faq-answer p {
    padding: 0 22px 20px;
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
    border-top: 1px dashed #e2e8f0;
    padding-top: 14px;
}

/* Still Have Questions Banner */
.help-contact-banner {
    display: flex;
    align-items: center;
    gap: 24px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 28px 32px;
    margin-top: 48px;
    box-shadow: 0 10px 30px rgba(0, 40, 77, 0.04);
}

.help-contact-banner .banner-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: #003C71;
    color: #f2d889;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.help-contact-banner .banner-content {
    flex: 1 1 auto;
}

.help-contact-banner .banner-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.help-contact-banner .banner-content p {
    color: #64748b;
    font-size: 0.92rem;
    margin: 0;
}

.help-contact-banner .banner-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 991.98px) {
    .help-contact-banner {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }

    .help-contact-banner .banner-actions {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .help-hero-title {
        font-size: 1.6rem;
    }

    .help-hero-desc {
        font-size: 0.92rem;
    }

    .help-tab-btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    .help-section-header h2 {
        font-size: 1.4rem;
    }

    .user-type-comparison {
        padding: 24px 16px;
    }

    .payment-methods-grid {
        grid-template-columns: 1fr;
    }

    .help-contact-banner .banner-actions {
        flex-direction: column;
    }

    .help-contact-banner .banner-actions .btn {
        width: 100%;
    }
}

/* Trust & Policy Guarantee Strip in Help Page */
.help-policy-strip {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-left: 4px solid #003C71;
    border-radius: 14px;
    padding: 20px 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.help-policy-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.help-policy-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 280px;
}

.help-policy-icon {
    width: 48px;
    height: 48px;
    background: #eaf2fa;
    color: #003C71;
    font-size: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.help-policy-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #00284d;
    margin-bottom: 4px;
}

.help-policy-desc {
    font-size: 0.88rem;
    color: #64748b;
    margin: 0;
}

.help-policy-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

@media (max-width: 767.98px) {
    .help-policy-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .help-policy-actions {
        width: 100%;
    }
    .help-policy-actions .btn {
        flex: 1;
    }
}
