﻿/*[S] Mortgage Calculation Page*/
.calc_title {
    font-size: 16px;
}

.dropdown_box {
    font-size: 16px;
    border-radius: 4px !important;
    height: 36px;
}

.pia_label {
    font-weight: bold;
    font-size: 14px
}

.calc_button_margin {
    margin: 35px 0px 80px;
}

.ready_to_apply_box {
    border: 1px solid #dddddd;
    padding: 15px 15px 30px 15px;
}

div#viz{
    text-align:center;
}

.estmonthlypmt_font {
    color: #01A773;
    font-size: 50px;
    font-weight: 600;
}

.estmonthlypmt_box {
    padding: 35px 0px 75px;
}

.mtg_calc_page_div {
    margin-top: 30px;
    margin-bottom: 0px;
}

.mtg_calc_input_area {
    margin: 35px 0px;
    padding-left: 30px;
    padding-right: 30px;
}

.calc-tab-wrap {
    width: 100%;
    max-width: 1000px;
    margin: 20px auto 30px auto;
    display: flex;
    border-radius: 0;
    overflow: hidden;
}

.calc-tab-btn {
    flex: 1;
    height: 42px;
    border: none;
    outline: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #1f1f1f;
    background: #d9d9d9;
    cursor: pointer;
    transition: background 0.2s ease;
}

.calc-tab-btn.active {
    background: #008080;
    color: #fff;
}

.calc-tab-btn:not(:last-child) {
    border-right: 1px solid #ffffff;
}

.calc-tab-btn:hover {
    opacity: 0.95;
}

#mortgageCalculatorSection{
    margin-top:80px;
}

.extra_principal_page_div {
    padding: 20px 0 40px 0;
}

.extra-note {
    color: #008080;
    margin-bottom: 25px;
    font-size: 18px;
}

.margin_top_15 {
    margin-top: 15px;
}

.margin_top_20 {
    margin-top: 20px;
}

.extra_calc_btn_wrap .extra-calc-btn {
    width: 100%;
    margin-top: 0;
}

.extra_result_box,
.extra_summary_box {
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 20px;
    border-radius: 6px;
    text-align: left;
}

#extraInterestChart {
    background: #fff;
    border-radius: 6px;
    min-height: 340px;
    border: 1px solid #e5e7eb;
}

.extra_result_wrap {
    margin-top: 30px;
    text-align: center;
}

.extra-result-title {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin: 20px 0;
}

.extra-input-summary-box {
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    background: #f7fcf5;
    padding: 18px 16px 10px 16px;
    margin: 0 auto 20px auto;
    max-width: 1000px;
    text-align: left;
}

.extra-input-summary-title {
    font-size: 25px;
    font-weight: 700;
    color: #008080;
    margin-bottom: 18px;
    margin-left: 10px;
}

.extra-input-summary-row {
    display: flex;
    flex-wrap: wrap;
}

.extra-input-item {
    width: 20%;
    min-width: 160px;
    padding: 10px 16px;
    border-right: 1px solid #e5e5e5;
    text-align: center;
}

.extra-input-label {
    font-size: 14px;
    color: #444;
    margin-bottom: 8px;
}

.extra-input-value {
    font-size: 18px;
    font-weight: 700;
    color: #222;
}

.extra-comparison-table {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid #bfbfbf;
    border-collapse: collapse;
}

.extra-comparison-header {
    padding: 14px 10px;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
}

.extra-header-gray {
    background: #d9d9d9;
    color: #1f1f1f;
}

.extra-header-green {
    background: #008080;
}

.extra-comparison-cell {
    min-height: 120px;
    padding: 18px 12px;
    border-top: 1px solid #bfbfbf;
    border-right: 1px solid #bfbfbf;
    text-align: center;
    background: #fff;
}

.extra-green-border {
    border: 1px solid #008080;
}

.extra-cell-label {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin-bottom: 10px;
}

.extra-cell-value {
    font-size: 20px;
    font-weight: 400;
    color: #111;
    line-height: 1.25;
}

.extra-saved-row {
    max-width: 1000px;
    margin: 16px auto 28px auto;
    text-align: left;
    font-size: 18px;
}

.extra-saved-label {
    font-weight: 700;
    color: #111;
}

.extra-saved-value {
    font-weight: 700;
    color: #1d4ed8;
}

.extra-chart-title {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin: 16px 0 14px 0;
}

.extra-chart-box {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
}

.extra-calc-error {
    display: block;
    margin-top: 12px;
    margin-bottom: 10px;
    color: #d93025;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.7;
    text-align: left;
    white-space: pre-line;
}

.input-error {
    border: 1px solid #d93025 !important;
    box-shadow: none !important;
}

.input-group-error .form-control,
.input-group-error .input-group-addon {
    border-color: #d93025 !important;
}

