/* ==========================================================================================
   ตัวแปรกลางของหน้า web แบ่ง 2 ประเภท แก้ที่นี่ที่เดียว มีผลทั้งเว็บ
   ========================================================================================== */
:root {
    /* ----- 1. การ์ด / กล่อง -----
       การ์ดทุกแบบบนหน้า web: การ์ดติดต่อเรา/คู่มือ, คำถาม FAQ, การ์ดฟีเจอร์หน้าแรก, การ์ดแพ็กเกจ,
       แถบทดลองใช้ฟรี, กล่อง login, กล่องข้อความแนะนำในหน้า login, กล่องติดต่อในหน้าเงื่อนไขฯ, ไอคอนสี่เหลี่ยมในการ์ด
       ตอนปกติ: เส้นขอบบาง + เงา sm (แทบมองไม่เห็น แค่ให้ขอบคม)
       ตอน hover / เปิดอยู่: ขอบฟ้าโปร่ง + เงา md อมฟ้า + ลอยขึ้น 2px (เฉพาะการ์ดที่กดได้)
       เงา lg ใช้กับกล่องที่ลอยบนพื้นเข้มเท่านั้น (กล่อง login) */
    --fixa-card-radius: 12px;
    --fixa-card-border: #e5eaea;
    --fixa-card-border-hover: rgba(0, 108, 224, 0.4);
    --fixa-card-lift: translateY(-2px);
    --fixa-shadow-sm: 0 1px 2px rgba(13, 47, 107, 0.06);
    --fixa-shadow-md: 0 8px 24px rgba(0, 108, 224, 0.12);
    --fixa-shadow-lg: 0 16px 40px rgba(10, 31, 68, 0.25);

    /* ----- 2. ปุ่ม + ช่องกรอกข้อมูล -----
       มุมโค้งเท่ากับในโปรแกรม (app/css/fixa.css: --fixa-radius 4px) ห้ามผูกกับมุมการ์ด
       ใช้กับช่อง input และปุ่มสี่เหลี่ยม (หน้า login / signup / forgot ฯลฯ)
       ปุ่มแคปซูล (header, หน้าราคา, hero, แถบคุกกี้) ใช้ 999px คงที่ ไม่ใช้ตัวแปรนี้ */
    --fixa-radius: 4px;
    --fixa-btn-shadow: 0 2px 6px rgba(0, 108, 224, 0.25);
    --fixa-btn-shadow-hover: 0 6px 16px rgba(0, 108, 224, 0.35);
}

body.wait-cursor *,
body.wait-cursor {
    cursor: progress !important;
}

.translate-rotate {
    transform: rotate(180deg);
    display: inline-block;
}

@media screen and (min-width: 1024px) {
    .card-columns {
        -webkit-column-count: 3;
        -moz-column-count: 3;
        column-count: 3;
        -webkit-column-gap: 1.25rem;
        -moz-column-gap: 1.25rem;
        column-gap: 1.25rem;
        orphans: 1;
        widows: 1;
    }
}

.card.pi-col-sm-4 {
    float: unset;
}

.card-columns .card {
    display: inline-block;
    width: 100%;
}

.card-columns .card {
    margin-bottom: .75rem;
}

.mb-4,
.my-4 {
    margin-bottom: 1.5rem !important;
}

.card {
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border-radius: .25rem;
}

.image-container {
    width: 100%;
    position: relative;
    padding: 0;
    background: #21252b;
    /* height: 450px; */
    display: flex;
    align-items: center;
}

.image-container img {
    width: 100%;
    height: 100%;
}

/* หัวข้อทุกระดับ (h1-h6) ภาษาไทยตัวอักษรชิดกันเกินไป เว้นระยะเพิ่มเล็กน้อย
   ใช้หน่วย em ให้ระยะห่างขยายตามขนาดตัวอักษร (หัวข้อใหญ่ได้ระยะมากขึ้นตามสัดส่วน)
   class ที่กำหนด letter-spacing เอง (เช่น .pi-letter-spacing, .footer-heading) ยังชนะกฎนี้ */
h1,
h2,
h3,
h4,
h5,
h6 {
    letter-spacing: 0.02em;
}

/* แถบแจ้งคุกกี้: พื้นกรมท่าแบบ footer / hero (ไม่ใช้ opacity ทั้งแถบ เพราะทำให้ตัวอักษรและปุ่มจางไปด้วย) */
#cookie-bar {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 50;
    background: rgba(10, 31, 68, 0.96);
    border-top: 1px solid rgba(0, 200, 255, 0.25);
    box-shadow: 0 -6px 20px rgba(10, 31, 68, 0.25);
    color: rgba(255, 255, 255, 0.85);
}

/* ไอคอนคุกกี้หน้าข้อความแจ้งการใช้คุกกี้ ฟ้าเรืองแสงชุดเดียวกับตัวเน้นใน hero */
#cookie-bar .cookie-bar-icon {
    font-size: 1.4em;
    color: #8ee4ff;
    margin-right: 6px;
    vertical-align: middle;
}

#cookie-bar a.pi-text-base {
    color: #8ee4ff !important;
    font-weight: 600;
}

/* ปุ่มยอมรับ / ปิด: แคปซูลแบบ .header-login-btn, ปุ่มปิดเป็นขอบโปร่ง */
#cookie-bar .btn.pi-btn-base {
    display: inline-flex;
    align-items: center;
    padding: 6px 20px;
    border-radius: 999px;
    font-weight: 600;
    text-shadow: none;
    box-shadow: 0 2px 6px rgba(0, 108, 224, 0.25);
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

#cookie-bar .btn.pi-btn-base:hover {
    transform: translateY(-1px);
}

#cookieCloseBtn.btn.pi-btn-base,
#cookieCloseBtnMobile.btn.pi-btn-base {
    padding: 6px 14px;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: none;
}

#cookieCloseBtn.btn.pi-btn-base:hover,
#cookieCloseBtnMobile.btn.pi-btn-base:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.5);
}

.hidden {
    display: none;
    visibility: hidden;
}

/* กล่องหน้า login / signup / forgot_pwd / logged_out ฯลฯ (เนื้อที่จริง 320px หลังหัก padding 30px ซ้ายขวา) */
.box-center {
    margin: auto;
    max-width: 380px;
}

/* ชื่อบริษัทในแถบบนสุด ขนาด/น้ำหนักตัวอักษรเดียวกับเบอร์โทรและปุ่มเปลี่ยนภาษา
   สูง 28px เท่าแคปซูล เพื่อให้อยู่แนวเดียวกัน, มีเส้นคั่นด้านขวาแยกจากเบอร์โทร */
