/* =========================================================
   Full-Width & Fully Responsive Loan Eligibility Calculator
   ========================================================= */

.fcu-tool-shell--loan-eligibility-calc {
    --fc-primary: #0b3d91;
    --fc-secondary: #1e5cc4;
    --fc-light-bg: #ffffff;
    --fc-card-bg: #f8fafc;
    --fc-text: #1e293b;
    --fc-subtext: #64748b;
    --fc-border: #cbd5e1;
    --fc-success: #16a34a;
    --fc-danger: #dc2626;
    --fc-warning: #d97706;
}

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

/* Full Width Main Wrapper (Max 850px for Standard Integration) */
.fc-tool-wrapper {
    width: 100%;
    max-width: 850px;
    margin: 15px auto;
    background: var(--fc-light-bg);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

/* Header */
.fc-calculator-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1.5px solid #f1f5f9;
}

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

.fc-subtitle {
    color: var(--fc-subtext);
    font-size: 13.5px;
    line-height: 1.4;
}

/* Form Fields Layout */
.fc-field {
    margin-bottom: 20px;
    width: 100%;
}

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

.fc-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--fc-text);
}

.fc-sublabel {
    font-weight: 400;
    font-size: 12px;
    color: var(--fc-subtext);
}

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

/* Inputs & Custom Select Box */
.fc-input-group {
    width: 100%;
    margin-bottom: 8px;
}

.fc-input-group input[type="number"], 
.fc-select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--fc-border);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--fc-text);
    background: #fff;
    outline: none;
    transition: all 0.2s ease;
}

.fc-input-group input[type="number"]:focus, 
.fc-select:focus {
    border-color: var(--fc-primary);
    box-shadow: 0 0 0 3px rgba(11, 61, 145, 0.12);
}

.fc-select-wrapper {
    position: relative;
    width: 100%;
}

.fc-select-wrapper::after {
    content: '▼';
    font-size: 11px;
    color: #64748b;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.fc-select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

/* Range Slider 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(--fc-primary);
    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.15);
    background: var(--fc-secondary);
}

/* Hints & Status */
.fc-hint {
    font-size: 12px;
    color: var(--fc-subtext);
    margin-top: 4px;
}

.fc-cibil-status {
    margin-top: 5px;
    font-size: 13px;
    font-weight: 700;
}

/* Button */
.fc-btn-primary {
    width: 100%;
    padding: 15px;
    background: var(--fc-primary);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: 8px;
}

.fc-btn-primary:hover {
    background: var(--fc-secondary);
}

/* Result Box */
.fc-result-panel {
    margin-top: 22px;
    padding: 20px;
    border-radius: 12px;
    background: var(--fc-card-bg);
    border: 1px solid #e2e8f0;
    text-align: center;
    animation: fcFadeIn 0.3s ease-in-out;
}

.fc-result-title {
    font-size: 16px;
    color: var(--fc-text);
    font-weight: 700;
}

.fc-loan-amount {
    font-size: 32px;
    color: var(--fc-success);
    font-weight: 800;
    margin: 12px 0;
}

.fc-emi-text {
    font-size: 17px;
    color: var(--fc-primary);
    font-weight: 600;
}

/* Warnings and Advice Boxes */
.fc-advice-box {
    background: #fff7ed;
    border: 1px solid #ffedd5;
    color: #c2410c;
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 12px;
    text-align: left;
    font-size: 13.5px;
    line-height: 1.5;
}

.fc-warning-box {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    text-align: left;
    font-size: 13px;
    line-height: 1.5;
}

.fc-error-text {
    color: var(--fc-danger);
    font-weight: 700;
    font-size: 14px;
    line-height: 1.5;
}

/* अस्वीकरण */
.fc-disclaimer {
    margin-top: 20px;
    padding: 12px 14px;
    background: #f8fafc;
    border-left: 4px solid var(--fc-primary);
    color: var(--fc-subtext);
    font-size: 12px;
    line-height: 1.5;
    border-radius: 6px;
}

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

/* Mobile Responsive Optimization */
@media (max-width: 650px) {
    .fc-tool-wrapper {
        padding: 16px 12px;
        margin: 5px auto;
        border-radius: 12px;
        border: none;
    }

    .fc-title {
        font-size: 18px;
    }

    .fc-loan-amount {
        font-size: 26px;
    }

    .fc-label-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .fc-badge-val {
        align-self: flex-end;
        margin-top: -18px;
    }
}
