/* ================================ */
/* Finance Calculator Styles */
/* ================================ */
.Ro_finance_calculator {
    padding: 80px 0;
    background: #f8f9fa;
}

.blck_gray_color {
    color: #3E3E3E;
}

.gray_color {
    color: #97A0AE;
}

.Ro_calculator_section_content {
    margin-top: 40px;
    display: flex;
    gap: 80px;
}

.Ro_calculator_section_content_left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.Ro_calculator_section_content_right {
    width: 450px;
}

.Ro_payment_summary_card {
    background: #ffff;
    border-radius: 20px;
    box-shadow: 0 4px 200px rgba(0, 0, 0, 0.1);
}

.Ro_payment_summary_content {
    padding: 50px 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.Ro_payment_details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.Ro_payment_display {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.Ro_payment_amount {
    font-size: 50px;
    font-weight: 800;
    color: #3E3E3E;
    margin-top: 0;
    display: flex;
    align-items: baseline;
    line-height: 1;
}

.Ro_payment_frequency {
    font-size: 22px;
    font-weight: 800;
    color: #3e3e3e;
    margin-left: 2px;
    position: relative;
    top: 0px;
}

.Ro_payment_divider {
    border: none;
    border-top: 1px solid #000;
    margin: 0;
    width: 100%;
    opacity: 10%;
}

.Ro_rate_information {
    display: flex;
    gap: 88px;
}

.Ro_rate_item {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.Ro_rate_value {
    font-size: 28px;
    font-weight: 800;
    color: #3E3E3E;
}

.Ro_payment_cta_button {
    width: 100%;
    height: 60px;
    padding: 10px 10px;
    background: #303030;
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 40px;
}

.Ro_loan_amount_section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.Ro_loan_amount_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 39px;
}

.Ro_loan_slider_container {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.Ro_loan_slider_wrapper {
    position: relative;
    width: 100%;
    height: 23px;
    display: flex;
    align-items: center;
}

.Ro_loan_slider_track {
    position: absolute;
    width: 100%;
    height: 4px;
    background: rgba(173, 181, 208, 0.29);
    border-radius: 100px;
    top: 50%;
    transform: translateY(-50%);
}

.Ro_loan_slider_active {
    position: absolute;
    height: 4px;
    background: #2F2F2F;
    border-radius: 100px;
    top: 50%;
    transform: translateY(-50%);
    width: 10%; 
    transition: width 0.1s ease;
}

.Ro_loan_slider_handle {
    position: absolute;
    width: 22px;
    height: 22px;
    background: white;
    border: 7px solid #2F2F2F;
    border-radius: 50%;
    cursor: pointer;
    left: 10%; 
    transform: translateX(-50%);
    transition: left 0.1s ease;
    z-index: 2;
}

.Ro_loan_amount_input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 3;
    -webkit-appearance: none;
    appearance: none;
}

.Ro_loan_amount_input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    cursor: pointer;
}

.Ro_loan_amount_input::-moz-range-thumb {
    width: 22px;
    height: 22px;
    cursor: pointer;
    background: transparent;
    border: none;
}

.Ro_loan_slider_labels {
    display: flex;
    justify-content: space-between;
}

.Ro_term_section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.Ro_term_label {
    font-weight: 500;
}

.Ro_term_buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.Ro_term_payment_button {
    padding: 10px 15px;
    height: 37px;
    border: 1px solid #d0d2d5;
    border-radius: 6px;
    background: transparent;
    color: #1D1D1D;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: normal;
}

.Ro_term_payment_button.active {
    background: #1D1D1D;
    color: white;
    border-color: #000;
}

.Ro_term_payment_button:hover:not(.active) {
    border-color: #d0d2d5;
    background: #d0d2d5;
}

.Ro_repayments_label {
    font-size: 14px;
    font-weight: 500;
    color: #3E3E3E;
    opacity: 40%;
}

/* Residual/Balloon Styles */
.Ro_residual_section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.residual-balloon-toggle {
    margin-bottom: 0;
}

.residual-toggle-btn {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
}

.residual-toggle-btn:hover {
    background: #e9e9e9;
    border-color: #ccc;
}

.residual-toggle-btn.active {
    background: #333;
    color: white;
    border-color: #333;
}

.residual-icon {
    font-size: 16px;
    font-weight: bold;
}

.residual-inputs {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.residual-input-row {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.residual-dollar-input {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 12px;
    min-width: 120px;
}

.dollar-symbol {
    color: #333;
    font-weight: bold;
    margin-right: 5px;
}

.residual-amount-input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-size: 14px;
}

.residual-or {
    color: #666;
    font-weight: 500;
}

.residual-percentage-input {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 12px;
    min-width: 120px;
}

.percentage-symbol {
    color: #333;
    font-weight: bold;
    margin-right: 2px;
}

.percentage-sign {
    color: #333;
    font-weight: bold;
    margin-right: 5px;
}

.residual-percentage-input-field {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-size: 14px;
}

@media (max-width: 768px) {
    .Ro_calculator_section_content {
        flex-direction: column;
        gap: 40px;
    }
    
    .Ro_calculator_section_content_right {
        width: 100%;
    }
    
    .residual-input-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .residual-dollar-input,
    .residual-percentage-input {
        min-width: auto;
        width: 100%;
    }
}
