#mimotic_mortgage {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    padding-bottom: 50px;
    justify-content: center;
}
#mimotic_mortgage *{
    box-sizing: border-box;
}

#mmg_info_form {
    /* order: 2; */
}

#taxes {
    /* order: 1; */
}

#mmg_form {}

#mmg_form * {
    max-width: 100%;
}

#mmg_graphs {
    display: flex;
    flex-wrap: wrap;
    text-align: center;
    justify-content: center;
}

#mmg_graphs .graph {
    /* width: 50%; */
    position: relative;
}

#mmg_graphs .monthly {
    position: absolute;
    top: calc(50% + 30px);
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
}

.mmg_form_row {
    margin-bottom: 20px;
}

.mmg_form_row input,
.mmg_form_row select {
    line-height: 1em;
    padding: 15px;
    width: 100%;
    background-color: #FFF;
    border: 1px solid #a9a9a9;
}

#mmg_range_container {
    display: flex;
}

#percent_savings {
    display: inline;
    font-weight: 400;
}

#mmg_years {
    display: block;
    -webkit-appearance: none;
    background-color: #bdc3c7;
    width: 300px;
    height: 5px;
    border-radius: 5px;
    /* margin: 0 auto; */
    outline: 0;
    padding: 5px;
    margin-top: 10px;
}

#mmg_years::-webkit-slider-thumb {
    -webkit-appearance: none;
    background-color: rgba(4, 193, 153, 1);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid white;
    cursor: pointer;
    transition: .3s ease-in-out;
}

​ #mmg_years::-webkit-slider-thumb:hover {
    background-color: white;
    border: 2px solid #e74c3c;
}

#mmg_years::-webkit-slider-thumb:active {
    transform: scale(1.6);
}

#mmg_years_value {
    width: 30px;
    font-weight: bold;
    text-align: right;
}

#taxes {
    margin: 20px auto;
    text-align: center;
    text-align: right;
    width: 100%;
}

#taxes_toggler {
    cursor: pointer;
    font-size: 12px;
    margin: 0px auto;
    text-align: center;
    display: inline-block;
}

#taxes_toggler .btn {
    color: #FFF;
    background-color: #ff6900;
    border: 1px solid #ff6900;
    padding: 3px 10px;
    margin-top: 5px;
    display: inline-block;
    border-radius: 50px;
}

#taxes_toggler .btn:hover {
    color: #000;
    background-color: transparent;
}

.mmg_modal {
    text-align: left;
    z-index: 999;
    display: none;
    position: fixed;
    max-height: 80vh;
    overflow-y: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #FFF;
    width: 400px;
    max-width: 90%;
    padding: 20px;
    font-size: 16px;
    box-shadow: 0px 0px 15px -5px rgb(0, 0, 0, 0.8);
}

.mmg_modal .close {
    position: absolute;
    cursor: pointer;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    transform: rotate(45deg);
    transition: all 0.2s ease-in-out;
    opacity: 1 !important;
}

.mmg_modal .close:hover {
    transform: rotate(135deg);
}

.mmg_modal .close:hover:after,
.mmg_modal .close:hover:before {
    background-color: #e74c3c;
}

.mmg_modal .close:after,
.mmg_modal .close:before {
    position: absolute;
    content: "";
    height: 1px;
    width: 100%;
    background-color: #000;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.mmg_modal .close:before {
    transform: translate(-50%, -50%) rotate(90deg);
}

.mmg_modal * {
    color: #000;
}

.mmg_modal h3 {
    font-size: 18px;
    font-weight: bold;
    border-bottom: 1px solid #e74c3c;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.mmg_modal h4 {
    font-size: 16px;
    font-weight: bold;
    border-bottom: 1px solid #e74c3c;
    padding-bottom: 3px;
    margin-top: 10px;
    display: inline-block;
}

.mmg_modal .modal_row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0px;
    border-bottom: 1px solid rgba(4, 193, 153, 1);
}

#totales * {
    font-weight: bold;
}

#mmg_info_form {
    width: 100%;
    max-width: 400px;
    text-align: center;
}
  

#mmg_info_form .row{
    flex-direction: column;
    justify-content: center;
}

#mmg_contact_form {
    text-align: left;
}

#mmg_info_toggler {
    display: inline-block;
    cursor: pointer;
}

@media screen and (min-width: 600px) {
    #mmg_form {
        width: 100%;
    }
    #mmg_graphs {
        width: 100%;
    }
    #mmg_graphs .graph-container {
        width: 50%;
    }
}

@media screen and (min-width: 768px) {
    #taxes {
        /* order: 2; */
        margin-top: 0px;
    }
    #mmg_form {
        width: 30%;
    }
    .mmg_form_row {
        padding-right: 30px;
    }
    #mmg_graphs {
        width: 70%;
    }
    #mmg_graphs .graph-container {
        width: 50%;
    }
}