/* ============================================
   CZ KAROBAR - Main Stylesheet
   Insurance Aggregator Platform
   ============================================ */

:root {
    --primary: #0a5c36;
    --primary-light: #0d8a6a;
    --primary-dark: #074228;
    --secondary: #1a3a5c;
    --accent: #f0a500;
    --light-bg: #f8f9fa;
    --card-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    --card-hover-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

/* ─── GLOBAL ────────────────────────────────── */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #333;
    line-height: 1.7;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--primary-dark);
}

/* ─── NAVBAR ────────────────────────────────── */
.navbar {
    padding: 0.6rem 0;
}
.navbar-brand img {
    transition: var(--transition);
}
.navbar-brand:hover img {
    transform: scale(1.03);
}
.navbar .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    color: #444;
    transition: var(--transition);
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--primary);
}
.navbar .btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}
.navbar .btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* ─── HERO ──────────────────────────────────── */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 5rem 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}
.hero-section h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.2rem;
}
.hero-section p {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 600px;
}
.hero-section .btn {
    padding: 0.8rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
}
.btn-hero {
    background: #fff;
    color: var(--primary);
    border: none;
}
.btn-hero:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ─── SECTIONS ──────────────────────────────── */
.section-padding {
    padding: 4.5rem 0;
}
.section-title {
    font-weight: 700;
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}
.section-subtitle {
    color: #777;
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
}
.bg-light-custom {
    background: var(--light-bg);
}

/* ─── CARDS ─────────────────────────────────── */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    overflow: hidden;
}
.card:hover {
    box-shadow: var(--card-hover-shadow);
    transform: translateY(-4px);
}
.card-lift:hover {
    transform: translateY(-6px);
}

/* Feature cards */
.feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    height: 100%;
}
.feature-card .icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
}
.feature-card .icon-circle i {
    font-size: 1.8rem;
    color: #fff;
}
.feature-card h5 {
    font-weight: 700;
    color: var(--secondary);
}
.feature-card p {
    color: #666;
    font-size: 0.95rem;
}

/* Plan cards */
.plan-card {
    border-radius: 12px;
    height: 100%;
}
.plan-card .card-body {
    padding: 1.5rem;
}
.plan-card .plan-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}
.plan-card .plan-type-badge {
    font-size: 0.75rem;
    padding: 0.3em 0.8em;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
}
.badge-car { background: #e3f2fd; color: #1565c0; }
.badge-health { background: #fce4ec; color: #c62828; }
.badge-travel { background: #e8f5e9; color: #2e7d32; }
.badge-life { background: #fff3e0; color: #ef6c00; }

.plan-card .company-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 8px;
    background: #f5f5f5;
    padding: 5px;
}

/* Insurance type cards */
.insurance-type-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    border: 2px solid transparent;
}
.insurance-type-card:hover {
    border-color: var(--primary);
}
.insurance-type-card .type-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}
.insurance-type-card h5 {
    font-weight: 700;
    color: var(--secondary);
}

/* ─── CALCULATOR ────────────────────────────── */
.calculator-section {
    background: var(--light-bg);
}
.calculator-card {
    border-radius: 16px;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Insurance type radio selector */
.type-selector {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.type-selector .type-option {
    flex: 1;
    min-width: 120px;
}
.type-selector input[type="radio"] {
    display: none;
}
.type-selector label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    background: #fff;
}
.type-selector label i {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #888;
    transition: var(--transition);
}
.type-selector label span {
    font-weight: 600;
    font-size: 0.85rem;
    color: #555;
}
.type-selector input[type="radio"]:checked + label {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(10, 92, 54, 0.05), rgba(13, 138, 106, 0.05));
}
.type-selector input[type="radio"]:checked + label i {
    color: var(--primary);
}
.type-selector input[type="radio"]:checked + label span {
    color: var(--primary);
}
.type-selector label:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.calc-fields {
    animation: fadeIn 0.3s ease;
}

/* Result cards */
.result-card {
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: #fff;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}
.result-card:hover {
    box-shadow: var(--card-hover-shadow);
}
.result-card .premium-amount {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
}
.result-card .company-name {
    font-weight: 600;
    color: var(--secondary);
}

/* ─── COMPARE ──────────────────────────────── */
.compare-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.compare-filters .filter-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    border: 2px solid #e0e0e0;
    background: #fff;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: var(--transition);
}
.compare-filters .filter-btn:hover,
.compare-filters .filter-btn.active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.compare-card {
    border-radius: 12px;
    height: 100%;
    position: relative;
}
.compare-card .feature-list {
    list-style: none;
    padding: 0;
}
.compare-card .feature-list li {
    padding: 0.4rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}
.compare-card .feature-list li i {
    color: var(--primary);
    margin-right: 0.5rem;
}

/* ─── BLOG ──────────────────────────────────── */
.blog-card {
    border-radius: 12px;
    height: 100%;
}
.blog-card .blog-date {
    font-size: 0.85rem;
    color: #999;
}
.blog-card h5 {
    font-weight: 700;
    color: var(--secondary);
}
.blog-card p {
    color: #666;
    font-size: 0.95rem;
}

/* ─── PLAN DETAIL ───────────────────────────── */
.plan-detail-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 3rem 0;
    color: #fff;
}
.plan-features-list {
    list-style: none;
    padding: 0;
}
.plan-features-list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
}
.plan-features-list li i {
    color: var(--primary);
    margin-right: 0.8rem;
    font-size: 1.1rem;
}