a.header-company {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding-right: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

a.header-company span {
    color: rgba(255, 255, 255, 0.45);
    font-size: 10px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

a.header-company:hover,
a.header-company:focus {
    color: #fff;
    text-decoration: none;
}

/* ลิงก์แบบแคปซูลบนพื้นสีเข้ม (เบอร์โทรในแถบบนสุด, ปุ่มล็อคอินใน footer) ขนาดเดียวกับปุ่มเปลี่ยนภาษา */
a.pill-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 14px;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

a.pill-link:hover,
a.pill-link:focus {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
}

a.pill-link i {
    margin: 0;
    color: #3B8FF0;
    font-size: 13px;
}

a.pill-link i:before {
    margin: 0;
}

a.pill-link .line-label {
    color: #06C755;
    /* สีเขียวของ LINE */
}

a.pill-link.hidden {
    display: none;
}

/* footer ให้เข้าชุดกับแถบบนสุด: หัวข้อตัวเล็กสีจาง, ข้อความ/ลิงก์ขาวจาง, ไอคอนสีฟ้าแบรนด์ */
.site-footer.pi-section-dark .footer-heading {
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* global.css กำหนด .pi-col-md-4 เป็น 393.5px ตายตัว ทำให้คอลัมน์ "ติดตามข่าวสาร" หลุดลงบรรทัดใหม่
   ใน footer ให้กลับมาเป็น 1/3 เพื่อให้ แผนผังเว็บไซต์ (3) + ติดต่อเรา (5) + ติดตามข่าวสาร (4) อยู่แถวเดียวกัน */
@media (min-width: 992px) {
    .site-footer .pi-col-md-4 {
        width: 33.33333333333333%;
    }
}

.site-footer.pi-section-dark .pi-social-icons+.footer-heading {
    margin-top: 30px;
    /* หัวข้อ "app อื่นๆของเรา" ที่ต่อจากไอคอนติดตามข่าวสาร */
}

/* การ์ดฟีเจอร์ 6 ใบในหน้าแรก (index.html / index_en.html)
   - global.css กำหนด .pi-col-sm-6 เป็น 393.5px ตายตัว ช่วงจอ 768-1119px การ์ดจึงชิดซ้าย เหลือที่ว่างด้านขวา
     และจอ 768-836px เหลือแถวละใบเดียวแต่กว้างแค่ครึ่งจอ ให้กลับมาเป็น 1/2
   - การ์ดเป็น float ถ้าข้อความยาวไม่เท่ากัน การ์ดแถวถัดไปจะไปเกี่ยวใต้ใบที่เตี้ยกว่าจนแถวเยื้อง
     ใช้ flex-wrap แทน ให้การ์ดเริ่มแถวใหม่ตรงกันเสมอ */
.features-row {
    display: flex;
    flex-wrap: wrap;
}

.features-row:before,
.features-row:after {
    display: none;
    /* clearfix ของ .pi-row จะกลายเป็น flex item ว่างๆ ถ้าไม่ปิด */
}

.features-row>[class*="pi-col-"] {
    width: 100%;
}

@media (min-width: 768px) {
    .features-row>.pi-col-sm-6 {
        width: 50%;
    }
}

@media (min-width: 1120px) {
    .features-row>.pi-col-lg-4 {
        width: 33.33333333333333%;
    }
}

/* ไอคอนใช้ชุดเดียวกับแอป: layout โหลด /app/plugins/font-tello/css/fontello.css แทนฟอนต์ไอคอนเดิมของเว็บ
   ใน HTML ใช้ class icon-xxx ชื่อเดียวกับใน app/plugins/font-tello/css/fontello.css ได้เลย
   ไฟล์ fontello.css ต้องโหลดก่อน fixa.css กฎข้างล่างจึงทับได้ */

/* fontello.css ของแอปเว้น margin .2em ซ้าย-ขวาทุกไอคอน แต่หน้าเว็บจัดระยะเองด้วย pi-icon-left / m-r-5 อยู่แล้ว */
[class^="icon-"]:before,
[class*=" icon-"]:before {
    margin-left: 0;
    margin-right: 0;
}

/* ไอคอนชุดแอปเป็นแบบเส้น (Lucide) ดูเล็กและลอยสูงกว่าตัวหนังสือเมื่อเทียบกับไอคอนทึบชุดเดิม
   ไอคอนที่อยู่ในบรรทัดเดียวกับข้อความ (ปุ่ม, รายการติดต่อ, ตารางราคา) ขยายนิดหน่อยและกดลงให้ตรงแนวตัวหนังสือ */
[class^="icon-"]:before,
[class*=" icon-"]:before {
    font-size: 1.15em;
    vertical-align: -0.125em;
}

/* ไอคอนที่อยู่ในกรอบขนาดตายตัว กำหนดขนาด / จัดกลางจากกรอบเองอยู่แล้ว ไม่ต้องขยาย / กดลง */
.pi-icon-box-icon [class^="icon-"]:before,
.footer-icon [class^="icon-"]:before,
.pi-input-icon [class^="icon-"]:before,
.pi-social-icons [class^="icon-"]:before,
.pi-mobile-menu-toggler [class^="icon-"]:before,
.pi-caption-icon[class*=" icon-"]:before,
.pi-icon-circle[class^="icon-"]:before,
.info-card-icon [class^="icon-"]:before,
.info-social [class^="icon-"]:before,
.legal-contact [class^="icon-"]:before,
sup[class^="icon-"]:before {
    font-size: 1em;
    vertical-align: baseline;
}

/* วงกลมไอคอนใหญ่หัวหน้า (contact, doc, faq, pricing, ...) theme ตั้ง 34px ไอคอนเส้นดูแน่นเกินวงกลม ลดลงให้มีที่ว่างรอบๆ */
.pi-icon-circle.pi-icon-big[class^="icon-"] {
    font-size: 30px;
}

/* ไอคอนที่ theme (global.css, accordion.css, slider.css บน CloudFront) ใส่ผ่าน CSS ด้วย font-family: fontello
   ตอนนี้ชื่อ fontello คือฟอนต์ของแอป รหัสเดิมของ theme จึงชี้ผิดตัว ต้องกำหนด content ใหม่เป็นรหัสของแอป
   ถ้าแอป generate ฟอนต์ใหม่จาก fontello.com ต้องเช็กรหัสเหล่านี้ให้ตรงกับ app/plugins/font-tello/css/fontello.css */
.pi-menu li.pi-has-dropdown>a:after,
.pi-simple-menu li.pi-has-dropdown>a:after {
    content: '\e8b8';
    /* chevron-down */
}

.pi-scroll-top-arrow:after {
    content: '\e8b3';
    /* chevron-up */
}

/* ปุ่มเลื่อนขึ้นบนสุด: theme ตั้งพื้นเทาเข้ม / hover ส้ม จึงทับเป็นสีน้ำเงิน fixa ทั้งสองสถานะ */
.pi-scroll-top-arrow {
    border: none;
    border-radius: 12px;
    background: #006CE0;
    color: #fff;
    font-size: 20px;
    line-height: 50px;
    box-shadow: 0 4px 12px rgba(0, 108, 224, 0.25);
    transition: all 0.2s ease-in-out 0s;
}

.pi-scroll-top-arrow:hover {
    background: #0056B3;
    color: #fff;
    box-shadow: 0 6px 16px rgba(0, 108, 224, 0.35);
    transform: translateY(-2px);
}

.pi-list-icons-dot li:after {
    content: '\e82e';
    /* circle-small */
}

.pi-list-icons-right-open li:after {
    content: '\e8b4';
    /* chevron-right */
}

.pi-list-icons-news li:after {
    content: '\e87a';
    /* newspaper */
}

.pi-accordion.pi-behavior-toggle .pi-accordion-title .pi-accordion-toggle:after {
    content: '\e872';
    /* plus */
}

.pi-accordion.pi-behavior-toggle .pi-accordion-item-active .pi-accordion-title .pi-accordion-toggle:after {
    content: '\e87d';
    /* minus */
}

.pi-slider-arrow-left span:before {
    content: '\e8b5';
    /* chevron-left */
}

.pi-slider-arrow-right span:before {
    content: '\e8b4';
    /* chevron-right */
}

/* ไอคอนการ์ดฟีเจอร์: กรอบสี่เหลี่ยมมุมมนพื้นฟ้าอ่อน ไอคอนสีน้ำเงิน fixa (เข้ากับไอคอนเส้นชุดแอป)
   theme ตั้ง .pi-icon-box-icon-square เป็นพื้นส้ม / hover เขียว จึงทับสีทั้งสองสถานะ */
.features-row .pi-icon-box .pi-icon-box-icon-square.pi-icon-box-icon-base {
    width: 48px;
    height: 48px;
    margin-top: 2px;
    border-radius: var(--fixa-card-radius);
    background: rgba(0, 108, 224, 0.1);
    color: #006CE0;
    font-size: 24px;
    line-height: 48px;
    text-shadow: none;
    box-shadow: none;
}

.features-row .pi-icon-box-hover:hover .pi-icon-box-icon-square.pi-icon-box-icon-base {
    background: #006CE0;
    color: #fff;
    box-shadow: 0 6px 16px rgba(0, 108, 224, 0.25);
    /* แบบเดียวกับเงาปุ่มเข้าสู่ระบบตอน hover */
}

.site-footer .footer-nav,
.site-footer .footer-contact {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer .footer-nav li {
    margin-bottom: 10px;
}

.site-footer.pi-section-dark .footer-nav a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    transition: color 0.2s ease, transform 0.2s ease;
}

/* จุดสีฟ้าแบรนด์หน้าลิงก์ */
.site-footer .footer-nav a:before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #3B8FF0;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.site-footer.pi-section-dark .footer-nav a:hover {
    color: #fff;
    text-decoration: none;
    transform: translateX(3px);
}

.site-footer .footer-nav a:hover:before {
    opacity: 1;
}

.site-footer .footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    line-height: 1.6;
}

/* ไอคอนในวงกลมขอบจาง ให้เข้าชุดกับแคปซูลในแถบบนสุด */
.site-footer .footer-icon {
    flex: 0 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    color: #3B8FF0;
    font-size: 15px;
    /* ไอคอนเส้นชุดแอปที่ 13px ดูเล็กเกินไปในวงกลม 28px */
}

.site-footer .footer-icon i:before {
    margin: 0;
}

/* ป้ายกำกับตัวเล็กสีจาง แบบเดียวกับคำว่า "BY" ในแถบบนสุด */
.site-footer .footer-label {
    display: block;
    color: rgba(255, 255, 255, 0.45);
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.4;
}

.site-footer.pi-section-dark .footer-contact strong {
    color: #fff;
    font-weight: 600;
}

.site-footer.pi-section-dark .footer-contact a {
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.site-footer.pi-section-dark .footer-contact a:hover {
    color: #3B8FF0;
    text-decoration: none;
}

.site-footer.pi-section-dark a.footer-link {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}

.site-footer.pi-section-dark a.footer-link:hover {
    color: #fff;
    text-decoration: none;
}

.site-footer-bottom.pi-section-dark .pi-row-block-txt {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 28px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.lang-switch {
    position: relative;
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    /* ให้ 2 ปุ่มกว้างเท่ากันเสมอ แถบเลื่อนจึงกว้างครึ่งหนึ่งพอดี */
    margin-left: 20px;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.04);
    /* ปุ่มสลับภาษาแบบ segmented toggle */
}

.lang-thumb {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 3px;
    width: calc((100% - 6px) / 2);
    border-radius: 999px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    /* แถบสีขาวที่เลื่อนไปอยู่ใต้ภาษาที่ใช้อยู่ */
}

.lang-switch:has(.lang-option[data-lang="en-GB"].active) .lang-thumb {
    transform: translateX(100%);
}

.lang-option {
    position: relative;
    z-index: 1;
    min-width: 44px;
    padding: 3px 12px;
    /* สูงรวม 30px เท่าปุ่มธงเดิม แถว header จะได้ไม่ขยับ */
    border: none;
    border-radius: 999px;
    background-color: transparent;
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 16px;
    /* ไม่ใช้ line-height: 1 เพื่อไม่ให้สระ/วรรณยุกต์ไทยถูกตัด */
    text-align: center;
    cursor: pointer;
    transition: color 0.22s ease;
}

.lang-option:not(.active):hover {
    color: #fff;
}

.lang-option.active {
    color: #222;
    cursor: default;
    /* ภาษาที่ใช้อยู่ */
}

.lang-option:focus {
    outline: none;
}

.lang-option:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.7);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {

    .lang-thumb,
    .lang-option {
        transition: none;
    }
}

.pi-margin-right-20 {
    margin-right: 20px;
}

.pi-margin-right-10 {
    margin-right: 10px;
}

.header-social-icons {
    margin-left: 5px;
}

.header-follow-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    /* ข้อความจางให้เข้าชุดกับแถบบนสุด */
}

