@import url('https://fonts.googleapis.com/css2?family=Athiti:wght@200;300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: "Athiti", sans-serif;

}

.background-boby {
    background: rgb(161, 118, 82);
    background: linear-gradient(16deg, rgba(161, 118, 82, 1) 0%, rgba(237, 233, 211, 1) 94%);
    min-height: 100vh;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}


/* header */
.banner {
    width: 100%;
    /* ปรับความสูงตามที่ต้องการ */
    background-size: cover;
    background-position: center;
    z-index: 999;
    position: relative;
}

.logo {
    width: 100px;
    margin-top: -10px;
    cursor: pointer;
}

.navbar {
    width: 70%;
    height: 110px;
    padding: 20px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(73, 72, 72, 0.5);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    position: relative;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 15px;
    transition: transform 0.3s ease-in-out;
}

.nav-list li {
    position: relative;
    padding: 20px;
}

.nav-list a {
    text-decoration: none;
    color: #fff;
    transition: color 0.3s;
}

.navbar ul li a:hover {
    background: rgb(109, 109, 109);
    transition: 0.3s;
    color: black;
}

/* Dropdown Menu */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    /* จัด dropdown ให้ติดกับเมนูหลัก */
    left: 0;
    background-color: #474747;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.nav-menu-btn {
    display: none;
}

#languageSwitcher {
    background: transparent;
    color: #f8f6f6;
    border: none;
}

.nav-close-btn {
    display: none;
    position: absolute;
    top: 20px; /* ปรับตามตำแหน่งที่ต้องการ */
    right: 20px;
    font-size: 18px;
    color: #fff;
    z-index: 2001;
    background: none;
    border: none;
    cursor: pointer;
}

/* Mobile Styles - ปรับเมนูให้ชัดเจน */
@media screen and (max-width: 1049px) {

    html, body {
        font-family: "Athiti", sans-serif;
    }

    .nav-list {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        /* จัดให้เนื้อหาเริ่มต้นจากด้านซ้าย */
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 50%;
        background-color: rgba(0, 0, 0, 0.9);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        padding: 60px 20px 20px 20px;
        /* เพิ่ม padding เพื่อขยับเนื้อหาด้านบนลงมา */
        overflow-y: auto;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
        z-index: 2000;
    }

    .nav-list.active {
        transform: translateX(0);
        /* margin-top: 40[px]; */
        padding-top: 70px;
    }

    .nav-list li {
        margin: 0px 0;
        /* เพิ่มระยะห่างระหว่างรายการเมนู */
        width: 100%;
        list-style: none;
    }

    #languageSwitcher {
        margin-left: 18px;
        font-size: 15px;
        padding: 10px;
        border: 1px solid #ffffff;
    }

    .nav-list a {

        text-decoration: none;
        color: #fff;
        font-size: 1em;
        /* ปรับขนาดฟอนต์ให้ใหญ่ขึ้นเล็กน้อย */
        padding: 0px 0;
        /* เพิ่ม padding บนและล่างเพื่อให้ดูเด่นชัด */
        /* margin-top: 60px; */

        transition: background-color 0.3s, color 0.3s;
        width: 100%;
        /* ให้ครอบคลุมความกว้างของเมนู */
    }

    .nav-menu-btn {
        font-family: "Athiti", sans-serif;
        display: block;
        font-size: 18px;
        /* Adjust font size as needed */
        color: #fff;
        /* White text */
        background: none;
        /* Remove background color */
        border: none;
        /* Remove border */
        cursor: pointer;
        /* Change cursor to pointer to indicate it's clickable */
        z-index: 2001;
        padding: 0;
        /* Remove any padding that may cause a larger clickable area */
        margin-right: 5%;
    }

    .nav-close-btn {
        display: none;
        position: absolute;
        /* top: 20px;
        right: -30px; */
        margin-right: 10%;
        font-size: 18px;
        /* Adjust font size as needed */
        color: #fff;
        z-index: 2001;
        background: none;
        /* Remove any background if applicable */
        border: none;
        /* Remove border */
        cursor: pointer;
        /* Change cursor to pointer */
    }

    .nav-list.active+.nav-close-btn {
        display: block;
    }

    .nav-menu-btn:hover,
    .nav-menu-btn:focus,
    .nav-menu-btn:active {
        background: none;
        /* Remove background on any interactive state */
        border: none;
        /* Remove border */
        outline: none;
        /* Remove any outline that may be causing a border effect */
    }

    .dropdown-content {
        display: none;
        position: absolute;
        top: 100%;
        /* จัด dropdown ให้ติดกับเมนูหลัก */
        left: 0;
        background-color: #474747;
        min-width: 160px;
        box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
        z-index: 1000;
    }
    
    .dropdown-content a {
        color: black;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
        text-align: left;
    }
    
    .dropdown-content a:hover {
        background-color: #f1f1f1;
    }
    
    .dropdown:hover .dropdown-content {
        display: block;
    }
}
/* header */

