@font-face {
    font-family: "SukhumvitSet";
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/SukhumvitSet.eot');
    /* IE9 Compat Modes */
    src: url('../fonts/SukhumvitSet.eot') format('embedded-opentype'), /* IE6-IE8 */
    url('../fonts/SukhumvitSet.woff') format('woff'), /* Pretty Modern Browsers */
    url('../fonts/SukhumvitSet.ttf') format('truetype'), /* Safari, Android, iOS */
    url('../fonts/SukhumvitSet.svg#UbuntuBold') format('svg');
}

@font-face {
    font-family: "SukhumvitSet";
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/SukhumvitSet.eot');
    /* IE9 Compat Modes */
    src: url('../fonts/SukhumvitSet.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
    url('../fonts/SukhumvitSet.woff') format('woff'), /* Pretty Modern Browsers */
    url('../fonts/SukhumvitSet.ttf') format('truetype');
    /* Safari, Android, iOS */
}

@font-face {
    font-family: "Prompt-Bold";
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/Prompt-Bold.ttf') format('truetype');
    /* Safari, Android, iOS */
}

@font-face {
    font-family: "Kanit-Medium";
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/Kanit-Medium.ttf') format('truetype');
    /* Safari, Android, iOS */
}

@font-face {
    font-family: "Prompt-Regular";
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/Prompt-Regular.ttf') format('truetype');
    /* Safari, Android, iOS */
}

@font-face {
    font-family: "DBHeaventBlkCondv";
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/DBHeaventBlkCondv3_2.ttf') format('truetype');
    /* Safari, Android, iOS */
}

@font-face {
    font-family: "DBHelvethaicaBdCond";
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/DB-Helvethaica-X-Bd-Cond.ttf') format('truetype');
    /* Safari, Android, iOS */
}

@font-face {
    font-family: "AlteHaasGroteskBold";
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/AlteHaasGroteskBold.eot');
    /* IE9 Compat Modes */
    src: url('../fonts/AlteHaasGroteskBold.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
    url('../fonts/AlteHaasGroteskBold.woff') format('woff'), /* Pretty Modern Browsers */
    url('../fonts/AlteHaasGroteskBold.ttf') format('truetype');
    /* Safari, Android, iOS */
}

@font-face {
    font-family: "NotoSansThai-Regular";
    font-style: normal;
    font-weight: 700;
    src: url("../fonts/NotoSansThai-Regular.ttf") format("truetype");
}

@font-face {
    font-family: "NotoSansThai-SemiBold";
    font-style: normal;
    font-weight: 700;
    src: url("../fonts/NotoSansThai-SemiBold.ttf") format("opentype");
}

body {
    font-family: SukhumvitSet;
}

h2 {
    text-transform: uppercase;
    color: #527999;
    padding: 15px 0;
    margin-bottom: 20px;
}

h3 {
    font-weight: bold;
}

table.planning {
    padding: 10px;
    border-radius: 5px;
}

table.planning tr td {
    padding: 5px;
}

.entry-left,
.entry-right {
    width: 50%
}

.footer {
    margin: 0 auto;
    text-align: center;
}

.entry-left {
    float: left;
}

.entry-right {
    float: right;
}

.map-section {
    margin: 20px auto;
    text-align: center;
}

.scan-success-section {
    background: url("../img/main/scan_03.jpg") no-repeat;
    background-size: 100% auto;
    padding-top: 50%;
    padding-bottom: 40%;
}

.scan-success-section p.title a {
    font-size: 28px;
    color: black;
    text-decoration: none;
}

.scan-success-section p a {
    color: black;
    font-size: 16px;
    text-decoration: none;
}

.scan-success-section p {
    font-size: 30px;
    color: black;
    text-decoration: none;
}

.scan-success-section p.big {
    font-size: 40px;
    text-decoration: none;
}

.scan-success-section p.small {
    font-size: 40px;
    color: #ffffff;
    text-decoration: none;
}

.preview-container #preview {
    text-align: center;
}

.preview-container {
    text-align: center;
    background: #ffffff;
}

.org-success-section {
    margin: 230px auto;
}

.org-success-section p.title a {
    font-size: 28px;
    color: #ffffff;
    text-decoration: none;
}

.org-success-section p {
    font-size: 30px;
    color: #ffffff;
    text-decoration: none;
}

.scanqr {
    background: #ffffff;
    width: 100%;
}

#app div {
    background: #ffffff;
}

