/* General Product Page Styles */
.section-padding {
    padding: 80px 0;
}

/* --- Product Hero: LOSFlow (Figma Aligned) --- */
.product-hero-creditflow {
    background-color: #FFFFFF;
    padding: 60px 0; /* Use padding for vertical alignment */
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.product-hero-creditflow .container {
    position: relative;
    z-index: 2;
    margin-left: 0; /* Align container to the left */
    padding-left: 100px; /* Align with logo */
}

.product-hero-creditflow .hero-text-content {
    max-width: 580px;
}

.product-hero-creditflow .hero-text-content h1 {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 600;
    font-size: 52px;
    line-height: 1.25;
    color: #0d1b3f;
    margin-bottom: 20px;
}

.product-hero-creditflow .hero-title-highlight {
    color: #1583D0;
    font-weight: 700;
}

.product-hero-creditflow .hero-text-content p {
    font-family: 'Geist', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.6;
    color: #575757;
    margin-bottom: 30px;
    max-width: 500px;
}

.product-hero-creditflow .hero-buttons {
    display: flex;
    gap: 16px;
}

.product-hero-creditflow .hero-image-main {
    position: absolute;
    right: 0;
    top: 0;
    width: 60%;
    height: 100%;
    z-index: 0;
}

.product-hero-creditflow .hero-image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.product-hero-creditflow .hero-gradient-overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #FFFFFF 40%, rgba(255, 255, 255, 0) 75%);
    z-index: 1;
}

/* --- Product Overview: LOSFlow --- */
.product-overview-creditflow {
    text-align: center;
    background: #FFFFFF;
    color: #0d1b3f; /* Set default text color for the section */
}

.product-overview-creditflow h2 {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 600;
    font-size: 42px;
    line-height: 1.2;
    color: inherit; /* Inherit color from the parent section */
    margin-bottom: 20px;
}

.product-overview-creditflow .overview-highlight {
    color: #1583D0; /* Highlight color for the span */
}

.product-overview-creditflow .container {
    max-width: 920px;
    margin: 0 auto;
}

.product-overview-creditflow p {
    font-family: 'Geist', sans-serif;
    font-size: 18px; /* Corrected from duplicate font-size */
    line-height: 1.6;
    color: #3E3E3E;
}

/* --- Key Features: LOSFlow --- */
.key-features-creditflow {
    background: #f9fafb;
}

.key-features-creditflow h2 {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 600;
    font-size: 42px;
    line-height: 1.2;
    color: #0d1b3f;
    margin-bottom: 60px;
    text-align: center;
}

.key-features-creditflow .features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.key-features-creditflow .feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 12px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-basis: calc(25% - 22.5px); /* Adjusted for 7 items, might need review for 3 per row */
}

.key-features-creditflow .feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.07);
}

.key-features-creditflow .feature-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 8px;
}

.key-features-creditflow .feature-icon img {
    width: 100%;
    height: auto;
}

.key-features-creditflow .feature-item h4 {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.4;
    color: #0d1b3f;
    margin: 0;
}

.key-features-creditflow .feature-item p {
    font-family: 'Geist', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.6;
    color: #0d1b3f !important;
    margin: 0;
}

@media (max-width: 1199px) {
    .key-features-creditflow .feature-item {
        flex-basis: calc(33.333% - 20px);
    }
}

@media (max-width: 991px) {
    .key-features-creditflow .feature-item {
        flex-basis: calc(50% - 15px);
    }
}

@media (max-width: 575px) {
    .key-features-creditflow .feature-item {
        flex-basis: 100%;
    }
}

/* --- Benefits Section: LOSFlow --- */
.product-benefits-creditflow {
    padding: 80px 0;
}

.product-benefits-creditflow .benefits-container {
    display: flex;
    align-items: center;
    background-color: #1583D0;
    padding: 30px 80px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.product-benefits-creditflow .benefits-container::before {
    content: '';
    position: absolute;
    right: -220px;
    top: 50%;
    transform: translateY(-50%);
    width: 520px;
    height: 520px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 1;
}

.product-benefits-creditflow .benefits-content {
    max-width: 55%;
    position: relative;
    z-index: 2;
}

.product-benefits-creditflow .benefits-image {
    position: absolute;
    right: 0px;
    top: 60%; /* Adjusted from 50% to better fit typical benefit images */
    transform: translateY(-50%);
    width: 30%; /* Adjusted width */
    z-index: 2;
}

.product-benefits-creditflow .benefits-content h3 {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 1.3;
    color: #FFFFFF;
    margin: 0 0 35px 0;
}

.product-benefits-creditflow .benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-benefits-creditflow .benefits-list li {
    font-family: 'Geist', sans-serif;
    font-weight: 100; /* Changed from 400 to 100 as per Figma for RulesFlow */
    font-size: 18px;
    line-height: 1.6;
    color: #FFFFFF;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.product-benefits-creditflow .benefits-list li::before {
    content: '✓'; /* Checkmark from Figma */
    font-weight: 600; /* Bold checkmark */
    font-size: 20px; /* Size of checkmark */
    line-height: 1.5; /* Align checkmark with text */
    flex-shrink: 0; /* Prevent checkmark from shrinking */
}

.product-benefits-creditflow .benefits-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px; /* If image has rounded corners */
}