/* ปุ่มline */
.line-button {
    position: fixed; /* ทำให้ปุ่มคงที่บนหน้าจอ */
    bottom: 20px; /* ระยะห่างจากด้านล่างของหน้าจอ */
    right: 20px; /* ระยะห่างจากด้านขวาของหน้าจอ */
    background-color: #ffffff; /* สีเขียวของ Line */
    border: 1px solid #00A000; /* สีขอบของปุ่ม */
    border-radius: 50%; /* ทำให้ปุ่มเป็นวงกลม */
    padding: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* เพื่อให้ปุ่มอยู่ด้านหน้าของเนื้อหาอื่น */
}

.line-button img {
    width: 50px; /* ปรับขนาดตามความต้องการ */
}

.line-button:hover {
    background-color: #00A000; /* เปลี่ยนสีเมื่อเอาเมาส์ไปวาง */
}
/* ปุ่มline */

/* container รวม tab และ form ไว้ด้วยกัน  */
.container-tabs-wrapper {
    background-color: rgba(240, 240, 240, 0.555);
    width: 70%;
    margin: 0 auto;
    padding: 50px 0;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
/* container รวม tab และ form ไว้ด้วยกัน  */

/* ส่วนของหน้าเว็บ */
.container-tabs {
    max-width: 800px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.page-title {
    text-align: center;
    color: #333;
}

.loan-title {
    text-align: center;
    color: #333;
    font-weight: bold;
}

.tabs {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.tab-link {
    background-color: transparent;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    font-family: "Athiti", sans-serif;
}

.tab-link.active {
    border-bottom: 2px solid #9E7431;
    font-weight: bold;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.requirements {
    border-top: 3px solid #9E7431;
    padding: 20px;
    background-color: #f5f9f7;
    border-radius: 8px;
}

.requirements-title {
    color: #9E7431;
}

.requirements-columns {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    margin-left: 20px;
}

.requirements-list {
    width: 48%;
}

.requirement-item {
    margin-bottom: 10px;
    line-height: 1.5;
}

/* ส่วนของหน้าเว็บ */

/*  ส่วนของการกรอกข้อมูล  */
.custom-wrapper {
    background-image: url(../../images/18058233_889_house_improvement.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 20px;
    height: 100%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.custom-form-container {
    background-color: #a17552ef;
    text-align: center;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding-bottom: 20px;
}


.custom-heading {
    margin-top: 50px;
    margin-bottom: 20px;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.custom-subheading {  /* New Subheading Style */
    margin-bottom: 10px;
    font-size: 18px;
    color: #000000;
    text-align: left;
    width: 70%;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    font-weight: lighter;
}


.custom-input {
    width: 70%;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: none;
    font-size: 16px;
    font-family: "Athiti", sans-serif;
}

.custom-input-text {
    width: 70%;
    height: 100px;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: none;
    font-size: 16px;
    resize: none;
    overflow: hidden;
    line-height: 1.5;
    font-family: "Athiti", sans-serif;
}

.custom-file-input {
    width: 70%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: none;
    font-size: 16px;
    background-color: #f2f2f2;
    cursor: pointer;
    font-family: "Athiti", sans-serif;
}

.custom-button {
    width: 40%;
    padding: 15px;
    background-color: #D37F20;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    color: #000;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    font-family: "Athiti", sans-serif;
}

.custom-button:hover {
    background-color: #D9A066;
}

/*  ส่วนของการกรอกข้อมูล  */

/* ---------------------------footer---------------------------------- */

.footer-box1 {
    width: 100%;
    background-color: #EDE9D3;
    color: #000000;
    padding: 40px 0 20px;
    font-size: 14px;
    line-height: 20px;
}

.row {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
}

.col {
    flex-basis: 100%;
    padding: 15px;
    /* width: 50px; */
    box-sizing: border-box;
}


.col:nth-child(2),
.col:nth-child(3) {
    flex-basis: 100%; /* Full width on smaller screens */
}


.-footer-logo {
    width: 70%;
    height: auto;
    max-width: 250px;
    margin: 0 auto 20px auto;
}


.col .Texth3 {
    width: fit-content;
    margin: 0 auto 15px auto;
    position: relative;
}


.email-id {
    width: fit-content;
    border-bottom: 1px solid #000000;
    margin: 20px 0;
}


.ul1 .li1 {
    list-style: none;
    margin-bottom: 10px;
}

.ul1 .li1 .a1 {
    text-decoration: none;
    color: #000000;
}

.form-box1 {
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #000000;
    margin-bottom: 20px;
}

.form-box1 .uil {
    font-size: 18px;
    margin-right: 5px;
}

.form-box1 .input-box1 {
    width: 65%;
    max-width: 250px;
    background: transparent;
    color: #030303;
    border: 0;
    outline: none;
    text-align: center;
    margin-bottom: 10px;
    font-family: "Athiti", sans-serif;
}

.form-box1 .button-box1 {
    background: transparent;
    border: 0;
    outline: none;
    cursor: pointer;
}

.form-box1 .button-box1 .uil {
    font-size: 18px;
    color: #000000;
}

.social-icons1 {
    text-align: center;
    margin-top: 15px;
}

.social-icons1  .uil
{
    width: 40px;
    height: 30px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-size: 35px;
    color: #000;

    margin-right: 15px;
    cursor: pointer;
}

.social-icons1  .fa-brands
{
    width: 40px;
    height: 30px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-size: 30px;
    color: #000;
 
    margin-right: 15px;
    cursor: pointer;
}

hr {
    width: 90%;
    border: 0;
    border-bottom: 1px solid #000000;
    margin: 15px auto;
}

.copyright {
    text-align: center;
    font-size: 12px;
    margin-top: 15px;
}


.underline {
    width: 100%;
    height: 5px;
    background: #000000;
    border-radius: 3px;
    position: absolute;
    top: 25px;
    left: 0;
    overflow: hidden;
}

.underline span {
    width: 15px;
    height: 100%;
    background: #fff;
    border-radius: 3px;
    position: absolute;
    top: 0;
    left: 10px;
    animation: moving 2s linear infinite;
}



.popup {
    display: none;
    /* ซ่อน popup โดยค่าเริ่มต้น */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Style for the popup content */
.popup-content {
    background-color: #A16922;
    /* สีน้ำตาล */
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 60%;
    border-radius: 10px;
    text-align: center;
    color: white;
}

/* Close button */
.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Popup image */
.popup-image img {
    position: absolute;
    width: 655px;
    left: 210px;
}

/* Popup text */
.popup-text p {
    margin: 70px 0;
    font-size: 20px;
}

/* Popup buttons */
.popup-buttons button {
    padding: 10px 20px;
    margin: 10px;
    border: none;
    border-radius: 5px;
    background-color: #F7941D;
    color: white;
    cursor: pointer;
    font-size: 18px;
    font-family: "Athiti", sans-serif;
}

.popup-buttons button:hover {
    background-color: #E6831A;
}

.popupwechat {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}
.popupline{
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}
@keyframes moving {
    0% {
        left: -20px;
    }

    100% {
        left: 100%;
    }
}

@media screen and (min-width: 480px) {
    .col {
        flex-basis: 45%;
    }

    .col:nth-child(2),
    .col:nth-child(3) {
        flex-basis: 45%;
    }

    .form-box1 .input-box1 {
        width: 70%;
        max-width: 250px;
    }
}

@media screen and (min-width: 768px) {
    .col {
        flex-basis: 45%; /* Adjust for larger screens */
    }

    .col:nth-child(2),
    .col:nth-child(3) {
        flex-basis: 20%; /* Adjust for the 'Links' and 'Newsletter' columns on larger screens */
    }

    .form-box1 .uil {
        font-size: 25px;
    }

    .form-box1 .button-box1 .uil {
        font-size: 25px;
    }
}


@media screen and (min-width: 1024px) {
    .col {
        flex-basis: 22%; /* Adjust for desktop */
    }

    .col:nth-child(2),
    .col:nth-child(3) {
        flex-basis: 15%;
    }
}

/* -----------------------------------------------------------------------------------------contact */


@media screen and (max-width: 375px) {

    /* General Body Styling for smaller screens */
    .background-boby {
        background: linear-gradient(16deg, rgba(161, 118, 82, 1) 0%, rgba(237, 233, 211, 1) 94%);
        min-height: 100vh;
    }

    /* Container Tabs Wrapper Styling */
    .container-tabs-wrapper {
        width: 95%; /* ลดความกว้างให้เล็กลงเพื่อเข้ากับหน้าจอ */
        padding: 20px 10px;
        
    }

    /* Container Tabs Styling */
    .container-tabs {
        width: 100%;
        padding: 10px; /* ลด padding เพื่อให้ดูสมส่วน */
    }

    .tabs {
        flex-direction: column; /* ปรับให้ปุ่ม tab เรียงแนวตั้ง */
        margin-bottom: 10px;
    }

    .tab-link {
        font-size: 14px;
        padding: 8px;
        margin-bottom: 5px; /* เพิ่มระยะห่างระหว่างปุ่ม tab */
    }

    .requirements-columns {
        flex-direction: column; /* ปรับคอลัมน์ให้อยู่ในแนวตั้ง */
        gap: 10px; /* เพิ่มระยะห่างระหว่างคอลัมน์ */
    }

    .requirements-list {
        width: 100%;
    }

    /* Custom Form Styling */
    .custom-wrapper {
        height: auto;
        margin: 0 5px; /* ลด margin รอบ ๆ ให้เข้ากับหน้าจอเล็ก */
    }

    .custom-form-container {
        padding: 15px; /* ลด padding เพื่อลดพื้นที่ที่ใช้ */
    }

    .custom-heading {
        font-size: 20px; /* ขยายขนาดให้เห็นชัดเจนขึ้น */
    }

    .custom-input,
    .custom-input-text,
    .custom-file-input {
        width: 95%; /* ปรับความกว้างให้เหมาะสมกับหน้าจอเล็ก */
        margin-bottom: 10px; /* ลดระยะห่างระหว่าง input fields */
    }

    .custom-button {
        width: 60%; /* เพิ่มความกว้างเพื่อให้ปุ่มดูโดดเด่น */
        margin-top: 10px;
    }

    .custom-subheading {
        font-size: 14px;
    }

    /* Navbar styling for mobile */
}