/* ปุ่มใน header แบบแคปซูล ให้เข้าชุดกับปุ่มเปลี่ยนภาษา
   คง padding บน/ล่าง 9px + line-height 18px ของ .btn ไว้ เพื่อให้ความสูงเท่าเดิม
   theme จะได้จัดตำแหน่งแนวตั้งของ .pi-btn ใน header ได้ถูกต้อง */
.btn.pi-btn.header-btn {
    display: inline-flex;
    align-items: center;
    /* ล็อคความสูง ให้ปุ่มล็อคอิน (มีไอคอน) กับปุ่มเริ่มต้นใช้งาน (ไม่มีไอคอน) สูงเท่ากัน */
    height: 38px;
    gap: 8px;
    padding: 9px 22px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn.pi-btn.header-btn.hidden {
    display: none;
}

.btn.pi-btn.header-login-btn {
    margin-right: 1px;
    background: #006CE0;
    border: 1px solid #006CE0;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(0, 108, 224, 0.25);
}

.btn.pi-btn.header-login-btn:hover,
.btn.pi-btn.header-login-btn:focus {
    background: #3B8FF0;
    border-color: #3B8FF0;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(0, 108, 224, 0.35);
    transform: translateY(-1px);
    text-decoration: none;
}

.btn.pi-btn.header-login-btn:active {
    background: #0056B3;
    border-color: #0056B3;
    box-shadow: 0 2px 4px rgba(0, 108, 224, 0.25);
    transform: translateY(0);
}

.btn.pi-btn.header-login-btn i {
    margin: 0;
    font-size: 15px;
}

.btn.pi-btn.header-signup-btn {
    background: #fff;
    border: 1px solid #006CE0;
    color: #006CE0 !important;
    box-shadow: none;
}

.btn.pi-btn.header-signup-btn:hover,
.btn.pi-btn.header-signup-btn:focus {
    background: rgba(0, 108, 224, 0.08);
    border-color: #006CE0;
    color: #006CE0 !important;
    transform: translateY(-1px);
    text-decoration: none;
}

/* ปุ่มเมนูมือถือ (icon-menu) สีเดียวกับปุ่มล็อคอิน (.header-login-btn): พื้นน้ำเงิน ไอคอนขาว, สูง 38px ขอบมนเท่ากัน */
.btn.pi-btn.pi-mobile-menu-toggler {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    min-width: 46px;
    padding: 0 14px;
    border-radius: 999px;
    background: #006CE0;
    border: 1px solid #006CE0;
    color: #fff !important;
    font-size: 18px;
    text-shadow: none;
    box-shadow: 0 2px 6px rgba(0, 108, 224, 0.25);
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn.pi-btn.pi-mobile-menu-toggler:hover,
.btn.pi-btn.pi-mobile-menu-toggler:focus {
    background: #3B8FF0;
    border-color: #3B8FF0;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(0, 108, 224, 0.35);
    transform: translateY(-1px);
    outline: none;
}

.btn.pi-btn.pi-mobile-menu-toggler:active {
    background: #0056B3;
    border-color: #0056B3;
    box-shadow: 0 2px 4px rgba(0, 108, 224, 0.25);
    transform: translateY(0);
}

/* หน้า error (404.html, 404_en.html, 500.html, 500_en.html):ตัวเลขใหญ่สีน้ำเงินแบรนด์ + ปุ่มชุดเดียวกับ header
   ฟอนต์ Prompt น้ำหนักเดียวกับหน้าแรก (.home-hero h1 = 600, .hero-lead = 300) */
.page-error-code {
    margin: 0;
    font-family: 'Prompt', Arial, sans-serif;
    font-size: 110px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 4px;
    color: #006CE0;
}

.page-error .page-error-title {
    margin-bottom: 20px;
    font-family: 'Prompt', Arial, sans-serif;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.35em;
    color: #0d2f6b;
}

.page-error-desc {
    margin: 0 auto 30px;
    max-width: 560px;
    font-family: 'Prompt', Arial, sans-serif;
    font-size: 19px;
    font-weight: 300;
    line-height: 1.7em;
    color: #4a5866;
}

/* หน้า maintenance: กล่องแสดงวัน/เวลาปิดปรับปรุง + หมายเหตุช่องทางติดต่อ */
.page-error-schedule {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 10px 22px;
    border-radius: 999px;
    background: rgba(0, 108, 224, 0.08);
    color: #006CE0;
    font-family: 'Prompt', Arial, sans-serif;
    font-size: 17px;
    font-weight: 500;
}

.page-error-note {
    margin: 0;
    font-family: 'Prompt', Arial, sans-serif;
    font-size: 14px;
    color: #8a96a3;
}

.page-error .header-btn {
    font-family: 'Prompt', Arial, sans-serif;
}

.page-error-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

@media (max-width: 480px) {
    .page-error-code {
        font-size: 80px;
    }

    .page-error-title {
        font-size: 24px;
    }
}

.texture-bg {
    background: url(https://d23qv7ky9s7whi.cloudfront.net/web/img/hexagon.png) repeat;
}

.packaeg-padding {
    padding: 10px;
    margin-bottom: 20px;
}

.row-text-right {
    text-align: right;
    width: 33%;
}

.row-text-left {
    padding-left: 10px;
    font-weight: normal;
}

.form-footer {
    padding: 20px;
    text-align: center;
}

.back-btn {
    position: absolute;
    left: 0;
    padding: 10px;
}

.next-btn {
    width: 50%;
}

.font-normal {
    font-weight: normal;
}

.payment-method {
    padding-bottom: 20px;
    min-height: 120px;
}

.margin-top-40 {
    margin-top: 40px;
}

.form-group.select {
    display: inline-block;
    padding-left: 10px;
}

.text-right-inline {
    text-align: right;
    width: 33%;
    display: inline-block;
}

.dark-overlay {
    background-color: rgba(0, 0, 0, 0.5);
}

.wave-pattern {
    background-image: url('https://d23qv7ky9s7whi.cloudfront.net/web/img/wave.png');
    background-repeat: repeat;
}

.icon-size-80 {
    width: 80px !important;
    height: auto;
    /* แนะนำให้ใส่ เพื่อรักษาสัดส่วนของภาพ */
}

/* For the hexagon background image */
.hexagon-pattern {
    background-image: url('https://d23qv7ky9s7whi.cloudfront.net/web/img/hexagon.png');
    background-repeat: repeat;
}

/* Wrapper for the OTP input field */
.input-group-otp-wrapper {
    margin-right: -4px;
    width: 257px !important;
}

/* The OTP input field */
.input-group-otp-field {
    border-radius: 3px 0 0 3px;
    border-right-width: 0;
}

/* The OTP confirmation button */
.input-group-otp-button {
    border-radius: 0 3px 3px 0;
}

.logo-margin-left {
    margin-left: -10px;
}

/* Wrapper for the input field in a group */
.input-group-wrapper {
    margin-right: -4px;
    width: 257px !important;
}

/* The text field in a group */
.input-group-field {
    border-radius: 3px 0 0 3px;
    border-right-width: 0;
}

/* The button in a group */
.input-group-button {
    border-radius: 0 3px 3px 0;
}

.recaptcha-container {
    width: 100%;
    display: inline-block;
}

/* For the image container */
.image-width-160 {
    width: 160px !important;
}

.col-width-300 {
    width: 300px !important;
}

.col-width-450 {
    width: 450px !important;
}

.text-align-left {
    text-align: left;
}

.bg-danger {
    background-color: #ff3333;
}

/* A reusable class for a success-themed background color */
.bg-success {
    background-color: #9dd05b;
}

/* A utility class for adding a small margin to the right */
.margin-right-10 {
    margin-right: 10px;
}

/* For the section's custom padding */
.section-custom-padding {
    padding: 30px 40px 10px;
}

/* For the dark overlay with 70% opacity */
.dark-overlay-70 {
    background-color: rgba(30, 35, 41, 0.7);
}

/* For the dark overlay with 80% opacity */
.dark-overlay-80 {
    background-color: rgba(24, 28, 32, 0.8);
}

/* For the icon sizing */
.icon-size-74 {
    width: 74px;
    height: 74px;
    line-height: 74px !important;
}

/* For the heading font size */
.h1-font-size-40 {
    font-size: 40px;
}

.icon-size-150 {
    width: 150px !important;
    height: auto;
}

.m-r-5 {
    margin-right: 5px;
}

/* Container for the input and button */
.input-group-container {
    /* Aligns items in a row */
    justify-content: center;
    /* Centers the group */
    width: 100%;
}

/* The input field itself */
.input-group-field {
    border-radius: 3px 0 0 3px;
    /* Rounds the left corners */
    border-right-width: 0;
    /* Removes the right border to blend with the button */
    width: 100%;
    /* Makes the input fill its wrapper */
}

/* The button */
.input-group-button {
    border-radius: 0 3px 3px 0;
    /* Rounds the right corners */
}

.no-margin-right {
    margin-right: 0px;
}

.input-width-400 {
    margin-right: -4px;
    width: 400px !important;
}

/* --- Default Styles for Mobile (Responsive Aspect Ratio) --- */
/* --- Default Styles for Mobile (Responsive Aspect Ratio) --- */
.youtube-section,
.youtube-section-black {
    background: #21252b;
    padding: 0;
    /* padding บน section จะถูกกำหนดใน media query */
}

.youtube-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: auto;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.youtube-container-2 {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.youtube-container-2 .video-thumbnail {
    top: 0;
    left: 0;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.youtube-container .video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.youtube-container .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    /* เริ่มต้นแบบโปร่งใส */
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.youtube-container .video-play-button,
.youtube-container-2 .video-play-button {
    color: white;
    font-size: 80px;
    opacity: 0;
    /* ซ่อนไว้ในตอนแรก */
    transform: scale(0.8);
    transition: all 0.3s ease-in-out;
}

.youtube-container:hover .video-overlay,
.youtube-container-2:hover .video-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    /* ทำให้ทึบแสงขึ้นเมื่อ hover */
}

.youtube-container:hover .video-play-button,
.youtube-container-2:hover .video-play-button {
    opacity: 1;
    /* แสดงปุ่ม play เมื่อ hover */
    transform: scale(1);
}

.youtube-container iframe,
.youtube-container-2 iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.pi-img-w:hover .pi-caption-icon.pi-caption-scale.icon-play {
    cursor: pointer;
}

/* --- Styles for Desktop (Fixed Height) --- */
/* ใช้เมื่อหน้าจอกว้าง 768px ขึ้นไป */
@media (min-width: 768px) {
    .youtube-section {
        min-height: 450px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
        box-sizing: border-box;
    }

    .youtube-container {
        /* Desktop: ยกเลิกการใช้ padding-top และกำหนดขนาดคงที่ */
        padding-top: 0;
        width: 900px;
        height: 506px;
        border-radius: 8px;
    }

    .youtube-section-2 {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
        box-sizing: border-box;
        max-width: 1120px;
        margin: 0 auto;
        /* position: relative; */
    }

    .youtube-container-2:first-child {
        margin-right: 20px;
    }

    .youtube-container-2 {
        width: 50%;
        min-width: 400px;
        aspect-ratio: 16 / 9;
        border-radius: 8px;
        overflow: hidden;
        position: relative;
    }
}

@media (max-width: 767px) {
    .youtube-section-2 {
        padding: 20px;
    }

    .youtube-container-2 {
        width: 100%;
        aspect-ratio: 16 / 9;
        border-radius: 8px;
        overflow: hidden;
        position: relative;
    }

    .youtube-container-2:first-child {
        margin-bottom: 20px;
    }
}

/* Style สำหรับ Spinner ที่จะปรากฏตรงกลาง */
.youtube-container.is-loading::before,
.youtube-container-2.is-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    margin-left: -20px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.pi-section-grey .form-control {
    background: #f8fafa;
    border-color: #dde1e1;
    border-top-color: #dde1e1;
    color: #6a777c;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.03);
    -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.03);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.03);
}

.pi-section-grey .form-control:hover:not(:focus)::placeholder,
.pi-section-grey .form-control::placeholder {
    color: #6a777c;
}

.pi-section-grey .pi-box {
    background: #ffffff;
    color: inherit;
}

.pi-section-grey .pi-border {
    border: 1px solid #e5eaea;
}

.form-control.k-invalid {
    border: 1px solid red !important;
}

.info-title {
    font-size: 19px;
    line-height: 35px;
    padding-left: 15px;
    background: #e7e7e7;
}

.info-header {
    font-size: 18px !important;
    color: #006CE0;
    padding-bottom: 4px;
    margin: 0px 0px 10px 0px;
}

.cookie-policy {
    width: 80%;
}

/* ===== หน้า /terms-of-service (privacy_policy.html) ===== */
/* หัวหน้าใช้พื้นหลังแบบ .fixa-auth (เหมือน hero หน้าแรก) แต่ไม่มีกล่องฟอร์ม */
.legal-hero .auth-title {
    margin-bottom: 0;
}

.legal-doc {
    margin: 0 auto;
    max-width: 820px;
    font-size: 15px;
    line-height: 1.8em;
    color: #4a5866;
}

.legal-doc a {
    color: #006CE0;
}

.legal-intro {
    margin-bottom: 30px;
}

.legal-lead {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-family: 'Prompt', Arial, sans-serif;
    font-size: 19px;
    font-weight: 500;
    line-height: 1.5em;
    color: #0d2f6b;
}

.legal-lead i {
    color: #006CE0;
    font-size: 24px;
}

.legal-section {
    padding: 24px 0;
    border-top: 1px solid #e5eaea;
}

/* เลื่อนมาที่ #cookie-policy แล้วไม่ให้หัวข้อชิดขอบบนจอเกินไป */
.legal-section:target,
#cookie-policy {
    scroll-margin-top: 20px;
}

.legal-section h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 12px;
    font-family: 'Prompt', Arial, sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4em;
    color: #0d2f6b;
}

