.calculator-section {
    background-color: #f8f9fa;
    padding: 3rem 0;
}

.calculator-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin: 2rem auto;
    max-width: 1100px;
}

.calculator-container h2 {
    color: #1a237e;
    margin-bottom: 1.5rem;
    text-align: center;
}

.calculator-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #424242;
    font-weight: 500;
}

#quickLoanAmount {
    width: 100%;
    margin-bottom: 0.5rem;
    height: 8px;
    cursor: pointer;
    background: #e0e0e0;
    border-radius: 4px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

#quickLoanAmount::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: #1a237e;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#quickLoanAmount::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

#quickLoanAmount::-moz-range-thumb {
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: #1a237e;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: none;
}

#quickLoanAmount::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

#loanAmountValue {
    display: block;
    text-align: center;
    font-size: 1.2rem;
    color: #1a237e;
    font-weight: 600;
}

.term-buttons {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
}

.term-btn {
    background: #f5f5f5;
    border: none;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.term-btn:hover {
    background: #e0e0e0;
}

.term-btn.active {
    background: #1a237e;
    color: #fff;
}

.calculator-results {
    background-color: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.result-item {
    background: #f8f9fa;
    padding: 1.2rem;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.result-label-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-value {
    font-weight: 600;
    color: #1a237e;
    font-size: 1.1rem;
    text-align: right;
    margin-left: 1rem;
}

.result-item.total {
    grid-column: 1/-1;
    background: linear-gradient(135deg, #1a237e, #283593);
    color: #fff;
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.result-item.total .result-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

.result-item.total .result-value {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
}

.result-item.total .info-icon {
    color: rgba(255, 255, 255, 0.9);
}

.result-item.total:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.calculator-cta-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.calculator-apply-button {
    display: inline-block;
    background-color: #ff6d00;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 109, 0, 0.3);
}

.calculator-apply-button:hover {
    background-color: #ff8f00;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(255, 109, 0, 0.4);
}

.result-label {
    color: #616161;
    font-weight: 500;
}

#monthlyPayment {
    font-size: 1.8em;
    font-weight: 700;
    color: #1a237e;
    display: block;
    text-align: center;
    margin: 10px 0;
}

.calculator-disclaimer {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #616161;
    line-height: 1.5;
    border-left: 4px solid #1a237e;
}

.info-icon {
    color: #6c757d;
    cursor: help;
    font-size: 14px;
    position: relative;
}

.info-icon:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    max-width: 250px;
}

@media (max-width: 768px) {
    .calculator-container {
        margin: 1rem;
        padding: 1.5rem;
    }

    .result-grid {
        grid-template-columns: 1fr;
    }

    .result-item {
        padding: 1rem;
    }

    .result-value {
        font-size: 1rem;
    }

    .info-icon:hover::after {
        max-width: 200px;
        white-space: normal;
    }

    .term-buttons {
        grid-template-columns: repeat(3, 1fr);
    }
}