#scan01 {
    padding: 0;
}

#divresult {
    color: #ff0000;
    font-size: 20px;
}

@media (max-width: 768px) {
    .responsive {
        width: 100% !important;
        height: auto !important;
    }
    .entry-left,
    .entry-right {
        width: 100%;
    }
    table.planning {
        width: 100% !important;
    }
    .scan-success-section {
        padding-bottom: 21%;
    }
}

@media (max-width: 575px) {
    table.planning {
        width: 100% !important;
    }
    .footer img {
        width: 20%;
        height: auto;
    }
    .footer img.footericon01 {
        width: 15% !important;
        height: auto !important;
    }
    .footer img.footericon02 {
        width: 25% !important;
        height: auto !important;
    }
}

@media (max-width: 668px) {
    .bgmain {
        background-image: url('../img/main/bg2.jpg');
        background-repeat: repeat;
    }
}

@media (min-width: 669px) {
    .bgmain {
        background-image: url('../img/main/bg2.jpg');
        background-repeat: repeat;
    }
}

@media (max-width: 668px) {
    .bg3 {
        background-image: url('../img/main/bgscan.jpg');
        /* Full height */
        height: 100%;
        /* Center and scale the image nicely */
        background-position: center;
        background-repeat: no-repeat;
        background-size: auto 100%;
    }
}

@media (min-width: 669px) {
    .bg3 {
        background-image: url('../img/main/bgscan.jpg');
        /* Full height */
        height: 100%;
        /* Center and scale the image nicely */
        background-position: center;
        background-repeat: no-repeat;
        background-size: auto 100%;
    }
}

@media (max-width: 765px) {
    .bg1 {
        background-image: url("../img/main/bg_p1_m.jpg");
        background-position: top;
        background-repeat: no-repeat;
        background-size: 100% auto;
        background-attachment: fixed;
    }
}

@media (min-width: 764px) {
    .bg1 {
        background-image: url("../img/main/bg_p1.jpg");
        height: 100%;
        background-position: left;
        background-repeat: no-repeat;
        background-size: cover;
        background-attachment: fixed;
    }
}

@media (max-width: 668px) {
    .bg2 {
        width: 100%;
        height: 100%;
        background-image: url('../img/main/bgscan_m.jpg');
        background-repeat: no-repeat;
        background-attachment: fixed;
        background-size: 100% 100%;
    }
}

@media (min-width: 669px) {
    .bg2 {
        width: 100%;
        height: 100%;
        background-image: url('../img/main/bgscan.jpg');
        background-repeat: no-repeat;
        background-attachment: fixed;
        background-size: 100% 100%;
    }
}

@media (max-width: 668px) {
    .htmlmain {
        width: 100%;
        height: 100%;
        background-image: url('../img/main/bgscan_m.jpg');
        background-repeat: no-repeat;
        background-attachment: fixed;
        background-size: auto 100%;
        background-position: center;
    }
}

@media (min-width: 669px) {
    .htmlmain {
        width: 100%;
        height: 100%;
        background-image: url('../img/main/bgscan.jpg');
        background-repeat: no-repeat;
        background-attachment: fixed;
        background-size: auto 100%;
        background-position: center;
    }
}

.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 150px;
}

.image_full {
    display: block;
}

.image_mobile {
    display: none;
}

@media (max-width: 821px) and (min-width: 220px) {
    .image_full {
        display: none;
    }
    .image_mobile {
        display: block;
    }
}

