.fcu-tool-shell--loan-prepayment-calc {
    --primary-color: #0d6efd;
    --primary-hover: #0b5ed7;
    --bg-light: #ffffff;
    --card-light-bg: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #475569;
    --border-color: #cbd5e1;
    --success-bright: #059669;
    --success-bg: #d1fae5;
    --danger-bright: #dc2626;
    --danger-bg: #fee2e2;
}

.fcu-tool-shell--loan-prepayment-calc, .fcu-tool-shell--loan-prepayment-calc *, .fcu-tool-shell--loan-prepayment-calc *::before, .fcu-tool-shell--loan-prepayment-calc *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* Container Layout */
.fc-calculator-container {
    max-width: 850px;
    margin: 15px auto;
    background: var(--bg-light);
    padding: 28px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    color: var(--text-main);
}

.fc-header {
    text-align: center;
    margin-bottom: 24px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 12px;
}

.fc-title {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 6px;
}

.fc-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.4;
}

/* 2-Column Inputs Grid */
.fc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.fc-input-group {
    display: flex;
    flex-direction: column;
}

.fc-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.fc-label-row label {
    font-weight: 700;
    font-size: 13.5px;
    color: var(--text-main);
}

.fc-badge-val {
    background: #e0f2fe;
    color: #0369a1;
    font-size: 12.5px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 12px;
}

.fc-input-wrapper {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.fc-input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

.fc-input-wrapper input {
    border: none;
    padding: 11px 12px;
    width: 100%;
    outline: none;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
}

.fc-prefix, .fc-suffix {
    background: #f1f5f9;
    padding: 11px 14px;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 13.5px;
    white-space: nowrap;
}

.fc-fee-type {
    border: none;
    border-left: 1.5px solid var(--border-color);
    background: #f1f5f9;
    padding: 11px 10px;
    font-size: 13.5px;
    font-weight: 700;
    outline: none;
    cursor: pointer;
}

/* Range Sliders Styling */
.fc-slider {
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: #e2e8f0;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.fc-slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: transform 0.1s ease;
}

.fc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: var(--primary-hover);
}

/* गणना करें Button */
.fc-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    width: 100%;
    margin-top: 25px;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.25);
}

.fc-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* Error Box */
.fc-error-msg {
    color: #991b1b;
    background: #fef2f2;
    padding: 12px;
    border-radius: 8px;
    margin-top: 18px;
    font-size: 14px;
    font-weight: 600;
    display: none;
    border: 1px solid #fecaca;
    text-align: center;
}

/* High Contrast & Vibrant Results Section */
.fc-results-box {
    margin-top: 30px;
    border-top: 2px dashed #cbd5e1;
    padding-top: 25px;
    display: none;
    animation: fadeIn 0.4s ease-in-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fc-results-title {
    text-align: center;
    font-size: 19px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
    background: #eff6ff;
    padding: 12px;
    border-radius: 10px;
    border: 1.5px solid #bfdbfe;
}

/* Net Benefit Hero Badge */
.card-net-benefit {
    padding: 18px;
    border-radius: 12px;
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 22px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.fc-badge-success {
    background-color: var(--success-bg);
    color: var(--success-bright);
    border: 2px solid #a7f3d0;
}

.fc-badge-danger {
    background-color: var(--danger-bg);
    color: var(--danger-bright);
    border: 2px solid #fecaca;
}

/* Results Grid & High Contrast Cards */
.fc-results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}

.fc-res-card {
    background-color: #f8fafc;
    color: var(--text-main);
    padding: 18px;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    text-align: center;
}

.fc-card-full {
    grid-column: span 2;
}

.fc-card-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #475569;
    margin-bottom: 12px;
    font-weight: 800;
}

.fc-card-split {
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1.5px solid #e2e8f0;
    padding-top: 12px;
}

.fc-split-divider {
    border-left: 1.5px solid #cbd5e1;
    height: 35px;
}

.fc-split-val {
    font-size: 19px;
    font-weight: 800;
    color: var(--primary-color);
}

.fc-split-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

/* Vibrant Utility Text Colors */
.fc-text-success { color: var(--success-bright) !important; font-weight: 800; }
.fc-text-danger { color: var(--danger-bright) !important; font-weight: 800; }

/* Dynamic Suggestion Box */
.fc-suggestion {
    padding: 18px;
    border-radius: 10px;
    font-size: 14.5px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.fc-sugg-good {
    background: #eff6ff;
    border: 1.5px solid #bfdbfe;
    border-left: 6px solid var(--primary-color);
    color: #1e3a8a;
}

.fc-sugg-bad {
    background: #fef2f2;
    border: 1.5px solid #fecaca;
    border-left: 6px solid var(--danger-bright);
    color: #991b1b;
}

/* अस्वीकरण */
.fc-disclaimer {
    font-size: 12px;
    color: var(--text-muted);
    text-align: justify;
    line-height: 1.5;
    margin-top: 25px;
    border-top: 1px dashed #cbd5e1;
    padding-top: 14px;
}

/* Responsive Styles */
@media (max-width: 650px) {
    .fc-calculator-container {
        padding: 16px 12px;
        margin: 5px auto;
        border-radius: 12px;
        border: none;
    }

    .fc-grid, .fc-results-grid {
        grid-template-columns: 1fr;
    }

    .fc-card-full {
        grid-column: span 1;
    }

    .card-net-benefit {
        font-size: 18px;
    }
}
