/* ROOT VARIABLES */
:root { 
    --bp-primary: #0f172a; 
    --bp-accent: #3b82f6; 
    --bp-bg: #f1f5f9; 
    --bp-card-bg: #ffffff; 
    --bp-text: #334155; 
    --bp-border: #e2e8f0; 
}

/* MAIN WRAPPER (Replaces body styling) */
.bp-wrapper { 
    font-family: 'Segoe UI', system-ui, sans-serif; 
    background-color: var(--bp-bg); 
    color: var(--bp-text); 
    margin: 0; 
    padding: 0; 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
}

/* HEADER */
.bp-header { 
    background: var(--bp-primary); 
    color: white; 
    padding: 15px 0; 
    text-align: center; 
}
.bp-header h1 { 
    font-size: 1.5rem; 
    margin: 0; 
    letter-spacing: 1px; 
    color: white; /* Override global */
}
.bp-header p { 
    font-size: 0.9rem; 
    opacity: 0.8; 
    margin: 5px 0 0 0; 
}

/* MAIN LAYOUT */
.bp-main { 
    flex: 1; 
    display: flex; 
    justify-content: center; 
    padding: 20px; 
}

.bp-container { 
    background: var(--bp-card-bg); 
    width: 100%; 
    max-width: 900px; 
    padding: 40px; 
    border-radius: 16px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.05); 
    margin: 20px 0; 
}

/* HERO SECTION */
.bp-hero { 
    text-align: center; 
    margin-bottom: 40px; 
}
.bp-hero h2 { 
    font-size: 2rem; 
    color: var(--bp-primary); 
    margin-bottom: 10px; 
}
.bp-hero p { 
    color: #64748b; 
    max-width: 600px; 
    margin: 0 auto; 
}

/* FORM STYLES */
.bp-step { 
    display: none; 
    animation: bp-fadeIn 0.4s ease; 
}
.bp-step.active { 
    display: block; 
}

.bp-form-group { 
    margin-bottom: 24px; 
}

.bp-label { 
    display: block; 
    margin-bottom: 8px; 
    font-weight: 600; 
    font-size: 0.9rem; 
    color: var(--bp-primary); 
}

/* Input styling scoped to the container to avoid global conflicts */
.bp-container input, 
.bp-container select, 
.bp-container textarea { 
    width: 100%; 
    padding: 12px; 
    border: 2px solid var(--bp-border); 
    border-radius: 8px; 
    box-sizing: border-box; 
    font-size: 1rem; 
    transition: border-color 0.2s; 
    background: #fff; 
    font-family: inherit;
}
.bp-container input:focus, 
.bp-container textarea:focus { 
    border-color: var(--bp-accent); 
    outline: none; 
}
.bp-container textarea { 
    min-height: 100px; 
}

/* BUTTONS */
.bp-btn-group { 
    display: flex; 
    justify-content: space-between; 
    margin-top: 40px; 
    padding-top: 20px; 
    border-top: 1px solid var(--bp-border); 
}
.bp-btn { 
    padding: 12px 24px; 
    border: none; 
    border-radius: 8px; 
    cursor: pointer; 
    font-weight: 600; 
    font-size: 0.95rem; 
    transition: all 0.2s; 
}
.bp-btn-prev { 
    background: transparent; 
    color: var(--bp-text); 
    border: 2px solid var(--bp-border); 
}
.bp-btn-next, .bp-btn-submit { 
    background: var(--bp-accent); 
    color: white; 
    margin-left: auto; 
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3); 
}

/* AI SECTIONS */
.bp-ai-section { 
    background: #eff6ff; 
    padding: 20px; 
    border-radius: 12px; 
    border: 1px solid #bfdbfe; 
    margin-bottom: 20px; 
}
.bp-ai-btn { 
    background: #10b981; 
    color: white; 
    font-size: 0.9rem; 
    padding: 10px 20px; 
    margin-top: 5px; 
    border-radius: 6px; 
    border:none; 
    cursor:pointer; 
}
.bp-ai-btn:disabled { 
    background: #94a3b8; 
    cursor:not-allowed; 
}
.bp-status-log { 
    font-size: 0.85rem; 
    color: #64748b; 
    margin-top: 8px; 
    font-family: monospace; 
}

/* PROGRESS BAR */
.bp-progress-bar { 
    display: flex; 
    justify-content: space-between; 
    margin-bottom: 40px; 
    position: relative; 
}
.bp-progress-bar::before { 
    content: ''; 
    position: absolute; 
    top: 50%; 
    left: 0; 
    width: 100%; 
    height: 2px; 
    background: var(--bp-border); 
    z-index: 0; 
}
.bp-step-indicator { 
    width: 32px; 
    height: 32px; 
    background: var(--bp-border); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: white; 
    z-index: 1; 
    font-weight: bold; 
    font-size: 0.8rem; 
    transition: all 0.3s; 
}
.bp-step-indicator.active { 
    background: var(--bp-accent); 
    transform: scale(1.2); 
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2); 
}

/* GRIDS */
.bp-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.bp-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }

/* SWOT MATRIX */
.bp-swot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 10px; }
.bp-swot-box { padding: 10px; border-radius: 8px; }
.bp-swot-s { background: #f0fdf4; border: 1px solid #bbf7d0; }
.bp-swot-w { background: #fef2f2; border: 1px solid #fecaca; }
.bp-swot-o { background: #eff6ff; border: 1px solid #bfdbfe; }
.bp-swot-t { background: #fffbeb; border: 1px solid #fde68a; }

/* MISC ELEMENTS */
.bp-logo-preview { margin-top: 10px; max-width: 150px; max-height: 100px; display: none; }
#financialChart { max-height: 250px; margin-top: 15px; }
#save-notification { 
    position: fixed; 
    bottom: 20px; 
    right: 20px; 
    background: #1e293b; 
    color: white; 
    padding: 10px 20px; 
    border-radius: 8px; 
    font-size: 0.85rem; 
    opacity: 0; 
    transition: opacity 0.3s; 
    pointer-events: none; 
    z-index: 999; 
}

/* SEO FOOTER */
.bp-footer { 
    background: white; 
    border-top: 1px solid var(--bp-border); 
    padding: 40px 20px; 
    text-align: center; 
}
.bp-seo-content { max-width: 800px; margin: 0 auto; text-align: left; }
.bp-seo-content h3 { color: var(--bp-primary); margin-bottom: 15px; }
.bp-seo-content p { line-height: 1.6; margin-bottom: 15px; color: #475569; }
.bp-feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 30px; }
.bp-feature-item { background: #f8fafc; padding: 15px; border-radius: 8px; }
.bp-feature-item strong { display: block; color: var(--bp-accent); margin-bottom: 5px; }

/* ANIMATIONS */
@keyframes bp-fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* RESPONSIVE */
@media (max-width: 600px) {
    .bp-grid-2, .bp-grid-3, .bp-swot-grid { grid-template-columns: 1fr; }
    .bp-container { padding: 20px; }
    .bp-hero h2 { font-size: 1.5rem; }
}