/* ================================ */
/* 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: 48px;
}

.Ro_loan_amount_value_wrapper {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}

.Ro_loan_amount_currency {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    color: #2F2F2F;
}
.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;
    min-width: 120px;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 12px 15px;
    height: 50px;
}

.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: 0;
    border-radius: 8px;
    padding: 0;
    flex: none;
    min-width: 220px;
}

.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;
}
.Ro_loan_amount_manual_input {
    width: 170px;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    text-align: left;
}

.Ro_calculator_section_content_left input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}
.Ro_calculator_section_content_left input[type="number"]::-webkit-inner-spin-button,
.Ro_calculator_section_content_left input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    appearance: none !important;
}
.residual-percentage-input select {
    height: 50px;
    border-radius: 8px;
    border: 1px solid #ccc;
}
.residual-percentage-input select:focus {
    box-shadow: none;
    outline: none;
    border: 1px solid #000;
}
.Ro_loan_amount_manual_input:focus {
    outline: none;
    border: none;
}

/* Calculator - Interest rate controls (summary card) */
.Ro_rate_information {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 24px;
    row-gap: 12px;
    margin-top: 8px;
}

.Ro_rate_item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.Ro_rate_item .text_small-size {
    font-size: 13px;
    color: #9e9e9e;
}

.Ro_interest_rate_controls {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background-color: #f9fafb;
}
.Ro_interest_rate_suffix {
    font-size: 14px;
}
.Ro_interest_rate_input {
    width: 100%;
    max-width: 110px;
    padding: 8px 10px 8px 10px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    background-color: #ffffff;
    text-align: center;
    line-height: normal;
}

.Ro_interest_rate_input:focus {
    outline: none;
    border-color: #111827;
    box-shadow: 0 0 0 1px #1118270d;
}

.Ro_interest_rate_step_btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background-color: #ffffff;
    color: #111827;
    font-size: 18px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

/* Ensure order: - input % + without changing HTML */
.Ro_interest_rate_step_btn_down {
    order: 1;
}

.Ro_interest_rate_input {
    order: 2;
}

.Ro_interest_rate_suffix {
    order: 3;
}

.Ro_interest_rate_step_btn_up {
    order: 4;
}

.Ro_interest_rate_step_btn:hover {
    background-color: #111827;
    color: #ffffff;
    border-color: #111827;
}

.Ro_interest_rate_preset_buttons {
    display: flex;
    flex-direction: row;
    gap: 6px;
}

.Ro_interest_rate_preset_btn {
    display: block;
    width: 100%;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background-color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    color: #111827;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.Ro_interest_rate_preset_btn:hover {
    background-color: #111827;
    color: #ffffff;
    border-color: #111827;
}

.Ro_interest_rate_disclaimer {
    font-size: 16px;
}

@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%;
    }
}
