/* =========================================
   Fintopia Calculators - Arva Theme
   Primary: #5766f5  Dark: #5766f5  Accent: #8fd4b0 / #8fd4b0
========================================= */
:root{
    --calc-primary:#5766f5;
    --calc-primary-2:#5766f5;
    --calc-accent:#8fd4b0;
    --calc-accent-2:#8fd4b0;
    --calc-muted:#4C6966;
    --calc-line:#E5E7EB;
    --calc-soft:#F6F8FC;
}

/* ---------- Listing page cards ---------- */
.calc_listing_section .calc_card{
    background:#fff;
    border:1px solid var(--calc-line);
    border-radius:20px;
    overflow:hidden;
    height:100%;
    transition:.35s ease;
    position:relative;
}
.calc_listing_section .calc_card:hover{
    box-shadow:0 24px 50px rgba(28, 35, 80,.12);
    transform:translateY(-6px);
    border-color:var(--calc-accent);
}
.calc_listing_section .calc_card .calc_card_img{
    height:180px;
    overflow:hidden;
    position:relative;
}
.calc_listing_section .calc_card .calc_card_img img{
    width:100%;height:100%;object-fit:cover;transition:.5s ease;
}
.calc_listing_section .calc_card:hover .calc_card_img img{transform:scale(1.08);}
.calc_listing_section .calc_card .calc_icon{
    position:absolute;top:150px;left:24px;
    width:60px;height:60px;border-radius:50%;
    background:var(--calc-accent);
    display:flex;align-items:center;justify-content:center;
    color:var(--calc-primary);font-size:24px;
    box-shadow:0 8px 20px rgba(28, 35, 80,.18);
}
.calc_listing_section .calc_card .calc_card_body{padding:34px 24px 26px;}
.calc_listing_section .calc_card .calc_tag{
    font-size:13px;font-weight:600;letter-spacing:.5px;
    color:var(--calc-muted);text-transform:uppercase;
}
.calc_listing_section .calc_card h3{
    font-size:22px;margin:6px 0 10px;line-height:1.3;
}
.calc_listing_section .calc_card h3 a{color:var(--calc-primary);}
.calc_listing_section .calc_card p{color:var(--calc-muted);margin-bottom:18px;font-size:15px;}
.calc_listing_section .calc_card .calc_view_btn{
    display:inline-flex;align-items:center;gap:8px;
    font-weight:600;color:var(--calc-primary);
}
.calc_listing_section .calc_card .calc_view_btn i{transition:.3s;}
.calc_listing_section .calc_card:hover .calc_view_btn i{transform:translateX(5px);}

/* ---------- Equal-height cards on calculator listing ---------- */
.calc_listing_section .row{display:flex;flex-wrap:wrap;}
.calc_listing_section .row > [class*="col-"]{display:flex;flex-direction:column;}
.calc_listing_section .bu_service_card{flex:1 1 auto;display:flex;flex-direction:column;}
.calc_listing_section .bu_service_card .card-body{display:flex;flex-direction:column;flex:1 1 auto;}
.calc_listing_section .bu_service_card .card-body .learn-more{margin-top:auto;}

/* ---------- Icon-only calculator cards (image removed) ---------- */
.calc_listing_section .bu_service_card{padding:34px 28px;}
.calc_listing_section .bu_service_card .card-body{padding:0;position:relative;}
.calc_listing_section .bu_service_card .icon-overlay{
    position:static;top:auto;left:auto;height:70px;width:70px;line-height:70px;
    border-radius:16px;margin-bottom:18px;
}
.calc_listing_section .bu_service_card .icon-overlay i{font-size:30px;}