.block {
    width: 80%;
    max-width: 340px;
    border: none;
    background-color: #ddd;
    color: white;
    padding: 14px 28px;
    font-size: 20px;
    cursor: pointer;
    text-align: center;
    border-radius: 12px;
}

body {
    -ms-overflow-style: none;
    /* for Internet Explorer, Edge */
    scrollbar-width: none;
    /* for Firefox */
    overflow-y: scroll;
}

body::-webkit-scrollbar {
    display: none;
    /* for Chrome, Safari, and Opera */
}

.block:hover {
    background-color: #ddd;
    color: black;
}

.block2 {
    max-width: 140px;
    border: none;
    /* background-color: #ddd; */
    background-color: #105e79;
    color: white;
    padding: 10px 20px;
    font-size: 20px;
    cursor: pointer;
    text-align: center;
    border-radius: 12px;
}

.block2:hover {
    background-color: #ddd;
    color: black;
}

.block3 {
    max-width: 140px;
    border: none;
    /* background-color: #ddd; */
    background-color: #f9abab;
    color: white;
    padding: 10px 20px;
    font-size: 20px;
    cursor: pointer;
    text-align: center;
    border-radius: 12px;
}

.block3:hover {
    background-color: #ddd;
    color: black;
}

.centered {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -50px;
    margin-left: -50px;
    width: 100px;
    height: 100px;
}

.thegrid {
    display: grid;
    grid-template-columns: auto auto auto auto;
    grid-gap: 5px;
}

.circle {
    width: 50px;
    height: 50px;
    border-radius: 0%;
    line-height: normal;
}

.circlem {
    width: 35px;
    height: 35px;
    border-radius: 0%;
    line-height: normal;
}

.caption {
    position: absolute;
    right: 30px;
    top: 950px;
    text-align: center;
    color: #000;
}

span {
    display: table-cell;
    vertical-align: middle;
}

.captionlogo {
    position: absolute;
    right: -5px;
    top: 10px;
    text-align: center;
    color: #000;
}

.container {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-family: DBHelvethaicaBdCond;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


/* Hide the browser's default checkbox */

.container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}


/* Create a custom checkbox */

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #eee;
}


/* On mouse-over, add a grey background color */

.container:hover input~.checkmark {
    background-color: #ccc;
}


/* When the checkbox is checked, add a blue background */

.container input:checked~.checkmark {
    background-color: #2196F3;
}


/* Create the checkmark/indicator (hidden when not checked) */

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}


/* Show the checkmark when checked */

.container input:checked~.checkmark:after {
    display: block;
}


/* Style the checkmark/indicator */

.container .checkmark:after {
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

hr.style1 {
    border-top: 1px solid #E02559;
}

.s1 {
    background-color: #f4f1ed;
    border: 0px;
    color: #291D43;
}

.s2 {
    background-color: #f1e9e0;
    border: 0px;
    color: #291D43;
}

.s3 {
    background-color: #ebdfd0;
    border: 0px;
    color: #291D43;
}

.s4 {
    background-color: #eadac5;
    border: 0px;
    color: #291D43;
}

.s5 {
    background-color: #e9d4ba;
    border: 0px;
    color: #291D43;
}

.s6 {
    background-color: #e5caaa;
    border: 0px;
    color: white;
}

.s7 {
    background-color: #e0c09a;
    border: 0px;
    color: white;
}

.s8 {
    background-color: #dbb486;
    border: 0px;
    color: white;
}

.s9 {
    background-color: #d4a975;
    border: 0px;
    color: white;
}

.s10 {
    background-color: #cc9c63;
    border: 0px;
    color: white;
}

.r1 {
    background-color: #f7bda8;
    border: 0px;
    color: #291D43;
}

.r2 {
    background-color: #f79d7d;
    border: 0px;
    color: #291D43;
}

.r3 {
    background-color: #f38158;
    border: 0px;
    color: #291D43;
}

.r4 {
    background-color: #f06c3c;
    border: 0px;
    color: white;
}

.r5 {
    background-color: #EE5823;
    border: 0px;
    color: white;
}

.r6 {
    background-color: #8B3B5E;
    border: 0px;
    color: white;
}

hr.style13 {
    height: 10px;
    border: 0;
    box-shadow: 0 10px 10px -10px #8c8b8b inset;
}

.radio-group legend {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
}

.radio-option {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.radio-option input[type="radio"] {
    accent-color: #007bff;
    width: 18px;
    height: 18px;
    margin-right: 10px;
}

.glow-button {
    position: relative;
    display: inline-block;
}

.glow-button::before {
    content: '';
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background: radial-gradient(at 0% 70%, rgba(255, 255, 255, 0.8) 60%, transparent 10%);
    filter: blur(20px);
    opacity: 1.9;
    animation: pulse 2s ease-in-out infinite alternate;
    z-index: 1;
    pointer-events: none;
}

.glow-button img {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 10;
    border-radius: 20px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.05);
        opacity: 1;
    }
}


