﻿.mr-title {
    text-align: center;
    font-weight: 800;
    margin: 25px 0 22px;
}

.mr-tabs {
    width: 100%;
    justify-content: center;
    margin: 0 auto 22px;
    display: flex;
    padding: 0 30px;
}

.mr-tab {
    width: 50%;
    max-width: 205px;
    height: 36px;
    border: 1px solid #008080;
    background: #fff;
    color: #008080;
    font-weight: 700;
    margin: 0 3px;
}

.mr-tab.active {
    background: #008080;
    color: #fff;
}

.mr-rate-based {
    background: #e4f4dc;
    text-align: center;
    font-weight: 800;
    padding: 12px;
    margin-bottom: 25px;
}

.mr-rate-based span {
    color: #008080;
}

.mr-qq-cta {
    border: 1px solid #008080;
    border-left: 10px solid #008080;
    padding: 22px 55px;
    margin: 28px 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fffc;
}

.mr-qq-text{
    text-align : left;
}

.mr-qq-title {
    font-size: 18px;
    font-weight: 800;
}

.mr-qq-small {
    color: #008080;
    font-size: 12px;
    font-weight: 700;
}

.mr-qq-btn {
    background: #008050;
    color: #fff !important;
    padding: 14px 45px;
    border-radius: 4px;
    font-weight: 800;
    text-decoration: none !important;
}

.result-rate,
.result-payment,
.monthly-payment {
    color: #006d6d !important;
    font-weight: 800 !important;
}

.rate_page_div{
    margin-top : 30px;
}

.rate_msg_box {
    color: black;
    font-size: 18px;
    padding: 15px;
    margin-bottom: 30px;
}

.rate_msg_box strong {
    color: #007070;
}

.rate-mobile-cards {
    display: none;
}

@media (max-width: 768px) {
    .title {
        padding: 0 30px;
        width: 100%;
        text-align: center;
        font-weight: 800;
        font-size: clamp(28px, 7vw, 44px);
    }

    .mr-tab {
        max-width: 50%;
    }

    .tabbable {
        display: block !important;
    }

    .table-responsive {
        display: none !important;
    }

    .rate_page_div {
        margin-top: 45px;
    }

    .rate_msg_box {
        margin-bottom: 10px;
    }

    .rate-mobile-cards {
        display: block !important;
        margin-top: 12px !important;
    }

    .rate-mobile-card {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(120px, 40%);
        margin-bottom: 8px;
        padding: 16px 14px;
        border: 1px solid #e9e9e9;
        border-radius: 5px;
        background: #fff;
        box-shadow: 0 1px 6px rgba(0,0,0,0.14);
        text-align: left;
    }

    .rate-mobile-title {
        grid-column: 1 / -1;
        color: #111;
        font-size: clamp(17px, 4.6vw, 20px);
        font-weight: 800;
        line-height: 1.1;
        margin-bottom: 8px;
        padding-left : 10px;
    }

    .rate-mobile-left {
        grid-column: 1 / 2;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        place-items: center;
        width : 100%;
    }

    .rate-mobile-left > div {
        display: flex;
        flex-direction: column;
        width: 100%;
        box-sizing: border-box;
        border-right: 1px solid #e0e0e0;
        padding-left: 10px;
    }

    .rate-mobile-left > div:last-child {
        border-right: none;
    }

    .rate-mobile-left span {
        display: block;
        color: #333;
        font-size: clamp(10px, 2.8vw, 12px);
        font-weight: 500;
        margin-bottom: 2px;
    }

    .rate-mobile-payment {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 4px;
        text-align: center;
        border-left: 1px solid #d8d8d8;
    }

    .rate-mobile-payment > span:first-child {
        display: block;
        font-size: clamp(9px, 2.7vw, 11px);
        font-weight: 500;
        line-height: 1.05;
        margin-bottom: 0;
    }

    .rate-mobile-payment label,
    .rate-mobile-payment span[id] {
        display: block;
        color: #007070 !important;
        font-size: clamp(20px, 5.4vw, 27px) !important;
        font-weight: 600 !important;
        line-height: 1 !important;
        white-space: nowrap;
        letter-spacing: -0.5px;
    }

    .rate-mobile-left > div > span:last-child {
        font-weight: 700 !important;
    }

    .mr-qq-cta {
        display: block !important;
        margin: 16px 0 10px !important;
        padding: 22px 14px 18px !important;
        border: 1px solid #008080 !important;
        border-left: 1px solid #008080 !important;
        background: #f8fffc !important;
        text-align: center !important;
    }

    .mr-qq-text {
        text-align: center !important;
    }

    .mr-qq-title {
        font-size: 16px !important;
        line-height: 1.2 !important;
        font-weight: 800 !important;
    }

    .mr-qq-text > div:not(.mr-qq-title):not(.mr-qq-small) {
        margin-top: 4px;
        font-size: 12px !important;
        line-height: 1.25 !important;
    }

    .mr-qq-small {
        margin-top: 6px;
        color: #006d6d !important;
        font-size: 11px !important;
        font-weight: 800 !important;
        line-height: 1.2 !important;
    }

    .mr-qq-btn {
        display: inline-block !important;
        width: 210px !important;
        margin-top: 12px !important;
        padding: 10px 0 !important;
        background: #008050 !important;
        color: #fff !important;
        border-radius: 3px !important;
        font-size: 12px !important;
        font-weight: 800 !important;
        text-decoration: none !important;
    }

    #Button3.btn,
    #Button7.btn {
        width: 100% !important;
    }

    .col-sm-4 {
        padding-right: 0;
        padding-left: 0;
        margin-top: 10px;
    }
}