// 裝修計算機


// +++++  common start +++++
.px-4Up {
    @media(max-width: 576px) {
        padding: 0 2rem;
    }

}

.no-padding {
    @media(max-width: 576px) {
        padding-left: 0;
        padding-right: 0;
    }
}

h2,
.h2 {
    @media(max-width: 576px) {
        font-size: 1.6875rem;
    }
}

.hint {
    display: none;
}

// +++++  common end +++++

.formWrapper {
    background-color: #FFF;
    box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
    transition: all 300ms ease-in-out;

    @media(min-width: 768px) {
        padding-bottom: 6.5rem;
    }

    @media(max-width: 576px) {
        background-color: transparent;
    }
}

.formTheme {
    display: flex;
    justify-content: center;
    align-items: center;

    &--style {
        padding: 0.5rem 0;
        color: #727679;
        font-size: 1.25rem;
    }

    &__title {
        min-width: 30%;
        text-align: center;
        font-weight: 500;
        @media(max-width: 576px) {
            min-width: 32%;
        }
    }

    .line {
        display: inline-block;
        width: 50%;
        height: 1px;
        background-color: #727679;
        &--lf {
            margin: 0 0.5rem 0 0;
        }
        &--rt {
            margin: 0 0 0 0.5rem;
        }
    }

}

.dropdown {
    .dropdown-menus {
        min-width: 100%;
        max-height: 200px;
        overflow-y: auto;
        text-align: left;
        padding-inline-start: 0;
        padding-left: 0;
    }
}

.form-text-height {
    border-width: 1px;
    height: calc(1.5em + 1.62rem + 4px);
}

.formDropdown {
    display: flex;
    justify-content: space-between;

    &--style {
        border: 1px solid #CED4DA;
        padding: 0.875rem 0.75rem;
        background: #fff;
    }
}

.formSubmit {
    padding: 0.85rem 0;
}

.formAside {
    padding: 0 0 0 0.5rem;
}

.calTable {
    display: flex;
    padding: 1rem 0;
    margin: 0 1rem;
    font-size: 1.125rem;
    border-bottom: 1px dashed #D5D5D5;
    transition: all 300ms ease-in-out;
    @media(max-width: 576px) {
        padding: 0.5rem 0;
        font-size: 1rem;
    }

    &__lf {
        flex-basis: 31%;
        flex-grow: 0;
        display: flex;
        align-items: start;
        justify-content: flex-end;
        padding: 0 0.5rem;
        color: #AAAAAA;
        transition: all 300ms ease-in-out;
        @media(max-width: 576px) {
            flex-basis: 40%;
        }
        @media(max-width: 321px) {
            flex-basis: 45%;
        }
    }
    &__rt {
        flex-basis: 69%;
        flex-grow: 0;
        justify-content: start;
        word-break: break-all;
        transition: all 300ms ease-in-out;
        @media(max-width: 576px) {
            flex-basis: 60%;
        }
        @media(max-width: 321px) {
            flex-basis: 50%;
        }
    }
}

.formInfo {
    position: relative;

    .formInfoIcon {
        position: absolute;
        top: 10px;
        right: -25px;
        transform: scale(1.5);
        line-height: 2;
        transition: all 300ms ease-in-out;

        @media(max-width: 576px) {
            padding: 0 0.1rem;
            top: 12px;
        }
    }
    .fa-info-circle {
        color: rgb(64, 153, 208);
    }
}


.calResult-wrapper {
    padding: 0 1.5rem;
}

.calResult {
    padding: 0 1rem;
    transition: all 300ms ease-in-out;
    @media(max-width: 576px) {
        padding: 0;
    }

    h2 {
        background-color: #F4F4F4;
        color: #EE7800;
        padding: 1rem 0;
        text-align: center;
        font-weight: bold;
        transition: all 300ms ease-in-out;
        @media(max-width: 576px) {
            background-color: #F4F4F4;
            font-size: 1.6875rem;
        }

        .small {
            font-size: 60%;
        }
    }

    .formBtn {
        width: 48%;
        box-shadow: 0 1px 10px #eee;
        transition: all 300ms ease-in-out;
        @media(max-width: 576px) {
            width: 100%;
        }
        &--mr {
            margin-right: 4%;
            transition: all 300ms ease-in-out;
            @media(max-width: 576px) {
                margin-right: 0;
            }
        }
    }

    &__note {
        font-size: 0.75rem;
        color: #AAAAAA;
    }
}

.calFeeInCase {

    h3 {
        font-size: 1.125rem;
        color: #707070;
    }

    &__bg {
        height: 290px;
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
        transition: all 300ms ease-in-out;
        @media(max-width: 576px) {
            height: 210px;
        }
    }

    img {
        width: 100%;
    }

    & ~ .btn-outline-secondary {
        color: #727679;
        border-color: #727679;

        &:hover {
            background-color: transparent;
        }
    }
}


// Modal
.modal-body {
    text-align: center;

    h4 {
        font-weight: bold;
    }

    p {
        color: #727679;
    }
}