/* --- Use Cases & Integrations: LOSFlow --- */
.product-use-cases-creditflow {
    background-color: #1181D0; /* Darker blue background */
}

.product-use-cases-creditflow .section-title {
    text-align: center;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 600;
    font-size: 42px;
    line-height: 1.2;
    color: #FFFFFF;
    margin-bottom: 60px;
}

.product-use-cases-creditflow .use-cases-integrations-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.product-use-cases-creditflow .card {
    background: #EBF1FD;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-use-cases-creditflow .card-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
}

.product-use-cases-creditflow .card h3 {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 600;
    font-size: 32px;
    line-height: 1.125;
    color: #141414;
    margin: 0;
}

.product-use-cases-creditflow .card ul {
    list-style-type: '• '; /* Bullet style */
    padding-left: 20px; /* Indentation for bullets */
    margin: 0;
    color: #3E3E3E;
    font-family: 'Geist', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* --- Why Choose LOSFlow --- */
.product-why-choose-creditflow {
    text-align: center;
    background: #FFFFFF;
}

.product-why-choose-creditflow .container {
    max-width: 800px;
    margin: 0 auto;
}

.product-why-choose-creditflow h2 {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 700;
    font-size: 42px;
    line-height: 1.2;
    color: #0d1b3f;
    margin-bottom: 20px;
}

.product-why-choose-creditflow .overview-highlight {
    color: #1583D0;
}

.product-why-choose-creditflow p {
    font-family: 'Geist', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.6;
    color: #3E3E3E;
    max-width: 700px;
    margin: 0 auto;
}

/* --- Customer Success Stories: LOSFlow --- */
/* Styles for case studies are in ../css/case-studies.css and assumed to be generic */

/* --- FAQ Section: LOSFlow (Figma Aligned) --- */
.product-faq-creditflow {
    background-color: #FFFFFF;
    padding: 60px clamp(20px, 7vw, 100px); /* Responsive padding L/R */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content on page */
    gap: 40px; /* Gap between title and accordion */
}

/* Container for FAQ title and accordion, to control max-width */
.product-faq-creditflow .container {
    max-width: 1235px; /* Figma's overall content width */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-faq-creditflow .section-title {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 600;
    font-size: 48px;
    line-height: 1.27; /* 61px/48px */
    color: #252525;
    text-align: center;
    margin-bottom: 20px; /* Part of overall section gap */
}

.faq-accordion { /* This is a shared class, ensure styles are appropriate or make it specific */
    max-width: 1030px; /* Figma's width for the accordion items */
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0; /* Individual items will have bottom border */
}

.faq-item { /* Shared class */
    border: none;
    border-bottom: 1px dashed #8E8E8E;
    border-radius: 0;
    overflow: visible; /* Ensure no clipping */
    width: 100%;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question { /* Shared class */
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0; /* Vertical padding, horizontal handled by parent */
    background-color: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: 'Geist', sans-serif;
    font-weight: 500;
    font-size: 26px;
    line-height: 34px;
    color: #252525;
}

.faq-toggle-icon { /* Shared class */
    width: 43px;
    height: 43px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; /* For pseudo-elements */
    transition: background-color 0.3s ease, border-color 0.3s ease;
    background-color: #FFFFFF;
    border: 1px solid #E0E0E0; /* Light border for visibility on white */
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.faq-toggle-icon::before,
.faq-toggle-icon::after {
    content: '';
    position: absolute;
    background-color: #2C2A2A; /* Plus icon parts color */
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

.faq-toggle-icon::before { /* Vertical bar of plus */
    width: 2.8px;
    height: 16px;
}

.faq-toggle-icon::after { /* Horizontal bar of plus */
    width: 16px;
    height: 2.8px;
}

/* Active state for icon (minus) */
.faq-item.active .faq-toggle-icon {
    background-color: #61B5F1;
    border-color: #61B5F1;
}

.faq-item.active .faq-toggle-icon::before { /* Becomes the minus bar */
    width: 16px;
    height: 2.8px;
    background-color: #FFFFFF; /* Minus line color */
    transform: rotate(0deg); /* Ensure it's horizontal */
}

.faq-item.active .faq-toggle-icon::after { /* Hide this bar for minus */
    transform: scaleX(0);
    opacity: 0;
}

.faq-answer { /* Shared class */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding-top 0.4s ease-out, padding-bottom 0.4s ease-out;
    background-color: #ffffff;
    font-family: 'Geist', sans-serif;
    font-weight: 100; /* Changed from 400 to 100 as per Figma for RulesFlow */
    font-size: 14px; /* Reduced from 16px, adjusted from 11px to be more readable */
    line-height: 1.6; /* Adjusted for 14px font */
    color: #797979;
    padding-left: 0; /* Align with question text */
    padding-right: 0; /* Align with question text */
}

.faq-item.active .faq-answer {
    max-height: 1000px; /* Increased to prevent cutting off content */
    padding-top: 2px; /* Reduced gap between question and answer */
    padding-bottom: 24px; /* Match question's top padding for symmetry */
}

.faq-answer p {
    padding: 0;
    margin: 0;
}

/* Hide old icon if styles somehow persist or are global */
.faq-arrow, .faq-icon {
    display: none !important;
}
