/* ============================================================================
   Loan Calculator – Lead Registration Modal
   Namespace: #loan-calc-modal / .lc-*  (ไม่ซ้ำกับ form#register / .ssr-*)
   ============================================================================ */

/* Pop-up */
#loan-calc-modal {
    position: relative;
    z-index: 100000000;
    font-family: 'GraphikTH-Regular';
}

#loan-calc-modal .lc-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: #000;
    opacity: .6;
    width: 100%;
    height: 100%;
}

#loan-calc-modal .lc-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 900px;
    height: auto;
    padding: 20px;
    background-color: #fff;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transform: translateX(-50%) translateY(-50%);
    display: flex;
    border-radius: 20px;
}

#loan-calc-modal .lc-main-panel,
#loan-calc-modal .lc-confirm-panel {
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    flex-direction: column;
    -webkit-box-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    align-items: center;
    width: 100%;
    height: 100%;
    text-align: center;
    padding-top: 0px;
    padding-bottom: 0px;
}

#loan-calc-modal .lc-main-panel .lc-content {
    display: flex;
    margin: auto;
}

#loan-calc-modal .lc-confirm-panel .lc-content {
    display: flex;
    margin: auto;
    padding-top: 0px;
    width: 100%;
}

#loan-calc-modal .lc-information {
    margin-left: 20px;
}

#loan-calc-modal .lc-btn-dismiss {
    position: absolute;
    margin: 10px 10px 0 0;
    top: 0;
    right: 0;
    padding: 1rem;
    border: 1px solid transparent;
    background-color: transparent;
    cursor: pointer;
}

#loan-calc-modal .lc-close-img[class*='bg'] {
    width: 30px;
    transform: translate(120%, -120%);
}

#loan-calc-modal .lc-close-img:not([class*='bg']) {
    width: 20px
}

/* Left Column Image */
#loan-calc-modal .lc-image {
    top: 0;
    width: 417px;
    height: 550px;
    object-fit: cover;
    object-position: 55%;
    transform: scale(1) translate(1, 5%);
    border-radius: 20px;
}

/* Form */
#loan-calc-modal .lc-form,
#loan-calc-modal .lc-confirm-information {
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    flex-direction: column;
    -webkit-box-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    align-items: center;
    width: 100%;
    text-align: center;
}

#loan-calc-modal .lc-w100,
#loan-calc-modal .lc-confirm-context {
    width: 90%
}

#loan-calc-modal .lc-header {
    color: #000;
    font-size: 20px;
    font-family: GraphikTH-SemiBold;
}

#loan-calc-modal .lc-confirm-information {
    margin-left: 20px;
    padding: 0 20px;
}

#loan-calc-modal .lc-confirm-header {
    display: inline-block;
    margin: 0 0 .5rem;
    color: #000;
    font-size: 20px;
    font-family: 'GraphikTH-SemiBold';
}

#loan-calc-modal .lc-confirm-subheader {
    display: inline-block;
    margin: 0 0 .5rem;
    padding: 0px 10px 0px 10px;
}

/* Form Validation */
#loan-calc-modal .lc-validate {
    width: 90%;
    margin: 15px 0;
    padding: 5px 0;
    box-sizing: border-box;
    border: none;
    border-bottom: 1px solid #d2d3d4;
    background-color: transparent;
    line-height: 0 !important;
}

#loan-calc-modal .lc-validate:focus {
    outline: none;
    border-bottom: 1px solid #0053b5;
}

/* state เมื่อ field ไม่ผ่าน validation */
#loan-calc-modal .lc-validate.lc-input-error {
    border-bottom: 1px solid #ff0000;
}

#loan-calc-modal .lc-error-msg {
    color: #ff0000;
    font-size: 1rem;
    width: 90%;
    text-align: left;
    margin-top: -12px;
    padding-top: 0;
}

/* Call-To-Action Button */
#loan-calc-modal .lc-cta {
    display: inline-block;
    vertical-align: middle;
    margin: 5px 0;
    text-align: center;
    transition:
        color .15s ease-in-out,
        background-color .15s ease-in-out,
        border-color .15s ease-in-out,
        box-shadow .15s ease-in-out;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#loan-calc-modal .lc-cta-btn {
    padding: 10px 40px 10px 40px;
    border: 2px solid transparent;
    text-decoration: none;
    border-radius: 33px;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.40);
    background-color: #0053b5;
    color: #fff;
    font-family: 'graphikth-semibold';
}

#loan-calc-modal .lc-cta-btn:hover {
    background-color: #00408c;
}

#loan-calc-modal .lc-cta-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

#loan-calc-modal .lc-cta-link {
    text-decoration: underline;
    margin: 5px 0;
}

/* Text Decoration */
#loan-calc-modal a {
    color: currentColor;
}

#loan-calc-modal .lc-form input {
    color: currentColor;
    font-size: 15px;
}

#loan-calc-modal .lc-policy {
    font-size: 13px;
}

#loan-calc-modal .lc-policy a {
    text-decoration: underline;
    font-family: 'GraphikTH-SemiBold';
}

#loan-calc-modal .lc-dropdown-list {
    color: #777777
}

/* Visibility */
#loan-calc-modal .lc-hide {
    visibility: hidden;
    display: none;
    width: 0;
    height: 0;
}

/* ซ่อน modal ทั้งก้อน (root) ตอนยังไม่เปิด */
#loan-calc-modal.lc-hide {
    display: none;
}

/* Mobile Media Queries*/
@media only screen and (max-width: 480px) {
    #loan-calc-modal .lc-popup {
        width: calc(100% - 32px);
        max-width: 360px;
        height: auto;
    }

    #loan-calc-modal .lc-information,
    #loan-calc-modal .lc-confirm-information {
        margin-left: 0px;
    }

    #loan-calc-modal .lc-content {
        display: flex;
        margin: auto;
        width: 100%;
        padding-top: 0px !important;
        padding-bottom: 0px;
    }

    #loan-calc-modal .lc-form,
    #loan-calc-modal .lc-confirm-panel .lc-content {
        width: 100% !important;
    }

    #loan-calc-modal .lc-form input {
        font-size: 13px;
    }

    #loan-calc-modal .lc-popup-image {
        display: none !important;
    }

    #loan-calc-modal .lc-w100 {
        width: 85% !important;
    }
}

/* Tablet Media Queries*/
@media only screen and (max-width: 900px) {
    #loan-calc-modal .lc-popup {
        width: calc(100% - 32px);
        height: auto;
    }

    #loan-calc-modal .lc-information,
    #loan-calc-modal .lc-confirm-information {
        margin-left: 0px;
    }

    #loan-calc-modal .lc-popup-image {
        display: none !important;
    }

    #loan-calc-modal .lc-content {
        display: flex;
        margin: auto;
        padding-top: 0px !important;
    }
}