/* Lead form sidebar */
.lead-form-card {
    border-radius: 12px;
    border-top: 4px solid var(--primary);
    position: sticky;
    top: 80px;
}
.lead-form-card .btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    padding: 0.7rem;
    font-weight: 600;
}
.lead-form-card .btn-primary:hover {
    background: var(--primary-dark);
}

/* ─── CTA SECTION ──────────────────────────── */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 4rem 0;
    color: #fff;
    text-align: center;
}
.cta-section h2 {
    font-weight: 800;
    margin-bottom: 1rem;
}
.cta-section p {
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* ─── BUTTONS ──────────────────────────────── */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}
.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* ─── BREADCRUMB ───────────────────────────── */
.breadcrumb {
    background: transparent;
    padding: 0;
    font-size: 0.9rem;
}
.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
}
.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.6);
}

/* ─── FORM STYLES ──────────────────────────── */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.2rem rgba(10, 92, 54, 0.15);
}

/* ─── LOADING SPINNER ──────────────────────── */
.calc-spinner {
    display: none;
    text-align: center;
    padding: 2rem;
}
.calc-spinner .spinner-border {
    width: 3rem;
    height: 3rem;
    color: var(--primary);
}

/* ─── FOOTER ───────────────────────────────── */
footer h6 {
    color: #fff;
    font-size: 0.9rem;
    letter-spacing: 1px;
}
footer .text-white-50:hover {
    color: var(--accent) !important;
}

/* ─── RTL SUPPORT ──────────────────────────── */
[dir="rtl"] .me-2 { margin-right: 0 !important; margin-left: 0.5rem !important; }
[dir="rtl"] .ms-2 { margin-left: 0 !important; margin-right: 0.5rem !important; }
[dir="rtl"] .text-md-start { text-align: right !important; }
[dir="rtl"] .text-md-end { text-align: left !important; }
[dir="rtl"] .plan-features-list li i { margin-right: 0; margin-left: 0.8rem; }
[dir="rtl"] .compare-card .feature-list li i { margin-right: 0; margin-left: 0.5rem; }
[dir="rtl"] body { font-family: 'Noto Nastaliq Urdu', 'Segoe UI', sans-serif; }
[dir="rtl"] .result-card { border-left: none; border-right: 4px solid var(--primary); }

/* ─── ANIMATIONS ───────────────────────────── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}
.slide-up {
    animation: slideUp 0.6s ease;
}

/* ─── RESPONSIVE ───────────────────────────── */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 3rem 0;
    }
    .hero-section h1 {
        font-size: 2rem;
    }
    .section-padding {
        padding: 3rem 0;
    }
    .type-selector {
        gap: 0.5rem;
    }
    .type-selector .type-option {
        min-width: 100px;
    }
}

@media (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 1.6rem;
    }
    .hero-section p {
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .type-selector {
        flex-direction: column;
    }
    .type-selector .type-option {
        min-width: 100%;
    }
    .type-selector label {
        flex-direction: row;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
    }
    .type-selector label i {
        margin-bottom: 0;
        font-size: 1.4rem;
    }
    .lead-form-card {
        position: static;
    }
}

/* ─── UTILITIES ────────────────────────────── */
.fw-800 { font-weight: 800; }
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.rounded-xl { border-radius: 12px; }
.shadow-soft { box-shadow: var(--card-shadow); }
