/* Loan Calculator Styles */
.loan-calculator {
    max-width: 100%;
    width: 100%;
    margin: 20px auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    text-align: center;
}

.calculator-header p {
    font-size: 13px;
    margin-bottom: 20px;
}

.calculator-section {
    margin-bottom: 20px;
}

.calculator-section h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.slider {
    width: 100%;
    -webkit-appearance: none;
    height: 8px;
    background: #ddd;
    border-radius: 4px;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #5cb85c;
    border-radius: 50%;
    cursor: pointer;
}

.calculator-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 20px;
}

.detail-item {
    flex: 1;
    min-width: 120px;
    margin: 0 10px;
}

.detail-item h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.calculator-button button {
    padding: 10px 20px;
    background: #5cb85c;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.calculator-button button:hover {
    background: #4cae4c;
}

/* Popover Link Styling */
#popover {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
    background-color: #333;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 14px;
    margin-left: 5px;
}

#popover:hover {
    background-color: #5cb85c;
}

/* Popover Content Styling */
.popover {
    position: absolute;
    z-index: 1060;
    display: none;
    max-width: 276px;
    padding: 10px;
    font-size: 14px;
    line-height: 1.5;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

.popover b {
    color: #333;
}

.popover.bottom {
    margin-top: 10px;
}

.popover .arrow {
    position: absolute;
    width: 10px;
    height: 5px;
}

.popover.bottom .arrow {
    top: -5px;
    left: 50%;
    margin-left: -5px;
    border-bottom: 5px solid #000;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
}

.popover.bottom .arrow:after {
    content: "";
    position: absolute;
    top: 1px;
    left: -5px;
    border-bottom: 5px solid #fff;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
}

/* Media Query for Mobile */
@media (max-width: 600px) {
    .calculator-details {
        flex-direction: column;
        align-items: center;
    }

    .detail-item {
        width: 100%;
        margin: 10px 0;
    }
}