﻿/*.pricing-cards {
    display: flex;
    gap: 24px;
}

.pricing-card {
    padding: 32px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    transition: .3s;
}

    .pricing-card.active {
        background: linear-gradient(180deg, #7C8CF5, #5B6EF5);
        color: #fff;
        transform: translateY(-10px);
    }

.toggle-label {
    font-weight: 600;
    color: #888;
}

    .toggle-label.active {
        color: #5B6EF5;
    }
*/


body {
    position: relative;
    padding-top: 0;
}

/* ===== NAVBAR BASE (ใส + gradient) ===== */
.navbar {
    background: linear-gradient( 90deg, rgba(247,44,78,.9) 0%, rgba(255,193,87,.9) 50%, rgba(168,71,235,.9) 100% ) !important;
    backdrop-filter: blur(6px);
    transition: background .3s ease, box-shadow .3s ease;
}

.navbar-blue {
    background: linear-gradient( 100.95deg, #446EBA 17.02%, #1F3254 87.99% ) !important;
    backdrop-filter: blur(6px);
    transition: background .3s ease, box-shadow .3s ease;
}


    .navbar.scrolled {
        background: transparent !important;
        box-shadow: none; /* ถ้าไม่อยากให้มีเงา */
    }


/* สีปกติ */
.nav-pills .nav-link {
    color: #ffffff;
    background-color: transparent;
}

    /* ตอน active */
    .nav-pills .nav-link.active,
    .nav-pills .show > .nav-link {
        color: #8771E9; /* สีตัวอักษร */
        background-color: #ffffff; /* สีพื้นหลัง */
        font-weight: 700;
        font-size: 14px;
        border-radius: 1rem;
    }


/* ===== HERO BACKGROUND ===== */
.hero-bg {
    position: relative;
    min-height: 520px;
    padding-top: 120px;
    padding-bottom: 220px; /* 🔑 รองรับ content ลอย */
    background: linear-gradient( 90deg, #F72C4E 0%, #FFC157 50%, #A847EB 100% );
    overflow: hidden;
}

.hero-bg-blue {
    position: relative;
    min-height: 520px;
    padding-top: 120px;
    padding-bottom: 220px; /* 🔑 รองรับ content ลอย */
    background: linear-gradient( 100.95deg, #446EBA 17.02%, #1F3254 87.99% );
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

/* ===== CURVE (UPWARD / WHITE) ===== */
.hero-curve {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
}

    .hero-curve svg {
        display: block;
        width: 100%;
        height: 260px;
    }

.hero-image {
    position: absolute;
    right: 0;
    bottom: -1px; /* 🔑 ปรับเลขนี้ให้ชนพอดี */
    max-width: 80%;
    z-index: 3;
}

    .hero-image img {
        width: 100%;
        height: auto;
    }


/* ===== SCROLL CONTENT ===== */


.scroll-content {
    padding: 120px 0;
    background: #ffffff;
}

    .scroll-content h4 {
        margin-top: 120px;
    }

:root {
    --nav-h: 56px;
    --gap: 10px;
    --hero-overlap: 520px; /* 🔑 ตัวนี้คือกุญแจ */
}

.scrollspy-wrapper {
    position: relative;
    z-index: 3;
    height: calc( (var(--vh, 1vh) * 100) - var(--nav-h) - var(--gap) );
    margin-top: calc(-1 * var(--hero-overlap));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    width: 95%;
    margin-left: auto;
    margin-right: auto;
}



    .scrollspy-wrapper::-webkit-scrollbar {
        display: none; /* Chrome, Safari, iOS */
    }

@media (min-width: 992px) {
    .scrollspy-wrapper {
        width: 80%;
        --hero-overlap: 520px; /* desktop hero ใหญ่กว่า */
    }

    .box-text {
        margin-top: 80px; /* จอใหญ่ */
    }

    .containner-index {
        padding-left: 30px;
        padding-right: 30px;
    }
}

.scrollspy-wrapper > section:last-child {
    min-height: auto !important;
    padding-bottom: 0;
}

.site-footer {
    flex-shrink: 0;
}



@media (min-width: 1024px) {
    .font-title {
        font-size: 61px !important;
        padding-top: 15px;
    }
}

@media (max-width: 991.98px) {
    .box-text {
        margin-top: 10px;
    }

    .containner-index {
        padding-left: 10px;
        padding-right: 10px;
    }

    .font-title {
        font-size: 51px;
    }
}


.button-green {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: 1px solid transparent;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 45px !important;
    background: #B1D23C;
    color: white;
    width: 160px;
    margin-bottom: 50px;
}

.checker-blue-bg {
    background-color: #F6F9FC;
    background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
    background-size: 80px 80px; /* ขนาดช่องตาราง */
}

.checker-white-bg {
    background-color: #fff;
    background-image: linear-gradient(#F6F9FC 1px, transparent 1px), linear-gradient(90deg, #F6F9FC 1px, transparent 1px);
    background-size: 80px 80px; /* ขนาดช่องตาราง */
}

.feature-card {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    margin-bottom: 10px;
}


    .feature-card h4 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .feature-card p {
        color: #666;
        line-height: 1.6;
    }

.feature-header {
    display: flex;
    align-items: center; /* ให้หัวข้อชิดบน */
    gap: 12px; /* ระยะห่างรูปกับข้อความ */
}

/* ===== FOOTER ===== */
.site-footer {
    background: linear-gradient(90deg, #4F74C8 0%, #1E3557 100%);
    padding: 32px 0;
    color: #ffffff;
}

/*  .footer-inner {
            max-width: 1200px;
        }*/

.footer-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .footer-brand img {
        height: 36px;
    }

.footer-brand-text strong {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.footer-brand-text span {
    font-size: 12px;
    opacity: .8;
}

.footer-copy {
    font-size: 12px;
    opacity: .7;
    margin-top: 6px;
}

.footer-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
}

.footer-menu {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

    .footer-menu li a {
        color: #ffffff;
        font-size: 14px;
        text-decoration: none;
        opacity: .9;
    }

        .footer-menu li a:hover {
            opacity: 1;
            text-decoration: underline;
        }

.footer-btn {
    background: #ffffff;
    color: #5B6EF5;
    border-radius: 23px !important;
    padding: 6px 18px;
    font-weight: 600;
    font-size: 13px;
}

/* ===== MOBILE ===== */
@media (max-width: 767.98px) {
    .footer-right {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 16px;
    }

    .footer-menu {
        flex-wrap: wrap;
        gap: 12px;
    }
}

.footer-inner {
    max-width: 1400px !important;
}

.p-inline {
    display: flex;
    gap: 16px; /* ระยะห่างระหว่าง p */
}

    .p-inline p {
        margin: 0; /* p มี margin-top/bottom มาแต่เดิม */
    }

/* ทำให้ select2 เป็น form-control จริง ๆ */
.select2-container--default .select2-selection--single {
    display: block;
    width: 100%;
    height: calc(2.25rem + 2px);
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    box-sizing: border-box;
}


.select2-container--default .select2-selection__rendered {
    padding-left: 0 !important;
    line-height: 1.5 !important;
}


.select2-container--default .select2-selection__arrow {
    height: 100% !important;
    right: 10px;
}



.select2-container {
    display: block !important;
    max-width: 100% !important;
}





@media (max-width: 991.98px) {

    #mainNavbar {
        background: #fff;
        padding: 15px;
        margin-top: 10px;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    }

    .nav-pills .nav-link {
        padding: 10px 0;
        font-size: 16px;
    }

    .footer-btn {
        width: 100%;
        margin-top: 10px;
    }

    .hero-image {
        position: relative !important;
        transform: none !important;
        right: auto !important;
        left: auto !important;
        margin-top: 30px;
        text-align: center !important;
    }

        .hero-image img {
            max-width: 100%;
            height: auto;
        }

    .box-text {
        z-index: 2;
        position: relative;
    }
}

.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 25px 0 50px;
}

.form-switch .form-check-input {
    width: 60px;
    height: 30px;
    cursor: pointer;
}

.plan-card {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 35px;
    transition: .3s;
    background: #fff;
    height: 100%;
}

    .plan-card:hover {
        transform: translateY(-6px);
    }

.plan-title {
    font-weight: 600;
    font-size: 22px;
    margin-bottom: 25px;
}

.old-price {
    text-decoration: line-through;
    color: #b5b5b5;
    font-weight: 600;
}

.price {
    font-size: 42px;
    font-weight: 800;
}

.priceTable {
    font-size: 18px;
    font-weight: 500;
}

    .price small {
        font-size: 18px;
        font-weight: 500;
    }

.feature {
    margin-bottom: 12px;
}

    .feature i {
        color: #000;
        margin-right: 8px;
    }

.trial-btn {
    border-radius: 50px;
    background: #eef2ff;
    border: none;
    padding: 12px;
    font-weight: 600;
    width: 100%;
    margin-top: 25px;
}

/* Premium highlight */
.premium {
    background: linear-gradient(180deg,#5a7cff,#4c66e0);
    color: #fff;
}

    .premium .feature i {
        color: #fff;
    }

    .premium .trial-btn {
        background: #fff;
        color: #5a7cff;
    }

.vat-note {
    text-align: right;
    font-size: 14px;
    margin-bottom: 10px;
}


.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    font-weight: 600;
    font-size: 20px;
}

/* ซ่อน checkbox */
.switch input {
    display: none;
}

.switch {
    position: relative;
    width: 90px;
    height: 44px;
}

/* พื้นหลัง */
.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #6f8df6;
    border-radius: 50px;
    transition: .3s;
}

    /* ปุ่มกลม */
    .slider:before {
        content: "";
        position: absolute;
        height: 36px;
        width: 36px;
        left: 4px;
        top: 4px;
        background: white;
        border-radius: 50%;
        transition: .3s;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }

/* ตอน checked เลื่อนไปขวา */
.switch input:checked + .slider:before {
    transform: translateX(46px);
}

.premium hr {
    border: 0;
    height: 1px;
    background: #fff;
    opacity: 1;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

/* Default (ยังไม่เลือกการ์ด) */
.check-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    background: #000000;
    color: #ffffff; 
    transition: all .25s ease;
}

/* เมื่อการ์ดถูกเลือก */
.plan-card.premium .check-icon {
    background: #ffffff; 
    color: #005EB8; 
}

.compare-table {
    border-collapse: separate;
    border-spacing: 0 5px;
}

    .compare-table thead th {
        background: #ffffff;
        font-weight: 600;
        border: none;
    }

    /*.compare-table tbody tr {
        background: #F4F4F4;
    }*/

    .compare-table tbody tr:nth-child(odd) td {
        background: #F4F4F4;
    }

    .compare-table tbody tr:nth-child(even) td {
        background: #ffffff;
    }


    .compare-table td,
    .compare-table th {
        padding: 18px 16px;
        border: none;
        vertical-align: middle;
    }

        .compare-table td.text-start {
            font-weight: 500;
            width: 30%;
        }

    .compare-table .no {
        font-size: 20px;
        color: #999;
    }

/* check icon */
.check {
    display: inline-block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: #3b82f6;
    position: relative;
}

    .check::after {
        content: "✓";
        color: #fff;
        font-size: 14px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -55%);
    }


.label-text {
    font-size: 13px;
    color: #888;
    margin-bottom: 4px;
}

.value-text {
    font-size: 18px;
    font-weight: 500;
}