/* ---------- Font Awesome icon inside theme service card ---------- */
.bu_service_card .icon-overlay{
    display:flex;align-items:center;justify-content:center;
}
.bu_service_card .icon-overlay i{
    font-size:26px;color:#fff;line-height:1;transition:.35s ease;
}
/* Theme flips the badge to white on hover — so darken the icon so it stays visible */
.bu_service_card:hover .icon-overlay i{
    color:var(--calc-primary);
}
.bu_service_card .calc_tag{
    display:block;font-size:13px;font-weight:600;letter-spacing:.5px;
    color:var(--calc-muted);text-transform:uppercase;margin:14px 0 6px;transition:.35s ease;
}
.bu_service_card:hover .calc_tag{
    color:var(--calc-accent);
}

/* ---------- Single calculator layout ---------- */
.calc_single_section{padding:80px 0;}
.calc_wrap{
    background:#fff;border:1px solid var(--calc-line);
    border-radius:24px;overflow:hidden;
    box-shadow:0 20px 60px rgba(28, 35, 80,.06);
}
.calc_wrap .row{--bs-gutter-x:0;}
.calc_head_bar{
    display:flex;align-items:center;gap:16px;
    padding:26px 34px;border-bottom:1px solid var(--calc-line);
    background:linear-gradient(90deg,#5766f5 0%,#2e3691 100%);
}
.calc_head_bar .ch_icon{
    width:54px;height:54px;border-radius:14px;
    background:var(--calc-accent);color:var(--calc-primary);
    display:flex;align-items:center;justify-content:center;font-size:24px;flex:none;
}
.calc_head_bar h2{color:#fff;font-size:26px;margin:0;}
.calc_head_bar p{color:#C7D6D3;margin:2px 0 0;font-size:14px;}

.calc_inputs{padding:38px 34px;border-right:1px solid var(--calc-line);}
.calc_results{padding:38px 34px;background:var(--calc-soft);}

.calc_field{margin-bottom:24px;}
.calc_field label{
    display:flex;justify-content:space-between;align-items:center;
    font-weight:600;color:var(--calc-primary);margin-bottom:10px;font-size:15px;
}
.calc_field .val_badge{
    background:var(--calc-primary);color:#fff;
    padding:4px 12px;border-radius:8px;font-size:14px;font-weight:600;min-width:70px;text-align:center;
}
.calc_field input[type=number],
.calc_field select{
    width:100%;padding:12px 16px;border:1px solid var(--calc-line);
    border-radius:12px;font-size:15px;color:var(--calc-primary);background:#fff;
    outline:none;transition:.25s;
}
.calc_field input[type=number]:focus,
.calc_field select:focus{border-color:var(--calc-primary);box-shadow:0 0 0 3px rgba(28, 35, 80,.08);}

.calc_field input[type=range]{
    -webkit-appearance:none;width:100%;height:6px;border-radius:6px;margin-top:14px;
    background:linear-gradient(90deg,var(--calc-primary) 0%,var(--calc-accent) 100%);
    cursor:pointer;
}
.calc_field input[type=range]::-webkit-slider-thumb{
    -webkit-appearance:none;width:22px;height:22px;border-radius:50%;
    background:#fff;border:4px solid var(--calc-primary);cursor:pointer;box-shadow:0 2px 6px rgba(0,0,0,.2);
}
.calc_field input[type=range]::-moz-range-thumb{
    width:22px;height:22px;border-radius:50%;background:#fff;border:4px solid var(--calc-primary);cursor:pointer;
}

.calc_toggle{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:24px;}
.calc_toggle .ct_btn{
    flex:1;min-width:110px;text-align:center;padding:11px 8px;border-radius:12px;
    border:1px solid var(--calc-line);background:#fff;color:var(--calc-primary);
    font-weight:600;cursor:pointer;transition:.25s;font-size:14px;
}
.calc_toggle .ct_btn.active{background:var(--calc-primary);color:#fff;border-color:var(--calc-primary);}

/* Results */
.calc_results h4{font-size:16px;color:var(--calc-muted);text-transform:uppercase;letter-spacing:.5px;margin-bottom:22px;}
.calc_result_main{
    background:linear-gradient(135deg,#5766f5 0%,#2e3691 100%);border-radius:18px;padding:26px 24px;color:#fff;text-align:center;margin-bottom:22px;
}
.calc_result_main span{display:block;font-size:14px;color:rgba(255,255,255,.8);margin-bottom:6px;}
.calc_result_main strong{font-size:34px;font-weight:700;color:#fff;}
.calc_result_row{
    display:flex;justify-content:space-between;align-items:center;
    padding:16px 20px;border:1px solid var(--calc-line);border-radius:14px;background:#fff;margin-bottom:14px;
}
.calc_result_row .crr_label{color:var(--calc-muted);font-size:15px;}
.calc_result_row .crr_value{font-weight:700;color:var(--calc-primary);font-size:18px;}
/* gains/interest figure (always the last result row) in Growth Green */
.calc_results .calc_result_row:last-of-type .crr_value{color:#56AF87;}
.calc_chart_wrap{margin-top:26px;}
.calc_bar{height:16px;border-radius:10px;overflow:hidden;display:flex;background:var(--calc-line);}
.calc_bar .cb_invest{background:var(--calc-primary);}
.calc_bar .cb_return{background:var(--calc-accent);}
.calc_legend{display:flex;gap:24px;margin-top:14px;font-size:14px;color:var(--calc-muted);}
.calc_legend .dot{display:inline-block;width:12px;height:12px;border-radius:50%;margin-right:7px;}
.calc_legend .dot.invest{background:var(--calc-primary);}
.calc_legend .dot.return{background:var(--calc-accent);}

/* Explanation block */
.calc_explain{padding:50px 0 0;}
.calc_explain .ce_box{
    background:#fff;border:1px solid var(--calc-line);border-radius:20px;padding:34px 34px;
}
.calc_explain h3{font-size:22px;color:var(--calc-primary);margin-bottom:14px;}
.calc_explain h4{font-size:18px;color:var(--calc-primary);margin:22px 0 10px;}
.calc_explain p{color:var(--calc-muted);margin-bottom:14px;line-height:1.7;}
.calc_formula{
    background:var(--calc-soft);border-left:4px solid var(--calc-accent);
    padding:18px 22px;border-radius:10px;font-family:monospace;color:var(--calc-primary);margin:12px 0;
}
.calc_explain ul{margin:0 0 14px 0;padding-left:20px;color:var(--calc-muted);}
.calc_explain ul li{margin-bottom:8px;line-height:1.6;}

@media(max-width:991px){
    .calc_inputs{border-right:none;border-bottom:1px solid var(--calc-line);}
    .calc_head_bar h2{font-size:22px;}
    .calc_result_main strong{font-size:28px;}
}

/* ---------- Growth chart ---------- */
.calc_chart_area{margin-top:28px;}
.calc_chart_area h5{font-size:15px;font-weight:700;color:var(--calc-primary);margin:0 0 12px;}
.calc_growth{width:100%;position:relative;}
.calc_growth .cg_svg{width:100%;height:auto;display:block;}
.cg_pt{fill:#5766f5;opacity:.5;}
.cg_guide{stroke:#5766f5;stroke-width:1;stroke-dasharray:4 4;}
.cg_hoverdot{fill:#5766f5;stroke:#fff;stroke-width:2.5;}
.cg_hit{cursor:crosshair;}
.cg_tip{
    position:absolute;transform:translateX(-50%);pointer-events:none;z-index:6;
    background:#1c2350;color:#fff;border-radius:10px;padding:9px 12px;
    font-size:12px;line-height:1.55;white-space:nowrap;box-shadow:0 12px 26px rgba(28,35,80,.30);
}
.cg_tip b{display:block;margin-bottom:5px;font-size:12px;font-weight:700;}
.cg_tip span{display:flex;align-items:center;gap:7px;}
.cg_tip em{font-style:normal;font-weight:700;margin-left:auto;padding-left:16px;}
.cg_tip i{width:8px;height:8px;border-radius:50%;display:inline-block;flex:none;}
.cg_tip i.d1{background:#5766f5;}
.cg_tip i.d2{background:#56af87;}
.cg_tip .tt{border-top:1px solid rgba(255,255,255,.2);margin-top:5px;padding-top:5px;}
.cg_grid{stroke:#E8ECF3;stroke-width:1;}
.cg_axis{stroke:#D3D9E6;stroke-width:1;}
.cg_ylab{fill:#8A93A6;font-size:11px;text-anchor:end;}
.cg_xlab{fill:#8A93A6;font-size:11px;text-anchor:middle;}
.cg_rlab{fill:#2e7d5b;font-size:11px;font-weight:700;text-anchor:middle;}
.cg_invest{fill:rgba(87,102,245,.16);}
.cg_interest{fill:rgba(86,175,135,.30);}
.cg_line{fill:none;stroke:#5766f5;stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round;}
.cg_invline{fill:none;stroke:#5766f5;stroke-width:1.4;stroke-dasharray:5 4;opacity:.55;}
.cg_dot{fill:#5766f5;stroke:#fff;stroke-width:2;}

/* ---------- HRA "least of three" comparison bars ---------- */
.hra_compare{margin-top:26px;}
.hra_compare h5{font-size:15px;font-weight:700;color:var(--calc-primary);margin:0 0 14px;}
.hb_row{margin-bottom:14px;}
.hb_top{display:flex;justify-content:space-between;align-items:center;font-size:13px;color:var(--calc-muted);margin-bottom:6px;gap:12px;}
.hb_label span{color:#2e7d5b;font-weight:600;}
.hb_val{font-weight:700;color:var(--calc-primary);white-space:nowrap;}
.hb_track{height:12px;border-radius:8px;background:var(--calc-line);overflow:hidden;}
.hb_fill{height:100%;border-radius:8px;background:rgba(87,102,245,.35);transition:width .3s ease;}
.hb_min .hb_fill{background:#56af87;}
.hb_min .hb_val{color:#2e7d5b;}

/* ---------- Disclaimer ---------- */
.calc_disclaimer{
    margin-top:34px;padding:18px 22px;border:1px solid var(--calc-line);
    border-left:4px solid var(--calc-accent);border-radius:12px;background:var(--calc-soft);
    color:var(--calc-muted);font-size:13px;line-height:1.7;
}
.calc_disclaimer strong{color:var(--calc-primary);}

/* ---------- Select dropdown (nice-select) — full-width field ---------- */
.calc_field .nice-select{
    -webkit-appearance:none;appearance:none;
    display:block;float:none;width:100%;height:auto;line-height:24px;
    padding:12px 40px 12px 16px;
    border:1px solid var(--calc-line);border-radius:12px;
    background:#fff;color:var(--calc-primary);font-size:15px;font-weight:500;
    outline:none;transition:.25s;
}
.calc_field .nice-select:hover,
.calc_field .nice-select:focus,
.calc_field .nice-select.open{border-color:var(--calc-primary);box-shadow:0 0 0 3px rgba(87,102,245,.08);}
.calc_field .nice-select:after{
    border-bottom:2px solid var(--calc-muted);border-right:2px solid var(--calc-muted);
    width:8px;height:8px;right:18px;margin-top:-6px;
}
.calc_field .nice-select .current{font-weight:600;}
.calc_field .nice-select .list{
    width:100%;margin-top:6px;border-radius:12px;
    box-shadow:0 14px 34px rgba(28,35,80,.14);padding:6px;z-index:20;
}
.calc_field .nice-select .option{
    border-radius:8px;line-height:1.5;min-height:auto;padding:9px 14px;font-size:14px;
}
.calc_field .nice-select .option.selected{color:var(--calc-primary);font-weight:600;}
.calc_field .nice-select .option:hover,
.calc_field .nice-select .option.focus,
.calc_field .nice-select .option.selected.focus{background:var(--calc-soft);}
