:root {
    --primary-color: #0f4c81;
    /* Classic Blue - Trustworthy */
    --accent-color: #20c997;
    /* Modern Teal - Growth/Money */
    --text-color: #2d3748;
    /* Dark Gray - Readable */
    --text-light: #718096;
    --bg-color: #f7fafc;
    --card-bg: #ffffff;
    --border-radius: 8px;
    /* Slightly sharper for professional look */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.loan-calculator-widget {
    font-family: var(--font-family);
    background-color: var(--card-bg);
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.calculator-header {
    background-color: white;
    padding: 30px;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
}

.calculator-header h2 {
    color: var(--primary-color);
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.calculator-header p {
    color: var(--text-light);
    margin: 0;
    font-size: 16px;
}

.calculator-body {
    padding: 30px;
    background-color: var(--bg-color);
}

/* Inputs */
.inputs-section {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid #edf2f7;
}

.input-group {
    margin-bottom: 25px;
}

.input-group:last-child {
    margin-bottom: 0;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 15px;
}

.value-display {
    font-family: 'Monaco', 'Consolas', monospace;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 16px;
    background: #ebf8ff;
    color: #2b6cb0;
    padding: 6px 12px;
    border-radius: 6px;
}

select {
    width: 100%;
    padding: 14px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 16px;
    color: var(--text-color);
    background-color: white;
    cursor: pointer;
    transition: border-color 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23718096'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
}

select:focus {
    border-color: var(--primary-color);
    outline: none;
}

input[type="range"] {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border: 4px solid white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 13px;
    margin-top: 8px;
}

.calculate-btn {
    width: 100%;
    padding: 18px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    margin-top: 10px;
    box-shadow: 0 4px 6px rgba(15, 76, 129, 0.2);
}

.calculate-btn:hover {
    background-color: #0a365c;
}

.calculate-btn:active {
    transform: translateY(1px);
}

/* Results */
.results-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px dashed #e2e8f0;
}

.results-header {
    text-align: center;
    margin-bottom: 30px;
}

.results-header h3 {
    font-size: 24px;
    color: var(--text-color);
    margin-bottom: 8px;
    display: inline-block;
    position: relative;
    padding-bottom: 10px;
}

.results-header h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.results-header p {
    color: var(--text-light);
    font-size: 14px;
}

.bank-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.bank-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-4px);
}

.bank-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background-color: transparent;
    transition: background-color 0.3s;
}

.bank-card:hover::before {
    background-color: var(--primary-color);
}

.bank-info {
    flex: 0 0 220px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.bank-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    background-color: #f8fafc;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.bank-name {
    font-weight: 700;
    color: var(--text-color);
    font-size: 18px;
    margin: 0;
    line-height: 1.3;
}

.loan-details {
    flex: 1;
    display: flex;
    justify-content: space-around;
    gap: 24px;
    margin: 0 30px;
    padding: 0 20px;
    border-left: 1px solid #edf2f7;
    border-right: 1px solid #edf2f7;
}

.detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.detail-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #718096;
    margin-bottom: 6px;
    font-weight: 600;
}

.detail-value {
    font-weight: 600;
    color: var(--text-color);
    font-size: 16px;
}

.detail-value.highlight {
    color: var(--primary-color);
    font-size: 22px;
    font-weight: 800;
}

align-items: stretch;
padding: 20px;
gap: 20px;
}

.bank-info {
    flex: auto;
    width: 100%;
    margin-bottom: 5px;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 15px;
}

.loan-details {
    flex-direction: column;
    /* Stack details vertically on mobile */
    gap: 15px;
    margin: 0;
    padding: 0;
    border: none;
}

.detail-item {
    flex-direction: row;
    /* Label left, value right */
    justify-content: space-between;
    width: 100%;
    border-bottom: 1px dashed #edf2f7;
    padding-bottom: 8px;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    margin-bottom: 0;
    font-size: 13px;
}

.detail-value {
    font-size: 15px;
}

.detail-value.highlight {
    font-size: 18px;
}

.bank-action {
    width: 100%;
    margin-top: 10px;
}

.apply-btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
}
}