/* แอนิเมชันเลื่อนขึ้นแบบนุ่มนวล */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ใช้สำหรับ fade-in ทั่วไป */

.fade-in {
    animation: fadeUp 1s ease-out forwards;
    opacity: 0;
}


/* ปุ่มเรืองแสง */

.glow-button {
    position: relative;
    z-index: 1;
    transition: 0.3s ease-in-out;
}

.glow-button::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: radial-gradient(white, transparent 60%);
    border-radius: 50px;
    filter: blur(10px);
    opacity: 0.6;
    animation: glow 2s infinite ease-in-out;
    z-index: -1;
}

@keyframes glow {
    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.03);
    }
}


/* พื้นหลังเคลื่อนไหวเบาๆ */

@keyframes bgFloat {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.bg-animated {
    background: linear-gradient(-45deg, #0F076E, #170874, #0F076E);
    background-size: 300% 300%;
    animation: bgFloat 20s ease infinite;
}

@keyframes floatY {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.float-animate {
    animation: floatY 2.8s ease-in-out infinite;
    /* สามารถปรับระยะให้เบาๆได้ */
}

.inline-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    /* ระยะห่างไอคอนกับข้อความ */
}

@media (max-width: 991.98px) {
    .force-col-100 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

.vertical {
    float: left;
    border-right: 3px solid rgb(255, 255, 255);
    padding-right: 1rem;
    margin-right: 1rem;
}

.location-row {
    display: flex;
    align-items: center;
    /* สำคัญสุด! */
    background: linear-gradient(90deg, #080e63 0%, #2d2371 100%);
    color: #fff;
    padding: 18px 16px;
    font-family: 'NotoSansThai-SemiBold', Arial, sans-serif;
    font-size: 1.4em;
}

.location-info {
    font-weight: bold;
    flex: 1 1 60%;
    line-height: 1.12;
}

.no-wrap {
    white-space: nowrap;
}

.location-divider {
    width: 2.5px;
    height: 55px;
    background: #fff;
    margin: 0 24px;
    border-radius: 2px;
    opacity: 0.7;
}

.location-map {
    display: flex;
    align-items: center;
    /* จัดไอคอน+ข้อความให้อยู่กลาง */
    gap: 9px;
    color: #fff;
    text-decoration: none;
    font-size: 1em;
    font-weight: 600;
}

.location-map:hover .location-text {
    color: #ffdf40;
    border-bottom: 2px solid #ffdf40;
}

.location-icon svg {
    vertical-align: middle;
    display: inline-block;
}

.location-text {
    border-bottom: 2px solid #fff;
    padding-bottom: 1px;
    margin-left: 2px;
}

@media (max-width: 600px) {
    .location-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        font-size: 1em;
    }
    .location-divider {
        width: 80%;
        height: 2px;
        margin: 12px 0;
    }
    .location-map {
        margin-left: 0;
    }
}