/* English Horizontal Mortgage Calculator Styles */
body {
    display: block;
    margin: 0 !important;
    font-family: Montserrat, sans-serif;
    background: #f5f5f5;
}

* {
    font-family: Montserrat, sans-serif;
}

.calculator-block-resizer {
    display: flex;
    align-items: flex-start;
    min-height: 100vh;
}

.cc-hero {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.mainContainer {
    background: #F9F9F9;
    border: 1px solid #E2E2E2;
    padding: 30px;
    position: relative;
    width: 100%;
    height: 100%;
}

.totalContainer {
    text-align: center;
    margin-bottom: 20px;
}
.totalContainer p, .totalContainer span, .title-calculator {
    margin-bottom: 10px;
}
.title-calculator span {
    font-size: 20px;
    font-weight: bold;
    color: #4d4d4d;
    text-align: center;
}

.totalCalc {
    width: 100%;
    color: #c2aa6f;
    font-weight: 700;
    font-size: 45px;
    text-align: center;
    margin: 0px;
}

.totalSubText {
    color: #4E4E4E;
    font-weight: 700;
    font-size: 12px;
    text-align: center;
    padding-top: 10px;
}

.form-row {
    display: flex;
    margin-bottom: 25px;
    gap: 30px;
}

.buttonContainer {
    display: flex;
    justify-content: center;
}

.column-half {
    flex: 1;
}

.column-full {
    width: 100%;
}

.separateText {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
}

.separateText p {
    margin: 0;
}

.purchasePriceText {
    font-weight: 700;
    font-size: 15px;
    line-height: 20px;
    color: #4E4E4E;
}

.purchaseInputBlock {
    width: 50%;
    display: flex;
    align-items: center;
    flex-direction: row;
}

.inputTextRight {
    text-align: right;
    font-weight: 700;
    font-size: 16px!important;
    line-height: 30px;
    color: #4E4E4E;
    width: 100%;
    background-color: white;
    border: 1px solid #e7e3e3;
    border-radius: 0;
    outline: 0;
    padding-left: 5px;
    font-size: 0.8rem;
    box-shadow: none;
    box-sizing: content-box;
    -webkit-transition: all .3s;
    transition: all .3s;
}

.spanTextRight {
    font-weight: 700;
    font-size: 16px;
    line-height: 40px;
    color: #4E4E4E;
    margin: 0;
}

.saving-needed {
    display: flex;
    align-items: center;
    gap: 8px;
}

.savingsNeededText {
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
    color: #4E4E4E;
    margin: 0;
}

.mortgageAmountText {
    text-align: right;
    font-weight: 700;
    font-size: 16px !important;
    line-height: 40px;
    color: #4E4E4E;
    width: 50%;
    margin: 0;
}

.inputLayout {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
}

.inputLayout > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.inputLayout p, b {
    margin: 0px;
    font-weight: 700;
    font-size: 16px;
    line-height: 40px;
    color: #4E4E4E;
    display: inline;
}

.cc-q-title {
    color: #212529;
    font-size: 17px;
    line-height: 1.2em!important;
    margin: 0;
}

.inputLayout p:last-child {
    font-weight: 700;
    font-size: 16px;
    color: #4E4E4E;
    margin: 0;
}

.floatCenterText {
    font-weight: 700;
    font-size: 16px;
    color: #4E4E4E;
    margin: 0;
}

.inputSlider {
    width: 100%;
    margin: 15px 0 0 0;
    background: #BFBFBF;
    position: relative;
    z-index: 0;
    height: 2px;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 30px;
}

.inputSlider:focus {
    outline: none;
}

.inputSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    background: #C2AA6F url("https://lionsgatecapital.com/wp-content/uploads/2023/11/isotipo-lionsgate-capital.svg")
                no-repeat center center;
    background-size: 22px 22px;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.inputSlider::-moz-range-thumb {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    background: #C2AA6F url("https://lionsgatecapital.com/wp-content/uploads/2023/11/isotipo-lionsgate-capital.svg")
                no-repeat center center;
    background-size: 22px 22px;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.fees_and_taxes_block {
    display: flex;
    align-items: center;
    gap: 8px;
}

.popupInfo {
    display: block;
    height: 18px;
    width: 18px;
    line-height: 18px;
    -moz-border-radius: 18px;
    border-radius: 18px;
    background-color: gray;
    color: white;
    text-align: center;
    font-size: 13px;
    margin-left: 5px;
    cursor: pointer;
}

.borrowButton {
    background: #C2AA6F;
    text-align: center;
    margin: 0px;
    font-weight: 700;
    font-size: 16px;
    line-height: 40px;
    color: #FFF;
    filter: drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.25));
    border: none;
    width: 35%;
    cursor: pointer;
}

.borrowButton:hover {
    background: #a8956a;
}

.logo-lions-gat {
    text-align: center;
    margin-top: 20px;
}

.lionsLogoCalc {
    height: 40px;
}

.final-text {
    font-size: 8px;
    color: #666;
    text-decoration: none;
}

/* Popup styles */
.overlay_test {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

.overlay_test.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup_test {
    position: relative;
    padding: 20px;
    background: #fff;
    box-shadow: 3px 3px lightgray;
    z-index: 2;
    width: 35%;
    max-width: 90vw;
}

.popup_test .close_test {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    font-weight: bold;
    text-decoration: none;
    color: #333;
    cursor: pointer;
}

.popup_test .close_test:hover {
    color: #C2AA6F;
}

.content_test p:first-child {
    font-weight: bold;
    color: #4E4E4E;
    font-size: 16px;
    margin-bottom: 10px;
}

.content_test p:last-child {
    color: #4E4E4E;
    line-height: 24px;
    font-size: 16px;
    margin: 0;
}

/* Responsive Design */
@media screen and (min-width: 768px) {
    .totalCalc {
        font-size: 50px;
        line-height: 60px;
    }

    .totalSubText {
        font-size: 16px;
        line-height: 20px;
        padding-top: 0px;
    }

    .purchasePriceText {
        font-size: 16px;
        line-height: 28px;
    }

    .savingsNeededText {
        line-height: 40px;
    }

    .mortgageAmountText {
        width: 35%;
    }

    .purchaseInputBlock {
        width: 46%;
    }

    .borrowButton {
        margin-bottom: 5px;
    }
}

@media (max-width: 767px) {
    .cc-q-title {
        color: #212529;
        font-size: 14px;
        width: 50%;
        line-height: 1.2em!important;
    }
    .mainContainer {
        padding: 15px!important;
    }
    .borrowButton {
        width: 100%;
    }
    .form-row {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 10px;
    }
    .inputLayout .floatCenterText {
        margin-right: 10px;
    }
    .totalCalc {
        font-size: 36px!important;
    }
    p#feesAndTaxesAmount {
        width: 40%;
        text-align: right;
    }
    p, #savingsAmount, .purchasePriceText {
        font-size: 14px!important;
    }
    .title-calculator span {
        font-size: 18px;
    }
    .popup_test {
        position: relative;
        padding: 20px;
        background: #fff;
        box-shadow: 3px 3px lightgray;
        z-index: 2;
        width: 80%;
        max-width: 90vw;
    }
    .totalContainer p, .totalContainer span, .title-calculator {
    margin-bottom: 0px;
}
} 