a {
    text-decoration: none;
}

/* ==== landingpage ==== */
.main_layout {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 50px;
    /* overflow: hidden; */

    background: url("../images/main_bg-2.png");
    background-position: center;
    background-size: cover;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.hp_bannerMainLayout {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
}

.landingpage_logo {
    width: 800px;
    display: inline;
    justify-content: center;
}

/* .landingpage_logo img {
    filter: brightness(1.0) !important;
} */

.landingpage_footerBtnIcon {
    width: 30px;
    min-width: 30px;
}

.landingpage_socialMainLayout {
    position: absolute;
    z-index: 10;
    right: 5px;
    width: 60px;
    min-height: 100px;
    padding: 10px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.landingpage_socialIcon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    padding: 5px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 25px;
    border: 1px solid #ddba5a;
    background: #f6ec96;
    color: #8a6026;
    box-shadow: 1px 1px 5px #0000005c;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: all 0.5s;
}

.landingpage_socialIcon:hover {
    box-shadow: 1px 1px 10px 3px #8a6026;
}

.landingpage_guideLayout {
    position: absolute;
    z-index: 20;

    right: 150px;

    width: 45px;
    height: 45px;
    padding: 5px;
    border-radius: 50%;
    font-size: 25px;

    border: 1px solid #ddba5a;
    background: #f6ec96;
    color: #8a6026;
    box-shadow: 1px 1px 5px #0000005c;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: all 0.5s;
}

.landingpage_guideLayout.bottom {
    top: 20px;
}

.landingpage_guideLayout.top {
    top: 20px;
}

.landingpage_guideLayout:hover {
    box-shadow: 1px 1px 10px 3px #8a6026;
}

.landingpage_modalGuideLayout {
    height: 500px !important;
    overflow: auto;
}

/* ==== modal preregister ====  */
.preregister_modalMainContent {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;

    background: url("../images/modal/main_bg.png");
    background-position: center;
    background-size: cover;

    border: 2px solid #e6daca;
    box-shadow: 0px 0px 0px 6px #fff;
    overflow: hidden;
}

.preregister_modalContent {
    position: relative;
    /* z-index: 3; */
    width: 100%;
    height: 100%;
    padding: 30px 50px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.671) 49%);
}

.preregister_topbarLayout {
    position: relative;
    width: 100%;
    min-height: 120px;
    padding: 10px 20px;
    padding-bottom: 25px;

    background: url("../images/modal/topbar.png");
    background-position: bottom;
    background-size: cover;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    font-family: "MeridiesAntiqua", serif;
    text-transform: uppercase;
    font-size: 40px;
    font-weight: 800;
    letter-spacing: 3px;
    color: #fff;
}

