﻿@font-face {
    font-family: KrungthaiFast;
    font-weight: 700 900;
    src: url("./font/KrungthaiFast-Bold.otf") format("opentype");
}

@font-face {
    font-family: KrungthaiFast;
    font-weight: 500 600;
    src: url("./font/KrungthaiFast-Regular.otf") format("opentype");
}

@font-face {
    font-family: KrungthaiFast;
    font-weight: 100 400;
    src: url("./font/KrungthaiFast-Light.ttf") format("truetype");
}

html {
    font-size: 18px;
}

body {
    font-family: 'KrungthaiFast', sans-serif !important;
    color: #333;
    font-weight: 400 !important;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4 {
    font-family: 'KrungthaiFast', sans-serif !important;
    font-weight: 700;
}

h6, .h6 {
    font-weight: 700 ;
    margin: 0;
}

h5, .h5 {
    font-weight: 500;
    margin: 0;
}

h4.text-center {
    font-size: 26px !important;
    font-weight: 700 !important;
}

h4, .h4 {
    font-size: 18px;
    margin-bottom: 1.5rem;
}

h3, .h3 {
    font-size: 30px !important;
}


@media (max-width: 767px) {
    h3, .h3 {
        font-size: 26px !important;
    }
}

.btn {
    font-weight: 600 !important;
    font-size: 1rem;
}

/* Primary Button */
.theme-primary .btn-primary {
    background-color: #00A4E4;
    border-color: #00A4E4;
    border-radius: 8px;
    color: #ffffff;
    padding: 0.5rem 2rem 0.5rem;
    max-width: 20rem;
    width: 100%;
    height: 3rem;
}

    .theme-primary .btn-primary:disabled {
        background-color: #DCE2E5;
        border-color: #DCE2E5;
        cursor: not-allowed;
        pointer-events: all;
    }

    .theme-primary .btn-primary:hover,
    .theme-primary .btn-primary:active,
    .theme-primary .btn-primary:focus,
    .theme-primary .btn-primary.active {
        background-color: #00A4E4 !important;
        border-color: #00A4E4 !important;
        color: #ffffff !important;
    }

    /* Outline primary */
    .theme-primary .btn-primary.bo-primary {
        background-color: transparent;
        color: #00A4E4;
        border-width: 2px;
    }

        .theme-primary .btn-primary.bo-primary:hover,
        .theme-primary .btn-primary.bo-primary:active,
        .theme-primary .btn-primary.bo-primary:focus,
        .theme-primary .btn-primary.bo-primary.active {
            background-color: transparent !important;
            border-color: #00A4E4 !important;
            color: #00A4E4 !important;
        }

/* Secondary */
.theme-primary .btn-secondary {
    background-color: #7D8288;
    border-color: #7D8288;
    border-radius: 8px;
    color: #ffffff !important;
    padding: 0.6rem 2rem 0.4rem;
    max-width: 20rem;
    width: 100%;
}

    .theme-primary .btn-secondary:hover,
    .theme-primary .btn-secondary:active,
    .theme-primary .btn-secondary:focus {
        background-color: #7D8288 !important;
        border-color: #7D8288 !important;
        color: #ffffff !important;
    }

/* Save Image */
.theme-primary .btn-save-image {
    color: #00A4E4;
    background-color: #E2F3F9;
    border-color: #E2F3F9;
    border-radius: 8px;
    padding: 0.3rem 2rem 0.2rem;
}

    .theme-primary .btn-save-image:hover {
        background-color: #E2F3F9 !important;
        border-color: #E2F3F9 !important;
        color: #00A4E4 !important;
    }

/* Link button */
.btn-link {
    color: #00A4E4;
    font-weight: 400;
    text-decoration: underline !important;
    background: unset;
    border: unset;
    padding: 0;
}

    .btn-link:hover,
    .btn-link:focus {
        color: #00A4E4;
    }

    .btn-link:disabled {
        color: #00A4E4;
        cursor: not-allowed;
        pointer-events: all;
    }

/* Back button */
.btn-back {
    font-weight: 400;
    background: unset;
}

    .btn-back.h4 {
        margin-left: 16% !important;
        z-index: 1;
       font-weight:500;
    }
.text-bott {
    margin-top: -3rem;
    margin-bottom: 1.8rem;
    font-weight: 700;
}


.form-group label {
    font-weight: 400;
}

.form-control::placeholder {
    color: #BFBFBF;
}

.form-control,
.form-select {
    height: 2.3rem !important;
    border-radius: 5px;
    border-color: #E1EAEF !important;
    box-shadow: none;
    height: auto;
}


.form-control {
    height: 2.6rem !important;
    border-radius: 5px;
    border-color: #E1EAEF !important;
    box-shadow: none;

}

/* remove number spinner */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

input::-ms-reveal,
input::-ms-clear {
    display: none;
}

.select2-container--default .select2-selection--single {
    height: 2.6rem !important;
    padding: 0.75rem !important;
    border-color: #E1EAEF !important;
    width: 100% ;
}

    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 2.1rem;
    }

