/* LIC BIMA KAVACH CALCULATOR STYLES v8.0 - WITH COLORFUL ICONS */

:root {
    --primary: #005A9C;
    --primary-dark: #004070;
    --secondary: #E67E22;
    --light: #f8f9fa;
    --border: #e2e8f0;
    --text: #333;
    --white: #fff;
    --shadow: 0 4px 15px rgba(0,0,0,0.05);
}

body { font-family: 'Poppins', sans-serif; background: #f4f7fc; color: var(--text); line-height: 1.6; margin: 0; }

/* Layout */
.container { max-width: 1400px; margin: 0 auto; padding: 20px; }
.main-container { display: grid; grid-template-columns: 450px 1fr; gap: 30px; margin-bottom: 30px; }
.full-width-container { width: 100%; display: block; }

@media (max-width: 1024px) {
    .main-container { grid-template-columns: 1fr; }
    .container { padding: 15px; }
}

/* Header */
.page-header { text-align: center; margin-bottom: 35px; }
.page-header h1 { color: var(--primary); margin-bottom: 5px; font-weight: 700; font-size: 2rem; }

/* Cards */
.card { background: var(--white); border-radius: 12px; box-shadow: var(--shadow); border: 1px solid var(--border); margin-bottom: 25px; overflow: hidden; }
.card-header { background: #fdfdfd; padding: 18px 25px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.card-header h2 { font-size: 1.1rem; color: var(--primary); margin: 0; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.card-body, .calculator { padding: 25px; }

/* Form */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.95rem; color: #444; }

/* Input with Icon & Stepper */
.input-with-stepper, .input-with-icon {
    display: flex; align-items: stretch; border: 1px solid #ccc; border-radius: 8px; overflow: hidden; height: 48px; transition: all 0.3s ease; background: #fff; position: relative;
}

/* Icon Box */
.input-with-icon i { width: 50px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem; flex-shrink: 0; border-right: 1px solid rgba(0,0,0,0.1); }

/* Icon Colors */
.input-with-icon i.fa-user { background: #3B82F6; }
.input-with-icon i.fa-calendar-alt { background: #F59E0B; }
.input-with-icon i.fa-rupee-sign { background: #10B981; }
.input-with-icon i.fa-hourglass-half { background: #8B5CF6; }
.input-with-icon i.fa-shopping-cart { background: #EC4899; }
.input-with-icon i.fa-chart-line { background: #EF4444; }
.input-with-icon i.fa-shield-alt { background: #6B7280; }
.input-with-icon i.fa-venus-mars { background: #E11D48; }
.input-with-icon i.fa-smoking { background: #57534E; }
.input-with-icon i.fa-clock { background: #0EA5E9; }

/* Inputs & Selects inside Icon Box */
.input-with-icon input, .input-with-icon select {
    flex: 1; border: none; padding: 0 15px; font-size: 1rem; outline: none; width: 100%; background: transparent; color: var(--text); z-index: 2; cursor: pointer; appearance: none;
}

.input-with-icon:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(0,90,156,0.1); }

/* Custom Dropdown Arrow Hack */
.input-with-icon:has(select)::after {
    content: "\f107"; font-family: "Font Awesome 5 Free"; font-weight: 900; position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: #666; pointer-events: none; font-size: 1rem; z-index: 1;
}

/* Stepper Buttons */
.stepper-btn { width: 45px; border: none; background: #eef2f7; cursor: pointer; font-size: 1.2rem; color: var(--primary); border: 1px solid #ddd; display: flex; align-items: center; justify-content: center; font-weight: bold; }
.stepper-btn:hover { background: #dfe7f0; color: var(--primary-dark); }
.stepper-btn:first-child { border-radius: 8px 0 0 8px; border-right: none; }
.stepper-btn:last-child { border-radius: 0 8px 8px 0; border-left: none; }
.input-with-stepper .input-with-icon { border-radius: 0; border: 1px solid #ccc; border-left: none; border-right: none; flex: 1; }

.slider { width: 100%; margin-top: 12px; accent-color: var(--primary); cursor: pointer; height: 6px; }
.note-text { font-size: 0.85rem; color: #666; margin-top: 5px; display: block; font-style: italic; }

.radio-group-box { display: flex; flex-direction: column; gap: 10px; }
.radio-group-box label { display: flex; align-items: center; padding: 12px; border: 1px solid #ddd; border-radius: 8px; cursor: pointer; transition: 0.2s; }
.radio-group-box label.active { background: #eef6fc; border-color: var(--primary); color: var(--primary); font-weight: 600; }
.radio-group-box input { margin-right: 10px; }

.grid-2-small { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

/* Advanced Section Styling */
.advanced-section {
    background: #f9f9f9;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

.adv-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.checkbox-container {
    display: block;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 0.95rem;
    user-select: none;
    color: #444;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #ccc;
    border-radius: 4px;
    transition: 0.2s;
}

.checkbox-container:hover input ~ .checkmark { background-color: #eee; }
.checkbox-container input:checked ~ .checkmark { background-color: var(--primary); border-color: var(--primary); }

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after { display: block; }

/* Buttons */
.form-actions { display: flex; gap: 12px; margin-top: 30px; }
.btn { padding: 14px 20px; border-radius: 8px; border: none; font-weight: 600; cursor: pointer; transition: all 0.2s; font-size: 1rem; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; flex: 1; box-shadow: 0 4px 6px rgba(0,90,156,0.2); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-secondary { background: #e2e8f0; color: #333; width: 55px; }

/* Edit Button */
.btn-edit { background: transparent; border: 1px solid var(--primary); color: var(--primary); padding: 8px 16px; border-radius: 6px; cursor: pointer; font-size: 0.9rem; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s; margin-top: 15px; }
.btn-edit:hover { background: var(--primary); color: #fff; }
.edit-action-container { text-align: right; width: 100%; }

/* Result Narrative */
.result-narrative {
    background: #eef6fc;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 1px solid #d0e3f5;
    text-align: center;
}

.narrative-header {
    font-size: 1rem;
    color: #666;
    margin-bottom: 10px;
}

.narrative-main {
    font-size: 1.4rem;
    color: #444;
    line-height: 1.4;
    margin-bottom: 10px;
}

.highlight-val {
    color: var(--primary);
    font-weight: 800;
}

.highlight-text {
    font-weight: 700;
    color: #333;
}

.narrative-sub {
    font-size: 1rem;
    color: #555;
    border-top: 1px dashed #ccc;
    padding-top: 10px;
}

/* Scenario Box */
.scenario-box {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.scenario-box h4 {
    margin-top: 0;
    color: var(--primary);
    font-size: 1.1rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.scenario-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.scenario-list li {
    margin-bottom: 18px;
    padding: 15px;
    padding-left: 60px;
    border-radius: 8px;
    position: relative;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.scenario-list li:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.scenario-list li::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 1rem;
    color: #fff;
    line-height: 36px;
    text-align: center;
}

.scenario-list li.scenario-death::before {
    content: "\f06d";
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 10px rgba(240, 147, 251, 0.4);
}

.scenario-list li.scenario-survival::before {
    content: "\f058";
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    box-shadow: 0 4px 10px rgba(67, 233, 123, 0.4);
}

.scenario-list strong { display: block; color: #333; margin-bottom: 4px; }

/* Results Grid */
.results-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.result-item { background: #f8f9fa; padding: 15px; border-radius: 10px; text-align: center; border: 1px solid #eee; }
.result-item.highlight { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; grid-column: 1 / -1; padding: 30px; box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3); }
.value { font-size: 1.4rem; font-weight: 700; color: var(--primary); display: block; }
.highlight .value { color: #fff; font-size: 2.8rem; text-shadow: 0 2px 4px rgba(0,0,0,0.2); }

/* Enhanced Icon Boxes with Colorful Backgrounds */
.icon-box {
    flex: 1;
    background: #fff;
    border: none;
    padding: 20px 15px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    min-width: 140px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.icon-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Colorful Icon Circle */
.icon-box .icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.icon-box i {
    font-size: 1.8rem;
    color: #fff;
    z-index: 2;
}

/* Individual Icon Color Schemes with Gradients */
.icon-premium .icon-circle {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.icon-years .icon-circle {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.icon-total-cost .icon-circle {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.icon-death-benefit .icon-circle {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.icon-accident .icon-circle {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.icon-paid .icon-circle {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.icon-base .icon-circle {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.icon-rider .icon-circle {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.icon-gst .icon-circle {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.icon-lifestage .icon-circle {
    background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
}

.icon-box .val {
    font-size: 1.3rem;
    color: #1a202c;
    font-weight: 800;
    display: block;
    margin-top: 8px;
}

.icon-box .lbl {
    font-size: 0.85rem;
    color: #718096;
    display: block;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* Highlight Box Enhanced */
.highlight .icon-circle {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    margin: 0 auto 15px;
}

.highlight i {
    font-size: 2.5rem;
}

/* Premium Breakdown Enhanced Icons */
.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.breakdown-item {
    background: #fff;
    padding: 18px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
}

.breakdown-item:hover {
    border-color: var(--primary);
    transform: scale(1.05);
}

.breakdown-item .icon-sm {
    font-size: 1.5rem;
    margin-bottom: 8px;
    display: block;
}

/* Icon Flex Container */
.icon-flex-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

/* Animated Pulse Effect for Important Values */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.icon-box:hover .icon-circle {
    animation: pulse 1s infinite;
}

.section-title-sm {
    font-size: 0.95rem;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 1px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Tabs */
.results-tabs { display: flex; border-bottom: 2px solid #eee; margin-bottom: 25px; gap: 15px; padding: 0 10px; }
.tab-btn { background: none; border: none; padding: 12px 25px; font-size: 1rem; color: #777; cursor: pointer; border-bottom: 3px solid transparent; font-weight: 600; transition: color 0.3s; }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { display: none; animation: fadeIn 0.4s ease-out; }
.tab-panel.active { display: block; }

@keyframes fadeIn { from{opacity:0;transform:translateY(10px);} to{opacity:1;transform:translateY(0);} }

/* Table */
.table-container { overflow-x: auto; border: 1px solid #e0e6ed; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
table { width: 100%; border-collapse: collapse; min-width: 600px; font-size: 0.95rem; }
th, td { padding: 15px 20px; border-bottom: 1px solid #e0e6ed; text-align: left; }
th { background: #f1f5f9; color: var(--primary); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }
tr:nth-child(even) { background: #fafbfc; }
tr:hover { background: #f0f7ff; }

/* Chart */
.chart-wrapper { display: flex; flex-direction: column; gap: 30px; margin-top: 20px; }
.chart-container { position: relative; height: 380px; width: 100%; margin-top: 20px; }
.chart-container-pie { position: relative; height: 320px; width: 100%; max-width: 450px; margin: 0 auto; }
.chart-title { text-align: center; color: var(--primary); font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; position: relative; display: inline-block; width: 100%; }
.chart-title:after { content: ''; display: block; width: 50px; height: 3px; background: var(--secondary); margin: 10px auto 0; border-radius: 2px; }

/* Utils */
.section-lang-switcher { display: flex; border: 1px solid #ddd; border-radius: 6px; overflow: hidden; background: #fff; flex-shrink: 0; margin-left: auto; }
.lang-btn { flex: 1; border: none; background: #fff; padding: 8px 15px; cursor: pointer; font-size: 0.85rem; font-weight: 600; transition: 0.2s; }
.lang-btn.active { background: var(--primary); color: #fff; }
.lang-btn:not(:last-child) { border-right: 1px solid #ddd; }

/* Content Section Icons */
.icon-lg { font-size: 1.5rem; color: var(--secondary); margin-right: 10px; vertical-align: middle; }
.content-card h2 { display: flex; align-items: center; }

/* Info Table */
.info-table { width: 100%; border-collapse: collapse; margin-top: 15px; }
.info-table th, .info-table td { border: 1px solid #eee; padding: 12px; text-align: left; }
.info-table th { background: #f8f9fa; color: var(--primary); width: 40%; font-weight: 700; }

/* FAQ */
.faq-item { border-bottom: 1px solid #eee; padding: 18px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item summary { cursor: pointer; font-weight: 600; color: var(--primary); list-style: none; display: flex; justify-content: space-between; align-items: center; font-size: 1.05rem; }
.faq-item summary:after { content: "+"; font-size: 1.5rem; color: var(--secondary); font-weight: 400; width: 30px; text-align: center; }
.faq-item[open] summary:after { content: "-"; }
.faq-ans { margin-top: 12px; color: #555; padding-left: 15px; border-left: 3px solid var(--secondary); background: #fdfdfd; padding: 15px; line-height: 1.7; }

/* Responsive */
@media (max-width: 768px) {
    .icon-flex-container {
        flex-direction: column;
    }
    
    .icon-box {
        min-width: 100%;
    }
    
    .breakdown-grid {
        grid-template-columns: 1fr;
    }
}