.extra-input-summary-box .extra-input-icon {
    width: 80px !important;
    height: 80px !important;
    margin: 0 auto 8px auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

.extra-input-summary-box .extra-input-icon img {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
    object-fit: contain !important;
    display: block !important;
}

.extra-savings-banner {
    max-width: 100%;
    margin: 18px auto 22px auto;
    padding: 20px 28px;
    padding-left: 40px;
    border: 1px solid #73c3ae;
    border-radius: 16px;
    background: #f5fbf9;
    display: flex;
    align-items: center;
    gap: 18px;
    text-align: left;
}

.extra-savings-icon {
    width: 70px;
    min-width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.extra-savings-icon img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.extra-savings-text {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    font-weight: 500;
}

.extra-savings-highlight {
    color: #008080;
    font-weight: 700;
}

html, body {
    overflow-x: hidden;
}

.extra_principal_page_div,
.extra_result_wrap,
.extra-input-summary-box,
.extra-comparison-table,
.extra-chart-box,
#extraInterestChart {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.extra-mobile-summary {
    max-width: 1000px;
    margin: 0 auto;
}

.extra-mobile-card {
    border: 1px solid #d9d9d9;
    background: #fff;
    margin-bottom: 18px;
    border-radius: 6px;
    overflow: hidden;
}

.extra-mobile-card-header {
    padding: 14px 16px;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
}

.extra-mobile-card-gray .extra-mobile-card-header {
    background: #d9d9d9;
    color: #1f1f1f;
}

.extra-mobile-card-green .extra-mobile-card-header {
    background: #008080;
    color: #fff;
}

.extra-mobile-row {
    padding: 18px 16px;
    border-top: 1px solid #e5e5e5;
    text-align: center;
}

.extra-mobile-label {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
}

.extra-mobile-value {
    font-size: 18px;
    color: #111;
}

.extra-input-item.no-border {
    border-right: none;
}

@media (max-width: 767px) {
    .calc-tab-wrap {
        margin: 40px auto 30px auto;
    }

    .extra_principal_page_div {
        margin: 0;
    }

    .extra-savings-text {
        font-size: 16px;
        line-height: 1.5;
    }

    .calc-tab-btn {
        font-size: 11px;
        padding: 0 8px;
    }

    .mtg_calc_page_div {
        margin-right: 0px;
        margin-left: 0px;
    }

    .col-md-6, .mtg_calc_input_area {
        padding-right: 0px;
        padding-left: 0px;
    }

    .text_align_left{
        margin-top: 5px;
    }

    .extra-input-item,
    .extra-input-item.no-border {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        display: block !important;
        text-align: center !important;
        border-right: 1px solid #e5e5e5;
        border-bottom: 1px solid #e5e5e5;
        padding: 18px 16px !important;
        box-sizing: border-box !important;
    }

    .extra-input-item:last-child,
    .extra-input-item.no-border:last-child {
        border-bottom: none !important;
    }

    .extra-input-label,
    .extra-input-value {
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
        display: block !important;
        white-space: normal !important;
        word-break: keep-all;
    }

    .extra-input-summary-box {
        background: #f5f8f4;
        border: 1px solid #cfd8d3;
        border-radius: 14px;
        padding: 14px 10px 16px;
        box-sizing: border-box;
    }

    .extra-input-summary-title {
        margin: 0 0 14px 0;
        text-align: center;
        font-size: 20px;
        font-weight: 700;
        color: #008080;
    }

    .extra-input-summary-row {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        overflow: visible !important;
        padding: 0 !important;
    }

    .extra-input-summary-row:nth-of-type(2n+1) {
        border-right: 1px solid #e5e5e5 !important;
    }

    .extra-input-item:nth-child(2),
    .extra-input-item:nth-child(4) {
        border-right: none;
    }

    .extra-input-item:last-child {
        grid-column: 1 / -1;
        border-right: none;
        border-bottom: none;
        padding-top: 20px;
        padding-bottom: 14px;
    }

    .extra-input-icon {
        margin-bottom: 10px;
    }

    .extra-input-icon img {
        width: 42px;
        height: 42px;
    }

    .extra-input-label {
        font-size: 11px;
        line-height: 1.3;
        margin-bottom: 6px;
        color: #333;
    }

    .extra-input-value {
        font-size: 17px;
        line-height: 1.3;
        font-weight: 700;
        color: #222;
    }

    .extra-comparison-table {
        display: block;
        border: none;
        margin-top: 16px;
    }

    .extra-comparison-header,
    .extra-comparison-cell,
    .extra-green-border {
        display: block;
        width: 100%;
        border-left: none;
        border-right: none;
        box-sizing: border-box;
    }

    .extra-comparison-header {
        font-size: 18px;
        padding: 12px 10px;
    }

    .extra-comparison-cell,
    .extra-green-border {
        min-height: 0;
        padding: 14px 10px;
        border: 1px solid #d9d9d9;
        border-top: none;
        margin-bottom: 12px;
        border-radius: 0 0 8px 8px;
    }

    .extra-cell-label {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .extra-cell-value {
        font-size: 18px;
    }

    .extra-header-gray {
        border-radius: 8px 8px 0 0;
    }

    .extra-header-green {
        border-radius: 8px 8px 0 0;
        margin-top: 8px;
    }

    .extra-savings-banner {
        padding: 20px 12px;
        gap: 10px;
        align-items: center;
    }

    .extra-savings-icon {
        width: 42px;
        min-width: 42px;
        height: 42px;
    }

    .extra-savings-icon img {
        width: 36px;
        height: 36px;
    }

    .extra-savings-text {
        font-size: 14px;
        line-height: 1.5;
    }

    .extra-savings-highlight {
        font-size: 15px;
        font-weight: 700;
    }

    .extra-chart-box,
    #extraInterestChart {
        width: 100%;
        max-width: 100%;
        min-width: 0 !important;
        overflow: hidden;
        box-sizing: border-box;
        border: none;
    }

    #extraInterestChart svg {
        width: 100% !important;
        height: auto !important;
        display: block;
    }

    .extra-chart-title {
        font-size: 20px;
        margin: 14px 0 10px 0;
    }
}

@media (max-width: 991px) {
    .extra-input-item {
        width: 50%;
        text-align: left;
    }

    .extra-comparison-table {
        grid-template-columns: 1fr;
    }

    .extra-comparison-cell,
    .extra-green-border {
        border-left: none;
        border-right: none;
    }
}