.color-black { color: #333 !important;}

.color-gray { color: #50555C !important;}

.color-grayy { color: #7F7F7F !important;}

.color-light-gray {  color: #809098 !important;}

.color-red {  color: #EA2D2D !important;}

.color-red2 {  color: #C2293C !important;}

.color-blue {  color: #00A4E4 !important;}

.color-blue-gray {  color: #455A64 !important;}

.color-Medium-Gray {   color: #979797 !important;}

.font-light-mini { font-size: 0.65rem;}

.font-light12 { font-size: 12px;}

.font-light13 { font-size: 13px;}

.font-light14 { font-size: 14px;}

.font-light15 { font-size: 15px;}

.font-light16 {    font-size: 16px;}

.font-light17 {   font-size: 17px;}

.font-light18 {   font-size: 18px;}

.font-light19 {   font-size: 19px;}

.font-light20 {    font-size: 20px;}

.font-light22 {    font-size: 22px;}

.font-light26 {   font-size: 26px;}

.font-light30 {    font-size: 30px;}

.font-400 {   font-weight: 400;}

.font-500 {   font-weight: 500;}

.font-700 {   font-weight: 700;}

.mt-40 {
    margin-top: 40px!important;
}
.theme-primary .main-header {
    background: #00AAE5;
}

.main-header .navbar {
    border-bottom: 0;
    box-shadow: unset;
}

.shadow-lg {
    box-shadow: 0 0 0.5rem 0 #ddd !important;
}

label[id$="-error"] {
    color: #FF2829;
    font-weight: 400;
    font-size: 12px;
    padding-left: 5px;
    display: none;
}

    label[id$="-error"]::before {
        content: '*';
        margin-right: 5px;
    }


.div-otp {
    background: #FBFBFB;
    border-radius: 0.5rem;
    padding: 1.5rem !important;
}

.input-otp {
    margin: 1rem auto;
    max-width: 320px;
    text-align: center;
    letter-spacing: 0.5rem;
    padding-left: 1.25rem;
    font-weight: 700;
    font-size: 1.5rem;
}

    .input-otp::placeholder {
        font-weight: 400;
        font-size: 1rem;
        letter-spacing: normal;
    }

.otp-position {
    width: 320px;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px;
}

#cancelOTP,
#submitform {
    max-width: 300px !important;
}

#submitform {
    max-width: 341px !important;
}

.sweet-alert {
    font-family: 'KrungthaiFast', sans-serif !important;
    border-radius: 8px;
    width: 480px;
    padding: 1rem 0rem 1rem;
}

    .sweet-alert h2 {
        font-size: 26px !important;
        margin: 0.5rem 0 1rem 0;
        line-height: normal;
        font-weight: 700 !important;
        color: #333333 !important;
    }

    .sweet-alert p {
        font-size: 1rem;
        margin: 0 0 0.5rem 0;
        color: #50555C;
    }

    .sweet-alert button {
        font-size: 1rem;
        font-weight: 600;
        background-color: #00A4E4 !important;
        border-color: #00A4E4 !important;
        border-radius: 8px;
        color: #ffffff;
        padding: 0.6rem 1rem 0.4rem;
        margin: 1rem 0.25rem 0.5rem 0.25rem;
        min-width: 300PX;
        height: 3rem;
    }

        .sweet-alert button.cancel {
            background-color: #7D8288 !important;
            border-color: #7D8288 !important;
        }

    .sweet-alert.swal-risk-confirm .sa-button-container {
        display: flex !important;
        justify-content: center !important;
    }

    .sweet-alert.swal-risk-confirm .confirm,
    .sweet-alert.swal-risk-confirm .cancel {
        min-width: 100px;
    }

/* Popup Back to Home (no full-width button) */
.popup-backhome .sa-button-container {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
    gap: 12px;
}
@keyframes lds-eclipse {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(180deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@-webkit-keyframes lds-eclipse {
    0% {
        -webkit-transform: rotate(0deg);
    }

    50% {
        -webkit-transform: rotate(180deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

.lds-eclipse {
    position: relative;
    margin: 0 auto;
    width: 100%;
    height: 2rem;
    transform: translate(-100px, -100px) scale(1) translate(100px, 100px);
}

    .lds-eclipse div {
        animation: lds-eclipse 1s linear infinite;
        width: 1.8rem;
        height: 1.8rem;
        border-radius: 50%;
        box-shadow: 0 0.1rem 0 0 #00A4E4;
        transform-origin: 0.9rem 0.95rem;
        margin: auto;
    }

.popup-backhome button {
    width: auto !important;
    min-width: 124px;
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
}
#input-group-addon,
.input-group .input-group-addon {
    border-radius: 5px 0px 0px 5px;
    border-color: #E1EAEF !important;
    background-color: #ffffff;
}

/* Upload section */
.p-4 .row #div-upload {
    margin-bottom: 0 !important;
}

#div-upload {
    width: 220px;
    margin-left: auto;
    margin-right: 0;
}
.modal .btn {
    max-width: unset;
    width: 300px;
    min-width: 10rem;
}

.modal .btn-close {
    position: absolute;
    right: 25px;
    top: 23px;
    font-size: 15px;
    color: #fff;
    background: #D9D9D9;
    border-radius: 50%;
    padding: 0.1rem 0.2rem 0.3rem 0.2rem;
    opacity: 1;
    z-index: 1;
}

.mdi.mdi-close:before {
    line-height: 1 !important;
}

.modal-title {
    font-weight: 700 !important;
}

#modal-center .modal-content {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    padding: 20px 5px 30px 5px;
}
#ndidtitle {
    font-size: 22px;
}
.glyphicon-repeat {
    display: inline-block;
    transform: scaleX(-1);
    font-size: 11px;
}

.d-sm-inline-block {
    display: inline-block !important;
}

#idp-info {
    color: 000 !important;
}

#getAdvisor {
    width: 341px !important;
}

.img-step {
    max-width: 30rem;
    width: 100%;
    height: auto;
}
.bank-card {
    display: block;
    margin-left: 2.5rem;
    margin-bottom: 0.5rem;
}
.img-mian-bank {
    position: relative;
    display: inline-block;
    float: right;
    max-height: 1.5rem;
    max-width: 1.5rem;
    height: auto;
    width: auto;
    margin: 2.5rem 0 0;
    /* cursor: pointer; */
}
/* ---------------------------------------Mobile Styles (max-width: 576px) -------------------------------------------- */

@media (max-width: 576px) {
    .max-md-p {
        padding: 0;
    }
    
}

@media (max-width: 576px) {

    .btn-back.h4 {
        margin-top: 1rem;
        margin-bottom: 1rem;
        z-index: 1;
        margin-left: 0rem !important;
        font-weight: 500;
    }
}

@media (max-width: 576px) {

    /* ========== HEADINGS ========== */
    h4.text-center {
        font-size: 22px !important;
        margin-top: 0rem;
        margin-bottom: 0.8rem;
        font-weight: 700;
    }

    /* ========== FONT SIZES ========== */
    .font-light12 {    font-size: 12px;}

    .font-light13 {    font-size: 13px;}

    .font-light14 {    font-size: 14px;}

    .font-light15 {    font-size: 14px;}

    .font-light16 {    font-size: 14px;}

    .font-light17 {   font-size: 15px;}

    .font-light18 {   font-size: 16px;}

    .font-light19 {    font-size: 17px;}

    .font-light20 {    font-size: 18px;}

    .font-light22 {    font-size: 20px;}

    .font-light26 {    font-size: 24px;}

    .font-light30 {    font-size: 28px; }

    .font-light   {    font-size: 16px; }
    
    .font-light-mini {  font-size: 11px;}

    .font-400 {    font-weight: 400 }

    .font-500 {    font-weight: 500 }

    .font-700 {    font-weight: 700 }
    

    /* ========== BUTTONS ========== */
    .btn {
        font-size: 16px;
        height: 2.8rem !important;
       
    }

   
    .theme-primary .btn-primary.bo-primary {
        background-color: transparent;
        color: #00A4E4;
        border-width: 2px;
    }

    /* ========== LAYOUT / SPACING ========== */
    .container {
        margin-top: 0.5rem ;
        padding-left: 0.7rem ;
        padding-right: 0.7rem ;
    }

    .img-step {
        max-width: 15rem;
        margin-top: 0.5rem;
        margin-bottom: 00rem;
    }

    .navbar .logo img {
        height: 50px ;
    }

    .div-verify-otp {
        margin-top: 0rem ;
    }

    .mt-40 {
        margin-top: 4px!important;
    }

    /* ========== OTP ========== */
    .div-otp {
        padding: 1rem !important;
    }

    .otp-position {
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
        margin-top: 1.5rem !important;
        padding: 0 0.3rem !important;
    }

    .input-otp {
        height: 2.6rem !important;
        letter-spacing: 10px;
        border-radius: 8px;
        text-align: center;
    }

    #CFotp {
        margin-top: 0.8rem !important;
        margin-bottom: 0.8rem !important;
        font-size: 22px !important;
    }

    #getOTP,
    #cancelOTP {
        width: 100% !important;
        padding: 0rem !important;
        margin-top: 1rem !important;
        height: 2.6rem !important;
    }

    #submitform {
        width: 100% !important;
        padding: 0rem !important;
        margin-top: 1rem !important;
        height: 2.6rem !important;
    }

    #resendotp,
    #resendotp span,
    #time,
    #time + span {
        font-size: 13px !important;
        line-height: 1.2 !important;
    }

    /* ========== SWEETALERT ========== */
    .sweet-alert {
        width: 91% !important;
        padding: 1rem 1rem 0.5rem 1rem !important;
        border-radius: 8px !important;
    }
        .sweet-alert button {
            min-width: 290PX;
            padding: 0.5rem 0.5rem 0.5rem;
        }
        .sweet-alert p {
            font-size: 16px !important;
            margin-top: 0rem !important;
            margin-bottom: 1rem !important;
            line-height: 1.3 !important;
        }
    .sa-button-container {
        min-width: 130PX;
    }
    /* Back-Home Popup (not full-width buttons) */
    .popup-backhome .sa-button-container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center;
        gap: 12px;
    }

    .popup-backhome button {
        width: auto !important;
        min-width: 100px;
        display: inline-flex !important;
        justify-content: center;
        align-items: center;
    }

    /* ========== MODAL ========== */
    #modal-center .modal-dialog {
        max-width: 95% !important;
        margin: 1.2rem auto !important;
    }

    #modal-center .modal-content {
        border-radius: 10px !important;
        padding: 12px 10px 20px 10px !important;
        box-shadow: 0 4px 14px rgba(0,0,0,0.15) !important;
    }

    #modal-center .modal-header {
        padding: 1.5rem 0.5rem 0rem 0.5rem !important;
    }

    #modal-center .modal-title {
        font-size: 20px !important;
        font-weight: 700 !important;
    }

    #modal-center .btn-close {
        right: 15px !important;
        top: 15px !important;
        transform: scale(0.85);
    }

    #modal-center .modal-body .row {
        padding: 0.5rem 0rem 0rem 0.5rem !important;
    }

    #modal-center input.form-control {
        height: 2.3rem !important;
        font-size: 16px !important;
        padding-left: 1rem !important;
    }

    #advisor_name {
        font-size: 14px !important;
        padding: 0.6rem 0.8rem !important;
    }

    #modal-center .modal-footer {
        padding-top: 0.5rem !important;
        padding-bottom: 1rem !important;
    }

        #modal-center .modal-footer .btn {
            width: 100% !important;
            max-width: unset !important;
            padding: 0.75rem !important;
            font-size: 16px !important;
            border-radius: 8px !important;
        }
