/* Cashflow Calc - Bootstrap Custom Styles */

/* CSS Variables for Brand Colors */
:root {
    --bs-primary: #2563eb;
    --bs-primary-rgb: 37, 99, 235;
    --bs-secondary: #10b981;
    --bs-secondary-rgb: 16, 185, 129;
    --bs-dark: #1e293b;
    --bs-light: #f8fafc;
    --cc-primary: #2563eb;
    --cc-primary-dark: #1d4ed8;
    --cc-secondary: #10b981;
    --cc-accent: #f59e0b;
    --cc-dark: #1e293b;
    --cc-light: #f8fafc;
    --cc-gray: #64748b;
    --cc-border: #e2e8f0;
    --cc-error: #dc2626;
    --cc-success: #16a34a;
}

/* Base Overrides */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--cc-dark);
    background: var(--cc-light);
}

/* Logo Styles */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--cc-primary) !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-brand .text-success {
    color: var(--cc-secondary) !important;
}

.logo-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* Button Overrides */
.btn-primary {
    background-color: var(--cc-primary);
    border-color: var(--cc-primary);
}

.btn-primary:hover {
    background-color: var(--cc-primary-dark);
    border-color: var(--cc-primary-dark);
}

.btn-success {
    background-color: var(--cc-secondary);
    border-color: var(--cc-secondary);
}

.btn-outline-secondary {
    border-color: var(--cc-border);
    color: var(--cc-dark);
}

.btn-outline-secondary:hover {
    border-color: var(--cc-primary);
    color: var(--cc-primary);
    background-color: transparent;
}

/* Page Header */
.page-header-gradient {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

/* Section backgrounds */
.bg-dark-section {
    background-color: var(--cc-dark);
}

/* Text colors */
.text-gray {
    color: var(--cc-gray) !important;
}

.text-cc-primary {
    color: var(--cc-primary) !important;
}

.text-cc-secondary {
    color: var(--cc-secondary) !important;
}

/* Cards */
.card {
    border-radius: 12px;
    border-color: var(--cc-border);
}

.card-feature {
    transition: transform 0.3s, box-shadow 0.3s;
}

.card-feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
}

/* Feature Icon */
.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Problem Card (dark) */
.card-dark {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ROI Preview */
.roi-preview {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--cc-border);
}

.roi-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--cc-border);
}

.roi-row:last-child {
    border-bottom: none;
}

.roi-row.highlight {
    background: linear-gradient(135deg, #dcfce7 0%, #d1fae5 100%);
    margin: 0 -1.5rem;
    padding: 16px 1.5rem;
    border-radius: 8px;
}

.roi-row .label {
    color: var(--cc-gray);
}

.roi-row .value {
    font-weight: 600;
}

.roi-row.highlight .label,
.roi-row.highlight .value {
    color: #166534;
    font-weight: 700;
}

/* Hero Badge */
.hero-badge {
    background: var(--cc-secondary);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-block;
}

/* Testimonial Card */
.stars {
    color: var(--cc-accent);
    font-size: 1.2rem;
}

.avatar-circle {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--cc-primary) 0%, var(--cc-secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

/* Pricing Card */
.pricing-card {
    border: 2px solid var(--cc-primary) !important;
    box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.15);
    position: relative;
}

.pricing-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--cc-primary);
    color: white;
    padding: 8px 24px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Highlight Section */
.highlight-image-bg {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 40px;
    border-radius: 16px;
}

/* Check marks */
.check-icon {
    color: var(--cc-secondary);
    font-weight: bold;
}

/* Trust Stats */
.trust-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--cc-primary);
}

/* Last Updated Badge */
.last-updated {
    background: #f1f5f9;
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--cc-gray);
}

/* Important Notice */
.alert-warning-custom {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    color: #92400e;
}

/* Footer */
.footer-dark {
    background-color: var(--cc-dark);
}

.footer-dark a {
    color: white !important;
    text-decoration: none;
}

.footer-dark a:hover {
    text-decoration: underline;
}

/* Form Focus */
.form-control:focus,
.form-select:focus {
    border-color: var(--cc-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Alert Customization */
.alert-success-custom {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: var(--cc-success);
}

.alert-danger-custom {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--cc-error);
}

/* Solution Badge */
.badge-solution {
    display: inline-block;
    background: #dcfce7;
    color: #166534;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* CTA Section */
.cta-gradient {
    background: linear-gradient(135deg, var(--cc-primary) 0%, var(--cc-primary-dark) 100%);
}

/* Browser Window Mockup */
.browser-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.browser-dot-red { background: #ef4444; }
.browser-dot-yellow { background: #eab308; }
.browser-dot-green { background: #22c55e; }

/* State Tabs */
.state-tab {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.state-tab-active {
    background: var(--cc-primary);
    color: white;
}

.state-tab-inactive {
    background: #f1f5f9;
    color: var(--cc-gray);
}

/* Quick Links */
.quick-link-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--cc-border);
    text-decoration: none;
    color: var(--cc-dark);
    transition: all 0.3s;
    display: block;
    text-align: center;
}

.quick-link-card:hover {
    border-color: var(--cc-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    color: var(--cc-dark);
}

.quick-link-icon {
    font-size: 2rem;
}

/* Sidebar Links */
.sidebar-link {
    color: var(--cc-gray);
    text-decoration: none;
    padding: 8px 12px;
    display: block;
    border-radius: 6px;
    transition: all 0.3s;
}

.sidebar-link:hover,
.sidebar-link.active {
    color: var(--cc-primary);
    background: #f0f9ff;
}

/* Contact Cards */
.contact-card {
    background: white;
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--cc-border);
    text-align: center;
}

.contact-icon {
    font-size: 2rem;
}

/* Checkout Steps */
.step-circle {
    width: 32px;
    height: 32px;
    background: var(--cc-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.step-circle-inactive {
    background: var(--cc-border);
    color: var(--cc-gray);
}

/* Success Icon */
.success-icon-lg {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 10px 16px;
    }
    
    .roi-row.highlight {
        margin: 0 -1rem;
        padding: 12px 1rem;
    }
    
    .highlight-image-bg {
        padding: 20px;
    }
    
    .pricing-badge {
        font-size: 0.8rem;
        padding: 6px 16px;
    }
}

@media (max-width: 576px) {
    .hero-cta .btn {
        width: 100%;
    }
    
    .trust-number {
        font-size: 1.5rem;
    }
}

/* Honeypot field - hidden from users, catches bots */
.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

/* FAQ Link Cards */
.faq-link-card {
    transition: all 0.3s;
}

.faq-link-card:hover {
    border-color: var(--cc-primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Letter spacing utility */
.letter-spacing-1 {
    letter-spacing: 1px;
}