.legal-num {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 108, 224, 0.1);
    color: #006CE0;
    font-size: 15px;
    line-height: 30px;
    text-align: center;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

/* หัวข้อย่อย 2.1, 2.2, ... (ลำดับเลขอัตโนมัติจาก <ol>) */
.legal-sub {
    margin: 0 0 12px;
    padding-left: 22px;
}

.legal-sub>li {
    margin-bottom: 6px;
}

.legal-list {
    margin: 6px 0 12px;
    padding-left: 20px;
    list-style: disc;
}

.legal-list li::marker {
    color: #006CE0;
}

.legal-contact {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    padding: 16px 20px;
    border-radius: var(--fixa-card-radius);
    background: rgba(0, 108, 224, 0.06);
    font-size: 14px;
}

.legal-contact>i {
    color: #006CE0;
    font-size: 22px;
}

@media (max-width: 767px) {
    .legal-section h2 {
        font-size: 17px;
    }
}

/* ===== หน้า /contact และ /doc: การ์ดช่องทาง (หัวหน้าใช้ .legal-hero เหมือนหน้า terms-of-service) ===== */
.info-wrap {
    margin: 0 auto;
    max-width: 820px;
}

.info-intro {
    margin: 0 auto 30px;
    max-width: 680px;
    text-align: center;
    font-size: 15px;
    line-height: 1.8em;
    color: #4a5866;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.info-grid.info-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    border: 1px solid var(--fixa-card-border);
    border-radius: var(--fixa-card-radius);
    background: #fff;
    color: #4a5866;
    text-decoration: none;
    box-shadow: var(--fixa-shadow-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

a.info-card:hover,
a.info-card:focus {
    border-color: var(--fixa-card-border-hover);
    box-shadow: var(--fixa-shadow-md);
    transform: var(--fixa-card-lift);
    text-decoration: none;
    color: #4a5866;
}

/* การ์ดแนะนำ (เช่น LINE) พื้นฟ้าอ่อน ขอบน้ำเงิน */
.info-card.info-card-primary {
    border-color: rgba(0, 108, 224, 0.35);
    background: rgba(0, 108, 224, 0.05);
}

.info-card-icon {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 108, 224, 0.1);
    color: #006CE0;
    font-size: 20px;
    line-height: 44px;
    text-align: center;
}

.info-card-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.info-card-label {
    font-size: 13px;
    color: #8a96a3;
}

.info-card-value {
    font-family: 'Prompt', Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #0d2f6b;
    overflow-wrap: anywhere;
}

.info-card-note {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.6em;
    color: #5c6b7a;
}

.info-footer {
    margin-top: 30px;
    text-align: center;
    color: #4a5866;
}

.info-footer a {
    color: #006CE0;
    font-weight: 600;
}

.info-social {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.info-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #006CE0;
    color: #fff;
    font-size: 18px;
    line-height: 40px;
    text-align: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.info-social a:hover,
.info-social a:focus {
    background: #3B8FF0;
    color: #fff;
    transform: translateY(-2px);
}

@media (max-width: 767px) {

    .info-grid,
    .info-grid.info-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ===== หน้า /faq: คำถามแบบพับ/กาง (ใช้ <details> ของ browser ไม่ต้องพึ่ง pi.accordion ของ theme) ===== */
.faq-group {
    margin-bottom: 36px;
}

.faq-group-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px;
    font-family: 'Prompt', Arial, sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4em;
    color: #0d2f6b;
}

/* ขนาดเท่ากับ .info-card-icon ของหน้า /contact */
.faq-group-icon {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 108, 224, 0.1);
    color: #006CE0;
    font-size: 20px;
    line-height: 44px;
    text-align: center;
}

.faq-group-icon [class^="icon-"]:before {
    font-size: 1em;
    vertical-align: baseline;
}

/* รายการคำถาม: ไม่ลอยตอน hover (เป็นรายการอ่าน ไม่ใช่การ์ดกด) แต่กางออกแล้วใช้เงา md */
.faq-item {
    margin-bottom: 10px;
    border: 1px solid var(--fixa-card-border);
    border-radius: var(--fixa-card-radius);
    background: #fff;
    box-shadow: var(--fixa-shadow-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
    border-color: var(--fixa-card-border-hover);
}

.faq-item[open] {
    border-color: var(--fixa-card-border-hover);
    box-shadow: var(--fixa-shadow-md);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    list-style: none;
    cursor: pointer;
    font-family: 'Prompt', Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5em;
    color: #0d2f6b;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

/* ลูกศร chevron วาดด้วยเส้นขอบ หมุนลงเมื่อกางออก */
.faq-item summary::after {
    content: '';
    flex: none;
    width: 9px;
    height: 9px;
    margin-right: 4px;
    border-right: 2px solid #006CE0;
    border-bottom: 2px solid #006CE0;
    transform: rotate(-45deg);
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item summary:focus-visible {
    outline: 2px solid #006CE0;
    outline-offset: 2px;
    border-radius: var(--fixa-card-radius);
}

.faq-answer {
    padding: 0 20px 18px;
    font-size: 15px;
    line-height: 1.8em;
    color: #4a5866;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer a {
    color: #006CE0;
}

.faq-list {
    margin: 0;
    padding-left: 20px;
    list-style: disc;
}

.faq-list li {
    margin-bottom: 6px;
}

.faq-list li::marker {
    color: #006CE0;
}

@media (max-width: 767px) {
    .faq-group-title {
        font-size: 17px;
    }

    .faq-item summary {
        padding: 14px 16px;
        font-size: 15px;
    }

    .faq-answer {
        padding: 0 16px 16px;
    }
}

/* ===== หน้า /pricing: การ์ดแพ็กเกจ โทนเทค (การ์ดมีสีประจำตัว / แถบทดลองใช้พื้นเดียวกับ hero) ===== */
.price-wrap {
    margin: 0 auto;
    max-width: 1040px;
}

/* แถบทดลองใช้ฟรี: พื้นกรมท่าเรืองแสงแบบเดียวกับ .home-hero */
.price-trial {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 44px;
    padding: 24px 28px;
    overflow: hidden;
    border: 1px solid rgba(0, 200, 255, 0.25);
    border-radius: var(--fixa-card-radius);
    background: radial-gradient(circle at 0% 0%, rgba(0, 108, 224, 0.55) 0, rgba(0, 108, 224, 0) 50%),
        radial-gradient(circle at 100% 100%, rgba(0, 200, 255, 0.35) 0, rgba(0, 200, 255, 0) 45%),
        linear-gradient(135deg, #0a1f44 0%, #0d2f6b 50%, #072049 100%);
    /* พื้นกรมท่าเด่นพออยู่แล้ว ใช้เงา sm แบบการ์ดทั่วไป */
    box-shadow: var(--fixa-shadow-sm);
}

.price-trial-icon {
    flex: none;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(0, 200, 255, 0.35);
    border-radius: var(--fixa-card-radius);
    background: rgba(0, 200, 255, 0.12);
    color: #8ee4ff;
    font-size: 22px;
    line-height: 46px;
    text-align: center;
}

.price-trial-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

/* สีตัวอักษรบนพื้นเข้ม: theme กำหนดสีข้อความใน .pi-section-white ไว้ เจาะจงกว่า จึงต้องใช้ !important (แบบเดียวกับ .header-login-btn) */
.price-trial-title {
    font-family: 'Prompt', Arial, sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #fff !important;
}

.price-trial-note {
    margin-top: 2px;
    font-size: 14px;
    line-height: 1.7em;
    color: rgba(255, 255, 255, 0.82) !important;
}

/* ปุ่มแคปซูลแบบเดียวกับ .header-login-btn (ปุ่มล็อคอินบน header) */
.price-btn {
    flex: none;
    display: inline-flex;
    align-items: center;
    height: 38px;
    gap: 8px;
    padding: 9px 22px;
    border-radius: 999px;
    font-family: 'Prompt', Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.price-btn-primary {
    background: #006CE0;
    border: 1px solid #006CE0;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(0, 108, 224, 0.25);
}

.price-btn-primary:hover,
.price-btn-primary:focus {
    background: #3B8FF0;
    border-color: #3B8FF0;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(0, 108, 224, 0.35);
    transform: translateY(-1px);
    text-decoration: none;
}

.price-btn-primary:active {
    background: #0056B3;
    border-color: #0056B3;
    box-shadow: 0 2px 4px rgba(0, 108, 224, 0.25);
    transform: translateY(0);
}

/* ปุ่มสลับ รายเดือน / รายปี (segmented control) */
.price-toggle {
    display: flex;
    justify-content: center;
    gap: 4px;
    width: max-content;
    max-width: 100%;
    margin: 0 auto 28px;
    padding: 4px;
    border: 1px solid #e5eaea;
    border-radius: 999px;
    background: #fff;
    box-shadow: var(--fixa-shadow-sm);
}

.price-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 22px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font-family: 'Prompt', Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #4a5866;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.price-toggle-btn:hover {
    color: #006CE0;
}

.price-toggle-btn.active {
    background: #006CE0;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 108, 224, 0.25);
}

.price-toggle-btn:focus-visible {
    outline: 2px solid #006CE0;
    outline-offset: 2px;
}

/* ป้าย "ประหยัด 16%": ตอนเลือกรายปีใช้ฟ้าเรืองแสง #8ee4ff ชุดเดียวกับตัวเน้นใน hero */
.price-save {
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(0, 108, 224, 0.1);
    color: #006CE0;
    font-size: 12px;
    font-weight: 600;
}

.price-toggle-btn.active .price-save {
    background: #8ee4ff;
    color: #0d2f6b;
}

.price-heading {
    margin: 0 0 18px;
    font-family: 'Prompt', Arial, sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #0d2f6b;
    text-align: center;
}

/* หัวข้อที่ต่อจากกลุ่มการ์ด เว้นระยะห่างจากการ์ดด้านบน */
.price-grid+.price-heading {
    margin-top: 52px;
}

.price-sub {
    margin: -10px auto 20px;
    max-width: 680px;
    font-size: 15px;
    line-height: 1.7em;
    color: #4a5866;
    text-align: center;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.price-grid.price-grid-addon {
    grid-template-columns: repeat(2, 1fr);
    margin: 0 auto;
    max-width: 520px;
}

/* สีประจำการ์ด (--accent): ไล่โทนฟ้าไปน้ำเงินเข้มเข้ากับสีหลัก Fixa (#006CE0) */
.price-grid:not(.price-grid-addon)>.price-card:nth-child(1) {
    --accent: #0ea5e9;
    --accent-rgb: 14, 165, 233;
}

.price-grid:not(.price-grid-addon)>.price-card:nth-child(2) {
    --accent: #0284c7;
    --accent-rgb: 2, 132, 199;
}

.price-grid:not(.price-grid-addon)>.price-card:nth-child(3) {
    --accent: #006CE0;
    --accent-rgb: 0, 108, 224;
}

.price-grid:not(.price-grid-addon)>.price-card:nth-child(4) {
    --accent: #2563eb;
    --accent-rgb: 37, 99, 235;
}

.price-grid:not(.price-grid-addon)>.price-card:nth-child(5) {
    --accent: #1e3a8a;
    --accent-rgb: 30, 58, 138;
}

.price-card {
    --accent: #006CE0;
    --accent-rgb: 0, 108, 224;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 26px 16px 20px;
    overflow: hidden;
    /* ใช้สี --accent ผสมในเส้นขอบจางๆ เพื่อแยกการ์ดแต่ละใบแทนแถบสีด้านบน */
    border: 1px solid rgba(var(--accent-rgb), 0.24);
    border-radius: var(--fixa-card-radius);
    background: #ffffff;
    text-align: center;
    box-shadow: var(--fixa-shadow-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

/* ลบ .price-card::before ออกเรียบร้อย */

/* แพ็กเกจผู้ใช้เพิ่ม: ใช้สีหลัก Fixa + กรอบเส้นประ + พื้นหลังฟ้าจางมากให้แยกจากแพ็กเกจหลัก */
.price-grid.price-grid-addon>.price-card {
    --accent: #006CE0;
    --accent-rgb: 0, 108, 224;
    border: 1.5px dashed rgba(var(--accent-rgb), 0.45);
    background: #f8fbff;
}

/* เงาขนาดเท่า --fixa-shadow-md แต่อมสีประจำการ์ด */
.price-card:hover {
    border-color: rgba(var(--accent-rgb), 0.65);
    box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.14);
    transform: var(--fixa-card-lift);
}

/* ชื่อแพ็กเกจเป็นป้ายแคปซูลสีประจำการ์ด */
.price-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Prompt', Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--accent);
}

.price-name::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.16);
}

.price-amount {
    margin: 14px 0 4px;
    font-family: 'Prompt', Arial, sans-serif;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2em;
    color: #0f172a;
    /* ปรับจาก #0d2f6b เป็นสีเข้มกลางๆ เพื่อไม่ให้ซ้ำกับสีการ์ดใบที่ 5 */
    white-space: nowrap;
}

.price-currency {
    margin-right: 2px;
    font-size: 18px;
    vertical-align: top;
    color: var(--accent);
}

.price-period {
    margin-left: 2px;
    font-size: 14px;
    font-weight: 400;
    color: #8a96a3;
}

/* บรรทัดใต้ราคา: "ชำระรายเดือน" / "ชำระรายปี ฿xx,xxx" */
.price-bill {
    margin-bottom: 14px;
    font-size: 13px;
    color: #8a96a3;
}

.price-features {
    width: 100%;
    margin: 0;
    padding: 14px 0 0;
    border-top: 1px dashed #e5eaea;
    list-style: none;
    font-size: 14px;
    color: #4a5866;
}

.price-features li {
    margin-bottom: 6px;
}

.price-features li:last-child {
    margin-bottom: 0;
}

.price-features i {
    margin-right: 4px;
    color: var(--accent);
}

.price-note {
    margin: 14px 0 44px;
    font-size: 14px;
    color: #5c6b7a;
    text-align: center;
}

.price-note i {
    color: #006CE0;
}

@media (max-width: 991px) {
    .price-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .price-trial {
        flex-direction: column;
        padding: 22px 20px;
        text-align: center;
    }

    .price-grid,
    .price-grid.price-grid-addon {
        grid-template-columns: repeat(2, 1fr);
    }

    .price-amount {
        font-size: 26px;
    }
}

.pi-section-white div:has(> .form-control:required) {
    position: relative;
    /* เพื่อให้เป็นเสาหลักให้ไอคอนยึด */
}

.pi-section-white div:has(> .form-control:required)::before {
    content: "•";
    color: #b3b3b3;
    font-size: 12px;
    line-height: 1;
    position: absolute;
    left: -13px;
    top: 50%;
    transform: translateY(-50%) scale(1.8);
    pointer-events: none;
    z-index: 100;
    /* ดันให้ลอยทับทุกอย่าง */
}

/* ===== หน้าแรก: Header (hero) ===== */
/* หน้า login (.fixa-auth) ใช้พื้นหลังเดียวกับ hero ให้หน้าตาต่อเนื่องจากปุ่ม "เข้าสู่ระบบ" ในหน้าแรก */
.home-hero,
.fixa-auth {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 15% 20%, rgba(0, 108, 224, 0.55) 0, rgba(0, 108, 224, 0) 45%),
        radial-gradient(circle at 85% 80%, rgba(0, 200, 255, 0.35) 0, rgba(0, 200, 255, 0) 40%),
        linear-gradient(135deg, #0a1f44 0%, #0d2f6b 50%, #072049 100%);
}

/* แทนลายหกเหลี่ยมของ theme ด้วยลายจุดเล็ก ๆ ที่จางหายไปทางขอบ */
.home-hero .texture-bg,
.fixa-auth .texture-bg {
    background: radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

.home-hero .pi-section,
.fixa-auth .pi-section {
    position: relative;
    z-index: 1;
}

.home-hero h1 {
    font-family: 'Prompt', Arial, sans-serif;
    font-size: 44px;
    font-weight: 600;
    line-height: 1.35em;
    color: #fff;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.home-hero h1 .hero-hl {
    background: linear-gradient(90deg, #4fc3ff, #8ee4ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.home-hero .hero-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.home-hero .hero-chips span {
    font-family: 'Prompt', Arial, sans-serif;
    font-size: 17px;
    font-weight: 500;
    color: #fff;
    padding: 6px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.home-hero .hero-lead {
    font-family: 'Prompt', Arial, sans-serif;
    font-size: 19px;
    font-weight: 300;
    line-height: 1.7em;
    color: rgba(255, 255, 255, 0.82);
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

/* จอกว้างพอ ให้ข้อความอธิบายอยู่บรรทัดเดียว จอเล็กกว่านี้ตัดบรรทัดตามปกติ */
@media (min-width: 1200px) {
    .home-hero .hero-lead {
        max-width: none;
        white-space: nowrap;
    }
}

@media (max-width: 767px) {
    .home-hero h1 {
        font-size: 30px;
    }

    .home-hero .hero-chips span {
        font-size: 15px;
        padding: 5px 14px;
    }

    .home-hero .hero-lead {
        font-size: 16px;
    }
}

.home-hero .hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

/* ปุ่มแคปซูลสีเดียว ชุดเดียวกับ .header-login-btn / .price-btn-primary (ขนาดใหญ่กว่าเพราะเป็นปุ่มหลักของหน้าแรก) */
.home-hero .hero-btn {
    display: inline-flex;
    align-items: center;
    font-family: 'Prompt', Arial, sans-serif;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 12px 30px;
    border: 1px solid transparent;
    border-radius: 999px;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.home-hero .hero-btn-primary {
    color: #fff;
    background: #006CE0;
    border-color: #006CE0;
    box-shadow: var(--fixa-btn-shadow);
}

.home-hero .hero-btn-primary:hover,
.home-hero .hero-btn-primary:focus {
    color: #fff;
    background: #3B8FF0;
    border-color: #3B8FF0;
    transform: translateY(-2px);
    box-shadow: var(--fixa-btn-shadow-hover);
}

.home-hero .hero-btn-primary:active {
    background: #0056B3;
    border-color: #0056B3;
    transform: translateY(0);
}

.home-hero .hero-btn-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.06);
}

.home-hero .hero-btn-secondary:hover,
.home-hero .hero-btn-secondary:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}

.home-hero .hero-note {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.home-hero .hero-note a {
    color: #8ee4ff;
    text-decoration: underline;
}

/* แถบชวนเริ่มใช้งานท้ายหน้าแรก (.home-cta) ใช้พื้นหลัง/ปุ่มชุดเดียวกับ .home-hero */
.home-cta .home-cta-title {
    margin: 0 0 14px;
    font-family: 'Prompt', Arial, sans-serif;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.35em;
    color: #fff;
}

@media (max-width: 767px) {
    .home-cta .home-cta-title {
        font-size: 24px;
    }
}

/* ป้าย Beta ข้างโลโก้เมนูหลัก (layout.html / layout_en.html) */
.beta-badge {
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(0, 108, 224, 0.1);
    color: #006CE0;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5em;
    letter-spacing: 0.5px;
    white-space: nowrap; /* "Private Beta" ต้องอยู่บรรทัดเดียว */
    cursor: help; /* บอกว่าชี้เมาส์แล้วมีคำอธิบาย */
    position: relative; /* ให้กล่องคำอธิบาย (::after) ยึดตำแหน่งกับป้าย */
    outline: none;
}

/* ป้าย Beta ข้างหัวข้อหน้า login ฯลฯ: พื้นหลังเป็นสีเทาลายจุด สีจางแบบหัวเว็บจะกลืน จึงใช้พื้นทึบตัวขาว */
/* กล่องคำอธิบายของป้าย Beta: ข้อความมาจาก data-tip
   ขึ้นตอนชี้เมาส์ (desktop) หรือแตะป้าย (มือถือ ป้ายมี tabindex จึง focus ได้) */
.beta-badge[data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 1000;
    padding: 6px 10px;
    border-radius: 6px;
    background: #1f2937;
    color: #ffffff;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease-in-out;
}

.beta-badge[data-tip]:hover::after,
.beta-badge[data-tip]:focus::after {
    opacity: 1;
    visibility: visible;
}

/* ===== หน้าแรก: การ์ดฟีเจอร์ ===== */
.home-features .features-row>[class*="pi-col-"] {
    display: flex;
    margin-bottom: 30px;
}

.home-features .features-row .pi-icon-box {
    flex: 1;
    padding: 28px 24px;
    border: 1px solid var(--fixa-card-border);
    border-radius: var(--fixa-card-radius);
    background: #fff;
    box-shadow: var(--fixa-shadow-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.home-features .features-row .pi-icon-box-hover:hover {
    border-color: var(--fixa-card-border-hover);
    transform: var(--fixa-card-lift);
    box-shadow: var(--fixa-shadow-md);
}

.home-features .features-row .pi-icon-box p:last-child {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .home-hero .hero-btn {
        width: 100%;
        justify-content: center;
    }
}

/* หน้า login (.fixa-auth): พื้นหลัง/ฟอนต์/ปุ่มหลักเข้าชุดกับ hero หน้าแรก (พื้นหลังอยู่ที่ .home-hero ด้านบน)
   ช่อง input / ปุ่ม: มุมโค้ง (--fixa-radius) และ padding เท่ากับในโปรแกรม (app/css/fixa.css) คือ radius 4px, padding 4px 8px
   กล่อง login / กล่องข้อความแนะนำ: ใช้มุมการ์ด (--fixa-card-radius) ชุดเดียวกับการ์ดทั้งเว็บ (ตัวแปรทั้งสองอยู่ที่ :root บนสุดของไฟล์)
   ความสูงของช่อง input และปุ่มล็อคอิน เท่ากับปุ่ม Sign in with Google ขนาด medium (32px)
   ------------------------------------------------------------------------------------------ */
.fixa-auth {
    --auth-control-h: 32px;
}

.fixa-auth .auth-title {
    margin-bottom: 24px;
}

.fixa-auth .auth-title h1 {
    font-family: 'Prompt', Arial, sans-serif;
    font-size: 32px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.fixa-auth .pi-box.auth-box {
    padding: 40px 30px;
    margin-bottom: 20px;
    background: #fff;
    border-radius: var(--fixa-card-radius);
    box-shadow: var(--fixa-shadow-lg);
}

.fixa-auth .auth-forgot {
    margin: -6px 0 15px;
    text-align: right;
    font-size: 13px;
}

/* ปุ่มล็อคอิน สีและฟอนต์เดียวกับปุ่ม "ล็อคอิน" บน header (.header-login-btn) */
.fixa-auth .btn.auth-btn {
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: none;
    color: #fff;
    background: #006CE0;
    border: 1px solid #006CE0;
    box-shadow: 0 2px 6px rgba(0, 108, 224, 0.25);
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.fixa-auth .btn.auth-btn:hover,
.fixa-auth .btn.auth-btn:focus {
    color: #fff;
    background: #3B8FF0;
    border-color: #3B8FF0;
    box-shadow: 0 6px 16px rgba(0, 108, 224, 0.35);
}

.fixa-auth .btn.auth-btn:active {
    background: #0056B3;
    border-color: #0056B3;
    box-shadow: 0 2px 4px rgba(0, 108, 224, 0.25);
}

/* จัดไอคอน + ข้อความในปุ่มให้อยู่กึ่งกลางแนวตั้งพอดี
   (กฎทั่วไปของไอคอนด้านบนกดไอคอนลง -0.125em ให้ตรงแนวตัวหนังสือในบรรทัด แต่ปุ่มสูงตายตัว 32px จึงทำให้ไอคอนเยื้อง) */
.fixa-auth .btn.auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ปุ่มเต็มความกว้าง (login, first_access, forgot_pwd) */
.fixa-auth .btn.auth-btn.pi-btn-wide {
    display: flex;
    width: 100%;
}

.fixa-auth .btn.auth-btn i {
    margin: 0;
    line-height: 1;
}

.fixa-auth .btn.auth-btn [class^="icon-"]:before,
.fixa-auth .btn.auth-btn [class*=" icon-"]:before {
    vertical-align: middle;
    line-height: 1;
}

/* ปุ่มรอง (เช่น "กลับสู่หน้าหลัก" ใน logged_out.html) ขอบน้ำเงินพื้นขาวแบบ .header-signup-btn */
.fixa-auth .btn.auth-btn.auth-btn-secondary {
    color: #006CE0;
    background: #fff;
    border-color: #006CE0;
    box-shadow: none;
}

.fixa-auth .btn.auth-btn.auth-btn-secondary:hover,
.fixa-auth .btn.auth-btn.auth-btn-secondary:focus {
    color: #006CE0;
    background: rgba(0, 108, 224, 0.08);
    border-color: #006CE0;
    box-shadow: none;
}

/* ปุ่มเรียงต่อกันในกล่อง เว้นระยะห่าง */
.fixa-auth .auth-btn+.auth-btn {
    margin-top: 10px;
}

.fixa-auth .btn.auth-btn:disabled {
    opacity: 0.6;
    box-shadow: none;
}

/* เส้นคั่น "หรือ" ระหว่างล็อคอินปกติกับ Google */
.fixa-auth .auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0;
    font-size: 13px;
    color: #9aa5b1;
}

.fixa-auth .auth-divider:before,
.fixa-auth .auth-divider:after {
    content: '';
    flex: 1;
    border-top: 1px solid #e5eaea;
}

.fixa-auth #googleSigninDiv,
.fixa-auth #googleSignupDiv {
    display: flex;
    justify-content: center;
}

/* หน้า signup: ปุ่ม Google อยู่ใน iframe ที่ Google คุมเอง มักไม่ขยายเต็มความกว้างที่สั่ง
   จึงคั่นด้วย .auth-divider "หรือ" ให้เห็นเป็นอีกทางเลือก ความกว้างที่ต่างจากปุ่มสมัครใช้งานจะดูตั้งใจ
   ปุ่มสมัครใช้งานอยู่ใน <p> ที่มี margin ล่างอยู่แล้ว จึงลดระยะบนของเส้นคั่น */
.fixa-auth #signupForm+.auth-divider {
    margin-top: 0;
}
/* .hidden ของเว็บไม่มี !important จึงแพ้ display: flex ด้านบน ต้องระบุซ้ำ */
.fixa-auth .auth-divider.hidden,
.fixa-auth #googleSigninDiv.hidden,
.fixa-auth #googleSignupDiv.hidden {
    display: none;
}

/* หน้าแจ้งข้อความ (เช่น signed_up.html) ใช้กล่องเดียวกับ login แต่แสดงไอคอน + ข้อความแทนฟอร์ม */
.fixa-auth .auth-msg-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: rgba(0, 108, 224, 0.1);
    color: #006CE0;
    font-size: 30px;
    line-height: 64px;
}

.fixa-auth .auth-msg-title {
    font-family: 'Prompt', Arial, sans-serif;
    font-weight: 600;
    margin: 0 0 8px;
}

.fixa-auth .auth-msg-text {
    color: #5c6b7a;
    margin-bottom: 24px;
}

/* ปุ่มที่เป็น <a> (ไม่ใช่ <button>) ให้เต็มบรรทัด (flex แทน block เพื่อคงการจัดไอคอนกึ่งกลางของ .auth-btn) */
.fixa-auth a.btn.auth-btn {
    display: flex;
    text-align: center;
}

/* หัวข้อ + คำอธิบายที่ยาวกว่ากล่องฟอร์ม (box-center กว้างแค่ 380px)
   ให้ส่วนหัวกว้างออกไปทั้งซ้ายขวา และข้อความ .auth-lead-line อยู่บรรทัดเดียวบนจอกว้าง (เช่น resend_verify_user.html) */
@media (min-width: 768px) {
    .fixa-auth .box-center .auth-title-wide {
        margin-left: -150px;
        margin-right: -150px;
    }

    .fixa-auth .auth-lead-line {
        white-space: nowrap;
    }
}

/* หน้า first_access.html: กล่อง 2 ใบ (สร้างบริษัทใหม่ / เข้าร่วมบริษัท) วางคู่กัน, จอเล็กเรียงลงมา */
.fixa-auth .first-access-wrap {
    margin: 0 auto;
    max-width: 820px;
}

.fixa-auth .auth-lead {
    margin: 10px 0 0;
    font-family: 'Prompt', Arial, sans-serif;
    font-size: 17px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.82);
}

.fixa-auth .first-access-row {
    display: flex;
    gap: 24px;
}

.fixa-auth .first-access-row .pi-box.auth-box {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ดันปุ่มลงล่างสุดของกล่อง ให้ปุ่มของทั้ง 2 กล่องอยู่ระดับเดียวกัน */
.fixa-auth .first-access-row .auth-box>.auth-btn,
.fixa-auth .first-access-row .auth-box>form {
    margin-top: auto;
}

@media (max-width: 767px) {
    .fixa-auth .first-access-row {
        flex-direction: column;
        gap: 0;
    }
}

/* หน้า new_comp_info.html: ฟอร์มข้อมูลบริษัทในกล่องสีขาว แบ่ง 2 คอลัมน์, จอเล็กเหลือคอลัมน์เดียว */
.fixa-auth .new-comp-wrap {
    margin: 0 auto;
    max-width: 820px;
}

.fixa-auth .new-comp-wrap .pi-box.auth-box {
    padding: 30px;
}

.fixa-auth .ncf-section {
    margin: 0 0 16px;
    padding-bottom: 8px;
    font-family: 'Prompt', Arial, sans-serif;
    font-weight: 600;
    color: #006CE0;
    border-bottom: 1px solid #e5eaea;
}

.fixa-auth .ncf-grid+.ncf-section {
    margin-top: 10px;
}

.fixa-auth .ncf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
}

.fixa-auth .ncf-grid .form-group.ncf-full {
    grid-column: 1 / -1;
}

.fixa-auth .ncf-label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #3d4a57;
}

/* ช่องบังคับกรอก แบบเดียวกับในโปรแกรม (app/css/fixa.css: [data-required-field="true"]::after)
   จุดสีเทา (icon-circle-filled) ลอยอยู่ด้านซ้ายนอกช่อง ไม่มี * ที่ label */
/* ใช้กับทุกกล่อง .auth-box (new_comp_info, first_access, forgot_pwd, ...) จุดจะขึ้นเองเมื่อช่องมี attribute required */
.fixa-auth .auth-box .pi-input-with-icon:has(> .form-control:required),
.fixa-auth .auth-box .ncf-control:has(> .form-control:required) {
    position: relative;
}

.fixa-auth .auth-box .pi-input-with-icon:has(> .form-control:required)::after,
.fixa-auth .auth-box .ncf-control:has(> .form-control:required)::after {
    font-family: "fontello";
    content: "\e827";
    color: #b4becb;
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%) scale(0.5);
    pointer-events: none;
    z-index: 100;
}

.fixa-auth .ncf-req-dot {
    display: inline-block;
    color: #b4becb;
    transform: scale(0.5);
}

.fixa-auth .ncf-desc {
    margin-top: 4px;
    font-size: 12px;
    color: #8a96a3;
}

/* ช่องที่ยังไม่ได้กรอก (validateForm ใส่ class k-invalid) กรอบแดงจางแบบเดียวกับในโปรแกรม (app/css/fixa.css: .k-invalid) */
.fixa-auth .form-control.k-invalid,
.fixa-auth .form-control.k-invalid:hover,
.fixa-auth .form-control.k-invalid:focus {
    border: 1px solid rgba(255, 8, 0, 0.375);
}

/* ส่วนปุ่มบันทึก: หมายเหตุช่องที่ต้องกรอกอยู่ซ้าย, ปุ่มบันทึกขนาดพอดีข้อความชิดขวา
   รูปแบบปุ่มเหมือนปุ่มในหน้า first_access (.fixa-auth .btn.auth-btn: สูง 32px, ขอบโค้ง 4px)
   ต่างกันแค่ความกว้าง (พอดีข้อความ แทน pi-btn-wide) จึงเพิ่ม padding ซ้ายขวาให้ปุ่มไม่ดูแน่น */
.fixa-auth .ncf-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    padding-top: 16px;
    border-top: 1px solid #e5eaea;
}

.fixa-auth .ncf-req-note {
    font-size: 13px;
    color: #8a96a3;
}

.fixa-auth .btn.auth-btn.ncf-save-btn {
    padding-left: 24px;
    padding-right: 24px;
}

@media (max-width: 767px) {
    .fixa-auth .ncf-grid {
        grid-template-columns: 1fr;
    }
}

/* รายการทางเลือกในกล่อง (เช่น resend_verify_user.html: ส่งใหม่ / เปลี่ยนอีเมลแล้วส่งใหม่) */
.fixa-auth .auth-options {
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.fixa-auth .auth-options li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--fixa-card-radius);
    background: rgba(0, 108, 224, 0.06);
    font-size: 13px;
    line-height: 1.5em;
    color: #5c6b7a;
}

.fixa-auth .auth-options li+li {
    margin-top: 8px;
}

.fixa-auth .auth-options li>i {
    color: #006CE0;
}

.fixa-auth .auth-options strong {
    display: block;
    font-weight: 600;
    color: #3d4a57;
}

/* ตัวเลขลำดับขั้นตอน (เช่น signed_up.html) วงกลมน้ำเงินแทนไอคอน */
.fixa-auth .auth-options .auth-step-num {
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border-radius: 50%;
    background: #006CE0;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 20px;
    text-align: center;
}

/* ข้อความแนะนำใต้ช่องกรอก (เช่น ช่องอีเมลใน signup.html) ตัวเล็กสีเทา มีไอคอนนำหน้า */
.fixa-auth .auth-field-hint {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.5em;
    color: #8a96a3;
}

.fixa-auth .auth-field-hint i {
    color: #006CE0;
}

/* ข้อความแนะนำใต้ปุ่มในกล่อง (เช่น forgot_pwd.html) */
.fixa-auth .auth-hint {
    display: flex;
    gap: 8px;
    margin: 18px 0 0;
    padding: 10px 12px;
    border-radius: var(--fixa-card-radius);
    background: rgba(0, 108, 224, 0.06);
    font-size: 13px;
    line-height: 1.6em;
    color: #5c6b7a;
}

.fixa-auth .auth-hint i {
    color: #006CE0;
}

.fixa-auth .auth-signup {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.fixa-auth .auth-signup a {
    font-weight: 600;
    color: #8ee4ff;
}
.fixa-auth .form-control {
    height: var(--auth-control-h);
    padding: 4px 8px;
    line-height: 22px;
    border-radius: var(--fixa-radius);
}

/* เว้นที่ด้านซ้ายให้ไอคอนในช่อง input */
.fixa-auth .pi-input-with-icon .form-control {
    padding-left: 31px;
}

/* ไอคอนในช่อง input จัดกลางแนวตั้งตามความสูงของช่อง */
.fixa-auth .pi-input-with-icon .pi-input-icon {
    line-height: var(--auth-control-h);
}

.fixa-auth .btn {
    height: var(--auth-control-h);
    padding: 4px 8px;
    line-height: 22px;
    border-radius: var(--fixa-radius);
}