.preregister_modalContent_layout {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 850px;
    height: 100%;
    min-height: 500px;
    margin: 0 auto;

    position: relative;
    z-index: 4;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.preregister_modalContent_layout02 {
    max-width: 1020px;
    gap: 0px !important;
}

.preregister_modalContent_layout_cookie {
    min-height: 250px;
}

.preregister_modalContent_layout_cookie02 {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;

    position: relative;
    z-index: 4;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

/* object  */
.preregister_modalObjectHr {
    width: 100%;
    height: 100%;
    border: 3px solid #e6dccd;

    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    border-radius: 70px;
}

.preregister_modalObject01 {
    width: 35px;
    height: 35px;
    border-radius: 0 100% 0% 0%;
    background: #e6dccd;
    position: absolute;
    z-index: 1;
    bottom: 0;
    left: 0;
}

.preregister_modalObject02 {
    width: 35px;
    height: 35px;
    border-radius: 100% 0% 0% 0%;
    background: #e6dccd;
    position: absolute;
    z-index: 1;
    bottom: 0;
    right: 0;
}

.preregister_modalObjectIconStar {
    width: 30px;
    height: 30px;
}

.preregister_modalObjectIconStar.bottom_left {
    filter: drop-shadow(0px 0px 1px #fff);
    position: absolute;
    z-index: 3;
    bottom: 5px;
    left: 8px;
}

.preregister_modalObjectIconStar.bottom_right {
    filter: drop-shadow(0px 0px 1px #fff);
    position: absolute;
    z-index: 3;
    bottom: 5px;
    right: 8px;
}

.preregister_modalObjectIconStar.top_left {
    filter: drop-shadow(0px 0px 1px #fff);
    position: absolute;
    z-index: 3;
    top: 8px;
    left: 8px;
}

.preregister_modalObjectIconStar.top_right {
    filter: drop-shadow(0px 0px 1px #fff);
    position: absolute;
    z-index: 3;
    top: 8px;
    right: 8px;
}

.preregister_titleBtnGuide {
    display: none;
}

.preregister_termsBtn {
    background: transparent;
    border: 0px;
    width: 100%;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 500;
    color: #8a6026;
}

/* ==== modal ==== */
input {
    width: 100%;
    height: 55px;
    padding: 10px;
    border-radius: 20px;
    background: #e9ecf2;
    border: 2px solid #cad1df !important;
    text-align: center;
}

input[type="email"] {
    color: #000;
    font-size: 20px;
    font-weight: 500;
}

input[type="tel"] {
    color: #000;
    font-size: 20px;
    font-weight: 500;
}

input[type="email"]::placeholder {
    color: #bac1cf;
    font-family: "PSLPro", sans-serif;
    font-size: 18px;
    letter-spacing: 2px;
    font-weight: 800;
}

input[type="tel"]::placeholder {
    color: #bac1cf;
    font-family: "PSLPro", sans-serif;
    font-size: 18px;
    letter-spacing: 2px;
    font-weight: 800;
}

/* dropdown  */
.dropdown-toggle {
    width: 100%;
    height: 50px;
    padding: 10px;
    border-radius: 25px;
    background: #e9ecf2;
    border: 2px solid #cad1df !important;
    text-align: center;
    font-size: 16px;
}

.form-control {
    width: 100%;
    height: 40px;
    background: #e9ecf2;
    border: 2px solid #cad1df !important;
    font-size: 14px;
}

/* checkbox  */
.example-form {
    --stroke: 2px;
    --gap: 1rem;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #c1c9d8;
    font-family: system-ui;
    padding: 10px;
    border-radius: 5px;
    width: 100%;
}

.example-form input {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/* ✅ Normal Checkbox */
.example-form .normal-checkbox {
    position: relative;
    /* margin-bottom: 8px; */
}

.example-form .normal-checkbox::before,
.example-form .normal-checkbox::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.example-form .normal-checkbox::before {
    left: 0;
    height: 25px;
    width: 25px;
    box-shadow: inset 0 0 0 var(--stroke) #cad1df;
    border-radius: 0.5rem;
}

.example-form .normal-checkbox::after {
    left: calc(25px / 2);
    border-radius: 4px;
    height: 0;
    width: 0;
    transition: 200ms ease-out;
}

.example-form .normal-checkbox label {
    cursor: pointer;
    padding: 0px calc(20px + var(--gap));
    /* user-select: none; */
    color: #424344;
    font-weight: 400;
    font-family: "Kanit", sans-serif;
    font-size: 16px;
}

.example-form .normal-checkbox:has(input:checked)::after {
    left: calc(4px + 1px);
    height: 15px;
    width: 15px;
    background-color: #348be7;
}

/* error  */
.input_error {
    width: 100%;
    height: 30px;
    display: flex;
    align-items: center;
    color: #b92020;
    font-family: "Kanit", sans-serif;

    display: none;
}

.input_error.show {
    display: block;
}

/* swal  */
div:where(.swal2-container) div:where(.swal2-popup) {
    position: relative;

    border-radius: 20px;

    background: url("../images/modal/main_bg.png") !important;
    background-position: center;
    background-size: cover;

    border: 5px solid #e6daca;
    box-shadow: 0px 0px 0px 6px #fff;
    overflow: hidden;
}

/* ==== End-modal ==== */

/* ==== SocialConnect ====  */
.socialConnect_img {
    width: 150px;
}

.socialConnect_mainLayoutwarning {
    width: 100%;
    min-height: 200px;
    border: 1px solid #8b1010;
    border-radius: 10px;
}

.socialConnect_warning {
    width: 100%;
    height: 40px;
    padding: 5px 10px;
    border-radius: 8px 8px 0px 0px;

    background: #8b1010;
    color: #fff;

    display: flex;
    align-items: center;
    gap: 10px;
}

/* download store  */
.store_mainLayout {
    width: 200px;
    height: 60px;
    padding: 10px 20px;
    border-radius: 15px;

    display: flex;
    align-items: center;
    gap: 10px;

    background: #000;
    color: #fff;
    border: 2px solid #fff;
    box-shadow: 1px 2px 2px #000000c5;

    transition: all 0.5s;
}

.store_mainLayout:hover {
    box-shadow: 1px 2px 5px 2px #ffffff96;
}

.store_iconLayout {
    width: 48px;
}

.store_contentLayout {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.store_title {
    font-size: 17px;
    line-height: 25px;
    font-weight: 500;
}

.store_des {
    font-size: 12px;
    font-weight: 500;
}

/* pre-register howto modal */
.prm_guideLayout {
    position: relative;
    width: 350px;
    min-width: 350px;
    min-height: 550px;
    border-radius: 20px;

    background: url("../images/modal/main_bg.png");
    background-position: center;
    background-size: cover;

    border: 2px solid #e6daca;
    box-shadow: 0px 0px 0px 6px #fff;
    overflow: hidden;
}

/* ป้องกันไม่ให้ preregisterModal หายเมื่อเปิดอีก modal */
.modal-backdrop-hidden {
    z-index: 1040 !important;
}

#GuidePreRegisterModal {
    z-index: 1055 !important;
}

.dropdown-menu {
    height: 420px;
    overflow: auto;
}

.dropdown-search {
    position: sticky;
    top: 0;
    background: #fff;
    width: 100%;
}

/* Cookie  */
.cookies_mainLayout {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);

    z-index: 1099;
    width: 80%;
    min-height: 50px;
    margin: 0 auto;
    border-radius: 15px;
    padding: 20px 25px;

    background: #fffdfaf1;
    border: 1px solid #e6dccd;
    box-shadow: 0px 0px 3px 1px #e6dccd;
}

.cookies_contentMainLayout {
    width: 100%;
    height: 100dvh;
    border-radius: 20px;
    padding: 20px;
    background: #fff;

    overflow: hidden;
}

.table-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
    /* เปิด scroll แนวนอน */
    -webkit-overflow-scrolling: touch;
    /* ทำให้ scroll ลื่นในมือถือ */
}

.table-responsive-wrapper table {
    min-width: 600px;
    /* ป้องกันไม่ให้ตารางบีบคอลัมน์ */
    border-collapse: collapse;
}
