/**
 * PayByChance Static Pages Styles
 * Used by: How It Works, About, FAQ, Privacy/Terms pages
 */

/* ============================================
   SHARED PAGE HEADER (Compact White Style)
   ============================================ */
.pbc-page-header {
    background: #fff;
    padding: 40px 0 30px;
    border-bottom: 1px solid #e9ecef;
}

.pbc-page-header-icon {
    font-size: 1.5rem;
    color: var(--pbc-purple, #6f42c1);
    vertical-align: middle;
    margin-right: 0.5rem;
}

.pbc-page-header-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
    display: inline-flex;
    align-items: center;
}

.pbc-page-header-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0;
}

/* ============================================
   HOW IT WORKS PAGE
   ============================================ */
.pbc-hiw-steps {
    padding: 50px 0;
    background: #f8f9fa;
}

.pbc-steps-timeline {
    position: relative;
}

.pbc-step-item {
    display: flex;
    gap: 30px;
    margin-bottom: 0;
}

.pbc-step-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.pbc-step-number {
    width: 50px;
    height: 50px;
    background: var(--pbc-purple, #6f42c1);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    z-index: 1;
}

.pbc-step-line {
    width: 3px;
    flex-grow: 1;
    background: linear-gradient(180deg, var(--pbc-purple, #6f42c1) 0%, rgba(111, 66, 193, 0.3) 100%);
    min-height: 60px;
}

.pbc-step-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: #fff;
    border-radius: 16px;
    padding: 25px 30px;
    margin-bottom: 20px;
    flex-grow: 1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.pbc-step-content:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 30px rgba(111, 66, 193, 0.15);
}

.pbc-step-icon {
    width: 60px;
    height: 60px;
    background: rgba(111, 66, 193, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pbc-step-icon i {
    font-size: 1.75rem;
    color: var(--pbc-purple, #6f42c1);
}

.pbc-step-info {
    flex-grow: 1;
}

.pbc-step-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.pbc-step-text {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0;
    line-height: 1.5;
}

.pbc-step-last .pbc-step-content {
    margin-bottom: 0;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.pbc-about-section {
    padding: 50px 0;
}

.pbc-about-section.bg-light {
    background: #f8f9fa;
}

/* Mission Card */
.pbc-mission-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 35px;
    box-shadow: 0 10px 40px rgba(111, 66, 193, 0.1);
    border-left: 5px solid var(--pbc-purple, #6f42c1);
}

.pbc-mission-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--pbc-purple, #6f42c1) 0%, #8b5cf6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: #fff;
}

.pbc-mission-label {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--pbc-purple, #6f42c1);
}

.pbc-mission-text {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.8;
}

/* Vision Card */
.pbc-vision-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 35px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border-right: 5px solid var(--pbc-purple, #6f42c1);
}

.pbc-vision-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #8b5cf6 0%, var(--pbc-purple, #6f42c1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: #fff;
}

.pbc-vision-label {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--pbc-purple, #6f42c1);
}

.pbc-vision-text {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.8;
}

/* Values Section */
.pbc-values-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.pbc-value-card {
    background: #fff;
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.pbc-value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(111, 66, 193, 0.15);
}

.pbc-value-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.pbc-value-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.pbc-value-text {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Story Card */
.pbc-story-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 35px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.pbc-story-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--pbc-purple, #6f42c1) 0%, #8b5cf6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.75rem;
    color: #fff;
}

.pbc-story-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--pbc-purple, #6f42c1);
}

.pbc-story-content {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
}

/* ============================================
   FAQ PAGE
   ============================================ */
.pbc-faq-content {
    padding: 50px 0 30px;
    background: #f8f9fa;
}

.pbc-faq-category {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.pbc-category-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--pbc-purple, #6f42c1);
    margin-bottom: 0;
    display: flex;
    align-items: center;
}

/* FAQ Accordion */
.pbc-faq-content .accordion-item {
    border: 1px solid #e9ecef;
    margin-bottom: 0.5rem;
    border-radius: 8px !important;
    overflow: hidden;
}

.pbc-faq-content .accordion-item:first-of-type,
.pbc-faq-content .accordion-item:last-of-type {
    border-radius: 8px !important;
}

.pbc-faq-content .accordion-button {
    font-weight: 500;
    color: #333;
    background-color: #fff;
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
}

.pbc-faq-content .accordion-button:not(.collapsed) {
    background-color: rgba(111, 66, 193, 0.05);
    color: var(--pbc-purple, #6f42c1);
    box-shadow: none;
}

.pbc-faq-content .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(111, 66, 193, 0.25);
}

.pbc-faq-content .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236f42c1'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.pbc-faq-content .accordion-body {
    padding: 1.25rem;
    color: #555;
    line-height: 1.7;
}

.pbc-faq-content .accordion-body ul {
    margin-bottom: 0;
    padding-left: 1.25rem;
}

.pbc-faq-content .accordion-body li {
    margin-bottom: 0.5rem;
}

.pbc-faq-content .accordion-body li:last-child {
    margin-bottom: 0;
}

.pbc-faq-content .accordion-body a {
    color: var(--pbc-purple, #6f42c1);
}

/* FAQ Contact Section */
.pbc-faq-contact {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.pbc-contact-icon {
    font-size: 2.5rem;
    color: var(--pbc-purple, #6f42c1);
}

/* ============================================
   PRIVACY/POLICY PAGE
   ============================================ */
.pbc-policy-nav {
    background: #f8f9fa;
}

.pbc-policy-content {
    padding: 50px 0 30px;
}

.pbc-policy-section {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.pbc-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--pbc-purple, #6f42c1);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.pbc-section-intro {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Policy Accordion */
.pbc-policy-content .accordion-item {
    border: 1px solid #e9ecef;
    margin-bottom: 0.5rem;
    border-radius: 8px !important;
    overflow: hidden;
}

.pbc-policy-content .accordion-item:first-of-type,
.pbc-policy-content .accordion-item:last-of-type {
    border-radius: 8px !important;
}

.pbc-policy-content .accordion-button {
    font-weight: 500;
    color: #333;
    background-color: #fff;
    padding: 1rem 1.25rem;
}

.pbc-policy-content .accordion-button:not(.collapsed) {
    background-color: rgba(111, 66, 193, 0.05);
    color: var(--pbc-purple, #6f42c1);
    box-shadow: none;
}

.pbc-policy-content .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(111, 66, 193, 0.25);
}

.pbc-policy-content .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236f42c1'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.pbc-policy-content .accordion-body {
    padding: 1.25rem;
    color: #555;
    line-height: 1.7;
}

.pbc-policy-content .accordion-body ul {
    margin-bottom: 1rem;
    padding-left: 1.25rem;
}

.pbc-policy-content .accordion-body li {
    margin-bottom: 0.5rem;
}

.pbc-policy-content .accordion-body a {
    color: var(--pbc-purple, #6f42c1);
}

/* Policy Contact */
.pbc-policy-contact {
    background: #f8f9fa;
    border-radius: 16px;
}

/* Policy Items (non-accordion style) */
.pbc-policy-items {
    margin-top: 1rem;
}

.pbc-policy-item {
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.pbc-policy-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pbc-policy-item-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.pbc-policy-item-number {
    color: var(--pbc-purple, #6f42c1);
    margin-right: 0.5rem;
}

.pbc-policy-item-content {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 0;
}

/* ============================================
   SHARED CTA SECTION
   ============================================ */
.pbc-page-cta {
    padding: 50px 0;
    background: #fff;
    border-top: 1px solid #e9ecef;
}

.pbc-cta-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
}

.pbc-cta-text {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 768px) {
    .pbc-page-header {
        padding: 30px 0 20px;
    }

    .pbc-page-header-title {
        font-size: 1.5rem;
    }

    .pbc-page-header-icon {
        font-size: 1.25rem;
    }

    /* How It Works */
    .pbc-hiw-steps {
        padding: 30px 0;
    }

    .pbc-step-item {
        gap: 15px;
    }

    .pbc-step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .pbc-step-content {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    .pbc-step-content:hover {
        transform: translateX(5px);
    }

    .pbc-step-icon {
        width: 50px;
        height: 50px;
    }

    .pbc-step-icon i {
        font-size: 1.5rem;
    }

    .pbc-step-title {
        font-size: 1.1rem;
    }

    .pbc-step-text {
        font-size: 0.95rem;
    }

    /* About */
    .pbc-about-section {
        padding: 30px 0;
    }

    .pbc-mission-card,
    .pbc-vision-card,
    .pbc-story-card {
        padding: 25px 20px;
    }

    .pbc-mission-icon,
    .pbc-vision-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .pbc-mission-text,
    .pbc-vision-text {
        font-size: 0.95rem;
    }

    .pbc-values-title {
        font-size: 1.25rem;
    }

    /* FAQ */
    .pbc-faq-content {
        padding: 30px 0 20px;
    }

    .pbc-faq-category {
        padding: 20px 15px;
    }

    .pbc-category-title {
        font-size: 1rem;
    }

    .pbc-faq-content .accordion-button {
        font-size: 0.9rem;
        padding: 0.875rem 1rem;
    }

    /* Policy */
    .pbc-policy-content {
        padding: 30px 0 20px;
    }

    .pbc-policy-section {
        padding: 20px 15px;
    }

    .pbc-section-title {
        font-size: 1.1rem;
    }

    /* CTA */
    .pbc-page-cta {
        padding: 30px 0;
    }

    .pbc-cta-title {
        font-size: 1.25rem;
    }
}