#modal-center .btn-close {
    right: 18px !important;
    top: 16px !important;
    transform: scale(0.85);
}

    /* Dropzone */
    .dropzone {
        min-height: 3rem !important;
        padding: 0.3rem !important;
        width: 100% !important;
    }

        .dropzone .dz-message {
            margin: 0.4rem 0 !important;
        }

    #div-upload {
        width: 100% !important;
        margin: 0 !important;
    }
    /* แสดงชื่อไฟล์ */
    #div-filename label {
        font-size: 13.5px !important;
        padding-left: 2rem !important;
    }
    .form-control {
        height: 2.3rem !important;
        font-size: 15px !important;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        padding: 0rem;
    }
    .theme-primary .btn-primary {
        height: 2.6rem !important;
        padding: 0.5rem 1rem 0.5rem;
        border-radius: 8px;

    }


    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 1rem;
    }
    .select2-container--default .select2-selection--single {
        height: 2.3rem !important;
        padding-top: 0.5rem !important;
        font-size: 16px !important;
        border-radius: 6px !important;
        padding-left: 0.2rem !important;
    }
    .select2-selection__rendered {
        padding-left: 0.5rem !important;
        font-size: 16px !important;
    }

    [type="checkbox"].filled-in:disabled:not(:checked) + label:after {
        border-color: transparent;
        background-color: #fff;
        border: 2px solid #DCE2E5 !important;
    }
    .theme-primary .btn-secondary {
        background-color: #7D8288;
        border-color: #7D8288;
        border-radius: 8px;
        color: #ffffff !important;
        padding: 0.6rem 2rem 0.4rem;
        max-width: 20rem;
        width: 100%;
    }
    .bank-card {
        display: block;
        margin-left: 0rem;
        margin-bottom: 0.5rem;
        font-size: 13px !important;
    }
    .img-mian-bank {
        position: relative;
        display: inline-block;
        float: right;
        max-height: 1rem;
        max-width: 1.5rem;
        height: auto;
        width: auto;
        margin: 2.4rem 0 0;
        /* cursor: pointer; */
    }
    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 2rem;
    }
   
}
.sweet-alert {
 
    border-radius: 10px!important;

}