.persona-badge-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 30px;
}

.persona-label {
    font-size: 40px;
    font-weight: bold;
    color: #212529;
    font-family: 'Kanit';
}

.persona-avatar {
    width: 75px;
    height: 75px;
    object-fit: cover;
}

.persona-name-th {
    font-size: 30px;
    font-weight: bold;
    color: #A931E6;
    font-family: 'Prompt';
}

.persona-name-en {
    font-size: 30px;
    font-weight: bold;
    color: #212529;
    font-family: 'Prompt';
    text-align: center;
}

.persona-check-icon {
    font-size: 5rem;
    color: #0c9757;
    font-style: normal;
}

.persona-badge-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 40px;
    padding: 0 20px;
}

.persona-badge {
    position: relative;
    z-index: 2;
    /* ให้ลอยเหนือกว่าเผื่อปุ่มมาเกย */
    display: inline-flex;
    align-items: center;
    background-color: white;
    border-radius: 50rem;
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, 0.075);
    border: 1px solid #dee2e6;
    padding: 3rem 3rem;
    gap: 1.5rem;
    min-height: 90px;
}

.change-persona-btn {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;

    background: #A931E6;
    color: white;
    border-radius: 50px;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(169, 49, 230, 0.3);
    text-decoration: none;
}

.change-persona-btn:hover {
    background-color: #9020ca;
    color: white;
    transform: translateY(-50%) scale(1.05);
}

.change-persona-btn .icon-box {
    font-size: 20px;
}

.change-persona-btn .text-content {
    text-align: left;
    line-height: 1.2;
    font-size: 21px;
}

@media (max-width: 992px) {
    .persona-badge-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .change-persona-btn {
        position: static;
        transform: none;
        margin-bottom: 10px;
    }
}

/* --- Mockup Style --- */
.result-container {
    padding-top: 20px;
    padding-bottom: 50px;
}

/* Header */
.persona-identity-header {
    position: relative;
    text-align: center;
}

.mini-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}





/* Card ขาวใหญ่ */
.result-card-box {
    background: white;
    border-radius: 20px;
    border: 1px solid #ddd;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Badge วงกลมเลข 1, 2 */
.step-badge {
    width: 60px;
    height: 60px;
    background: #A931E6;
    color: white;
    font-size: 24px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-family: Tahoma;
}

.section-head {
    font-weight: bold;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

/* Search Bar กลาง */
.custom-search-bar {
    background: #f1f1f1;
    border-radius: 50px;
    padding: 12px 25px;
    width: 60%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.custom-search-bar input {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 1.1rem;
    outline: none;
}

.text-purple {
    color: #A931E6;
}

/* Tags */
.result-tag {
    border: none;
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 1rem;
    color: white;
    transition: 0.2s;
}

.result-tag:hover {
    transform: translateY(-2px);
}

.tag-gray {
    background-color: #666;
}

.tag-pink {
    background-color: #ec407a;
}

/* เส้นคั่น "หรือ" */
.divider-or {
    position: relative;
    text-align: center;
    margin: 50px 0;
}

.divider-or::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
    z-index: 0;
}

.divider-or span {
    background: white;
    padding: 0 20px;
    position: relative;
    z-index: 1;
    font-weight: bold;
    font-size: 4rem;
    font-family: 'Kanit';
}

/* Categories Grid */
.cat-item {
    position: relative;
    overflow: visible;
    width: 140px;
    height: 140px;
    background: #666;
    color: white;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    line-height: 1.2;
    text-align: center;
}

.cat-item .icon-sq {
    font-size: 2rem;
    margin-bottom: 8px;
}

.cat-item.active {
    background-color: #F461A7;
}

.cat-item.active::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #F461A7;
}

/* Service List */
.service-list-area {
    border-radius: 15px;
    background-color: #E8E8E8;
    overflow: auto;
    padding: 0px 25px 25px 25px;
    overflow-x: hidden;
    max-height: 640px;
}

.inner-search {
    background: white;
    border-radius: 50px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 50%;
    margin: 0 auto;
}

.inner-search input {
    border: none;
    outline: none;
    width: 100%;
}



/* Wrapper สำหรับจัดหัวข้อให้อยู่บรรทัดเดียว */
.step-header-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: nowrap;
}

.step-header-wrapper .step-badge {
    margin: 0 !important;
    flex-shrink: 0;
}

.step-header-wrapper .section-head {
    font-family: 'Kanit';
    font-size: 36px;
}

.searchinner-container.v1 {
    max-width: 500px;
    margin: 0 auto 40px;
}

.searchinner-container.v2 {
    max-width: 450px;
    margin: 25px auto 0px;
}

.searchinner-container {
    max-width: 500px;
    position: relative;
    z-index: 2;
}

.searchinner-container .input-group {
    background: white;
    border-radius: 50px;
    padding: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
}

.searchinner-container input::placeholder {
    color: #888;
    font-weight: 300;
}

.searchinner-container .input-group-text {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    width: 60px;
    justify-content: center;
}

.searchinner-icon i {
    color: #8e24aa;
    transform: scale(1.2);
}

.searchinner-container input.form-control {
    font-size: 21px;
    font-family: 'Prompt';
    border-radius: 15px;
    border: none;
    height: 50px;
}


/* --- Wrapper --- */
.tags-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.result-tag {
    border: none;
    border-radius: 50px;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 500;
    background-color: #6c757d;
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-family: K2D;
}

.result-tag:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.result-tag.active {
    background-color: #F461A7 !important;
    box-shadow: 0 0 20px rgba(169, 49, 230, 0.5);
    transform: scale(1.05);
    font-weight: bold;
}

.category-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.cat-item span {
    font-size: 17px !important;
    font-family: 'Prompt', sans-serif;

}

/*  รายการ  */
#serviceListContainer {
    padding: 10px 30px 0px 30px;
}

.service-list-area .row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

/* สไตล์ของกล่องบริการ (สีขาวปกติ) */
.service-pill {
    margin-top: 20px;
    height: calc(100% - 20px);
    width: 100%;
    background-color: #fff;
    border-radius: 50px;
    padding: 15px 25px;
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    cursor: pointer;
    font-weight: bold;
    color: #333;
    font-size: 15px;
    font-family: 'Prompt';
}

.service-pill {
    border: none;
}

.service-pill:hover {
    color: white;
    box-shadow: 5px 5px 20px;
    background: linear-gradient(126deg, #00CCCC 0%, #006699 50%, #194FF7 75%, #1753F8 100%);
}

/* Animation ตอนโหลดมา */
.animate-fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/*  CSS Switch การทำงานในรูปแบบที่ 2 */
.special-form-box {
    background-color: #f0f0f0;
    border-radius: 15px;
    padding: 30px;
    border: none;
}

.form-header-pink {
    font-family: 'Kanit';
    font-weight: bold;
    font-size: 40px;
    color: #000;
    margin-bottom: 10px;
    text-align: left;
}

.form-header-pink .highlight {
    color: #F461A7;
    font-size: 40px;
}

/* Select Box มนๆ */
.custom-select-rounded {
    width: 80%;
    border-radius: 7px;
    border: none;
    padding: 10px 20px;
    height: 50px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.btn-process-blue {
    background: linear-gradient(127deg, #00CCCC 0%, #006699 45%, #194FF7 75%, #1753F8 100%);
    color: white;
    font-size: 28px;
    font-family: 'Prompt';
    padding: 12px 40px;
    border-radius: 5px;
    border: none;
    transition: all 0.3s;
    font-weight: NORMAL;
    margin-top: 20px;
}

/* .btn:hover {
        color: white !important;
        transition: color 0.3s ease;
    } */

.special-form-box .form-label {
    display: block !important;
    width: 100%;
    margin-bottom: 10px;
    text-align: left;
    font-size: 26px;
}

.special-form-box .text-start-wrapper {
    text-align: left;
    width: 100%;
}

/* select2  */
.select2-container .select2-selection--single {
    height: 60px !important;
    border-radius: 7px !important;
    border: 1px solid #ced4da;
    display: flex;
    align-items: center;
    padding-left: 10px;
}

/* ปรับตำแหน่งลูกศร */
.select2-container .select2-selection--single .select2-selection__arrow {
    height: 48px !important;
    right: 15px !important;
    width: 20px;
}

/* ปรับแต่งตอน Disable (สีเทา) */
.select2-container--default.select2-container--disabled .select2-selection--single {
    background-color: #e9ecef;
    cursor: default;
}

/* .select2-search__field { border-radius: 20px !important;} */
select.form-select {
    display: none;
}

/* --- CSS สำหรับ Select2 Custom Pill --- */
.select2-container .select2-selection--single .select2-selection__rendered {
    display: flex !important;
    align-items: center;
    padding: 0 5px !important;
    height: 100%;
    margin-right: 20px;
}

.custom-selected-pill {
    background: linear-gradient(127deg, #00CCCC 0%, #006699 45%, #194FF7 75%, #1753F8 100%);
    color: white;
    border-radius: 50px;
    padding: 5px 15px 5px 20px;
    font-size: 16px;
    font-family: 'Kanit';
    display: flex;
    gap: 10px;
    width: auto;
    max-width: 100%;
    box-shadow: 0 2px 5px rgba(0, 114, 255, 0.3);
}

.clear-pill-btn {
    position: relative;
    top: -5px;
    right: -19px;
    background: #666666;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    color: white;
    transition: all 0.2s;
}

.clear-pill-btn:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: scale(1.1);
}

.select2-selection__clear {
    display: none !important;
}

/* CSS จัดการโครงสร้างของ เนื้อหาด้านใน */
/* --- Header Section --- */
.safe-header-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 40px;
    padding: 0 20px;
}

.header-back-btn {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: #A931E6;
    color: white;
    border-radius: 50px;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(169, 49, 230, 0.3);
    text-decoration: none;
}

.header-info-badge {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    background-color: white;
    border-radius: 50rem;
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, 0.075);
    border: 1px solid #dee2e6;
    padding: 2rem 8rem;
    gap: 1.5rem;
    min-height: 70px;
}

.header-info-badge .label-small {
    font-size: 21px;
    color: #000000;
    font-weight: bold;
    margin-bottom: 5px;
    font-family: 'Prompt';
    text-align: center;
}

.header-info-badge .category-text {
    font-size: 21px;
    color: #555;
    font-weight: bold;
    margin-bottom: 5px;
    font-family: 'Prompt';
    text-align: center;
    margin-bottom: 2px;
}

.header-info-badge .product-text {
    font-size: 21px;
    color: #000000;
    font-weight: bold;
    font-family: 'Prompt';
    text-align: center;
    margin-bottom: 5px;
}

.service-text-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
    font-size: 21px;
    font-weight: bold;
    font-family: 'Prompt';
}

/* สไตล์ข้อความทั่วไปในแถว (สีดำ) */
.service-text-row .item {
    color: #A931E6;
}

/* สไตล์ตัวแปรค่าข้อมูล (สีม่วง) */
.service-text-row .val {
    color: #A931E6;
}

/* คำเชื่อมตรงกลาง */
.service-text-row .divider {
    color: #000000;
    font-size: 21px;
    font-weight: bold;
    font-family: 'Prompt';
}


.header-info-badge .check-icon {
    font-size: 5rem;
    color: #0c9757;
    font-style: normal;
}

/* --- Content Layout --- */
.result-main-card {
    background: white;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #eee;
}

.result-main-card > .row {
    align-items: flex-start;
    position: relative;
}

.sidebar-col {
    border-right: 1px solid #eee;
    background: #fff;
    position: relative;
    align-self: flex-start;
}

.content-inner-padding {
    padding: 30px;
}

.detail-spacer {
    height: 30px;
}

/* --- Sidebar Menu --- */
.process-sidebar-box {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable;
}

@media (max-width: 991.98px) {
    .process-sidebar-box {
        max-height: none;
        overflow: visible;
    }
}

.sidebar-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    font-weight: bold;
    text-align: center;
}

.sidebar-header .sub-text {
    font-size: 14px;
    font-weight: normal;
}

.sidebar-menu-list {
    background: #fff;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    text-decoration: none;
    color: #333;
    transition: 0.3s;
}

.sidebar-link:hover {
    background: #fcfcfc;
}

.sidebar-link.active {
    background: linear-gradient(145deg, #00CCCC 0%, #006699 45%, #194FF7 75%, #1753F8 100%);
}

.sidebar-num-badge {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
    font-size: 17px;
    font-family: 'Prompt';
}

.sidebar-link .sidebar-num-badge {
    background: #A931E6;
    color: #fff;
}

.sidebar-link.active .sidebar-num-badge {
    background: #A931E6;
    color: #fff;
    border: 1px solid #A931E6;
}

.sidebar-link .sidebar-text {
    font-size: 14px;
    font-family: K2D;
}

.sidebar-link.active .sidebar-text {
    color: #f3f3f3;
    font-family: K2D;
    font-weight: bold;
    font-size: 14px;
}

.header-back-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #A931E6;
    color: white;
    border-radius: 50px;
    padding: 12px 30px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(169, 49, 230, 0.4);
    text-decoration: none;
    flex-shrink: 0;
}


.header-back-btn .back-icon {
    font-size: 24px;
}

.header-back-btn .back-text-group {
    text-align: left;
    line-height: 1.2;
}

.header-back-btn .text-top {
    font-size: 21px;
}

.header-back-btn .text-bottom {
    font-size: 18px;
    font-weight: bold;
}

.header-back-btn .underline-link {
    text-decoration: underline;
}

.inmain-title {
    font-size: 17px;
    font-family: 'Prompt';
    font-weight: bold;
}

.insub-title {
    font-size: 17px;
    font-family: 'PROMPT';
}

/* ส่วนของเนื้อหาด้านใน */
.results-panel {
    border-radius: 15px;
    margin-bottom: 20px;
    /* overflow: hidden; */
    border: 1px solid #ddd;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: relative;
}
#right-content-area .results-panel:first-child {
    margin-top: 110px !important;
}
.resultsesds .head {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    transition: background 0.3s ease;
    /* background: linear-gradient(145deg, #666666 0%, #999999 35%, #999999 75%, #999999 100%); */
    color: #fff;
    border-radius: 15px 15px 15px 15px;
    overflow: visible !important;
}

/* .resultsesds .head:not(.collapsed) {
    background: linear-gradient(145deg, #00CCCC 0%, #006699 45%, #194FF7 75%, #1753F8 100%) !important;
} */

.icon-togle em {
    transition: transform 0.3s;
    font-size: 24px;
    font-style: normal;
}

.head:not(.collapsed) .icon-togle em {
    transform: rotate(180deg);
}

/* --- รายละเอียดภายใน --- */
.img-head-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    padding: 5px;
    margin-right: 20px;
    border: 2px solid #fff;
    object-fit: contain;
    position: absolute;
    left: 25px;
    top: -15px;
    left: -15px;
}

.panel-title-text {
    flex-grow: 1;
    text-align: center;
}

.panel-title-text .name {
    font-size: 20px;
    font-weight: bold;
    line-height: 1.2;
}



.card-body-content {
    padding: 25px;
    background: #fff;
    border-top: 1px solid #eee;
}

#right-content-area .fade {
    opacity: 1 !important;
}

.panel-title-text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-right: 0;
}

.panel-title-text .name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.panel-step-label {
    font-size: 20px;
    font-weight: bold;
    font-family: 'Prompt', sans-serif;
    color: inherit;
    white-space: nowrap;
}

.panel-number {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 17px;
    font-family: 'Prompt';
    background: #A931E6;
    color: #fff;
    margin-right: 0;
}

.panel-text {
    font-size: 20px;
    font-weight: bold;
    font-family: 'Prompt', sans-serif;
    line-height: 1.3;
    color: inherit;
}

.panel-title-text .department {
    font-size: 14px;
    margin-top: 4px;
    width: 100%;
    font-family: 'Prompt';
}



.resultsesds .head {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90px;
}

.nav-tabs {
    border-bottom: none !important;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    background: transparent;
}

.nav-tabs .nav-link {
    background-color: #000051 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 12px 20px !important;
    font-size: 17px;
    font-weight: 500;
    min-width: 120px;
    text-align: center;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: 'Prompt';
}

.nav-tabs .nav-link.active {
    background-color: #000099 !important;
    color: #ffffff !important;
    position: relative;
    z-index: 2;
    transform: scale(1.05);
    font-weight: bold;
}

.nav-tabs .nav-link.active::after {
    background-color: #000051 !important;
    color: #ffffff !important;
    position: relative;
}

.nav-tabs .nav-link:hover:not(.active) {
    background-color: #000080 !important;
    transform: translateY(-2px);
}

.tab-content {
    background: #fdfdfd;
    border-radius: 0 0 10px 10px;
    padding: 20px;
    border: 1px solid #eee;
    border-top: 2px solid #000051;
}

i,
em,
.fas,
.far,
.fab,
.fa {
    font-style: normal !important;
}

/* ตกแต่งตัวของ ตรวจสอบสถานะ */
.status-container-main {
    padding: 15px 25px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
    font-family: 'Prompt', sans-serif;
    justify-content: center;
}

.status-title {
    color: #000000;
    font-size: 20px;
    font-weight: bold;
    white-space: nowrap;
}

.status-list {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.status-capsule {
    background: white;
    border: 1px solid #004a99;
    border-radius: 50px;
    padding: 5px 20px 5px 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
}

.status-icon-circle {
    width: 30px;
    height: 30px;
    border: 1.5px solid #004a99;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
}

.is-complete .status-icon-circle {
    border: none;
}

.is-complete .status-icon-circle em {
    color: #26a69a;
    font-size: 20px;
    font-style: normal !important;
}

.status-label {
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

.swal2-popup {
    border-radius: 5px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.swal2-confirm {
    padding: 10px 18px !important;
    font-size: 18px !important;
    background: linear-gradient(145deg, #00CCCC 0%, #006699 100%) !important;
}

.swal2-popup {
    width: 54em !important;
    padding: 3rem !important;
    border-radius: 5px !important;
}

.swal2-title {
    font-family: 'Prompt';
    font-size: 27px;
}

.swal2-html-container {
    font-size: 3.125em;
    padding: 10px;
}

.header-info-badge.is-service {
    padding: 1.5rem 3rem;
    width: clamp(420px, 70vw, 900px);
    max-width: 95vw;
    text-align: center;
    justify-content: center;
    z-index: 1;
    margin-top: 20px;
}


@media (min-width: 992px) {
    .header-info-badge.is-service {
        margin-left: 140px;
    }
}

@media (max-width: 768px) {
    .header-info-badge.is-service {
        padding: 1.25rem 1.5rem;
    }

    .header-info-badge.is-service .label-small,
    .header-info-badge.is-service .product-text,
    .header-info-badge.is-service .service-text-row {
        font-size: 18px;
    }
}
/* เน้น Tab ที่ Active ให้ขยายใหญ่ขึ้น */
.nav-tabs>li.active>a {
    font-size: 18px;
    color: #1753F8 ;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.nav-tabs {
    border-bottom: none;
    margin-bottom: 20px;
}

.nav-tabs>li {
    margin-bottom: 5px;
    margin-right: 10px;
}

.nav-tabs>li>a {
    background-color: #000066;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px;
    padding: 10px 25px;
    font-size: 18px;
    font-family: 'Prompt';
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.nav-tabs>li>a:hover {
    background-color: #0000CC !important;
    transform: translateY(-2px);
}

.nav-tabs>li.active>a,
.nav-tabs>li.active>a:hover,
.nav-tabs>li.active>a:focus {
    background-color: #0000CC !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 18px;
    font-family: 'Prompt';
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* ตกแต่งไอคอนด้านในปุ่ม */
.nav-tabs>li a em {
    margin-right: 8px;
    font-size: 1.1em;
}

/* สำหรับหน้าจอขนาดเล็ก ให้ปุ่มเรียงตัวสวยงาม */
@media (max-width: 768px) {
    .nav-tabs>li {
        width: 100%;
        margin-right: 0;
    }
}



/* จัดวางตำแหน่งดาวที่มุมซ้ายบน */
.star-container {
    position: absolute;
    top: 2px;
    left: 10px;
    z-index: 10;
}

.star-container i {
    font-size: 36px;
    color: #ff9800;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.2));
}

/* ข้อความตัวสุดท้ายของข้อมูล */
.finish-step-pill {
    display: flex;
    align-items: center;
    /* ปรับช่องไฟด้านซ้ายเพิ่มขึ้นเพื่อให้รองรับรูปที่ใหญ่ขึ้น (จาก 80px เป็น 100px) */
    padding: 5px 20px 5px 100px;
    background: linear-gradient(156deg, #00CCCC 5%, #194FF7 50%, #194FF7 70%, #006699 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(30, 87, 237, 0.3);
    position: relative;
    min-height: 100px;
    /* ปรับความสูงเพิ่มเล็กน้อยให้รับกับรูปที่ใหญ่ขึ้น */

    /* ปรับความกว้างเป็น 90% ตามที่คุณต้องการ */
    width: 90%;
    max-width: 1200px;
    /* คุมความกว้างสูงสุดไว้ไม่ให้ยาวเกินไปในจอใหญ่ */
    margin: 50px auto;
    /* จัดให้อยู่กึ่งกลางหน้าจอ */
}

.finish-icon-wrapper {
    background: #fff;
    border-radius: 50%;
    /* ขยายขนาดรูปเพิ่มขึ้น (จาก 100px เป็น 110px) */
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    /* ปรับตำแหน่งเยื้องซ้ายให้รับกับขนาดใหม่ */
    left: -55px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid #fff;
    /* เพิ่มความหนาขอบสีขาวให้ดูเด่นขึ้น */
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.finish-text {
    color: #ffffff;
    /* ปรับขนาดฟอนต์ให้สมดุลกับกล่องที่ใหญ่ขึ้น */
    font-size: 32px;
    font-weight: bold;
    font-family: 'Kanit', sans-serif;
    flex-grow: 1;
    text-align: center;
    white-space: nowrap;
    margin: 0;
}

.finish-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.finish-step-wrapper {
        margin-left: 30px;
}
@media (max-width: 768px) {
    .finish-step-pill {
        width: 95%;
        padding: 5px 10px 5px 60px;
        min-height: 70px;
    }

    .finish-icon-wrapper {
        width: 80px;
        height: 80px;
        left: -30px;
    }

    .finish-text {
        font-size: 18px;
    }
}

/* Modal */
/* --- Modal Layout & Header --- */
#finishSuggestionModal {
    z-index: 20000 !important;
}

#finishSuggestionModal .modal-dialog {
    position: relative;
    z-index: 20001;
    margin-top: 24px;
}

.modal-backdrop.in {
    z-index: 19990 !important;
}

#finishSuggestionModal .modal-lg {
    width: 90% !important;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

#finishSuggestionModal .finish-modal-content {
    background-color: #ffffff !important;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px !important;
    border-radius: 20px !important;
    border: none !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

#finishSuggestionModal .finish-modal-body {
    position: relative;
}

#finishSuggestionModal .modal-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 20px;
}

#finishSuggestionModal .finish-modal-close {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 0;
    background: rgba(20, 23, 108, 0.08);
    color: #14176C;
    font-size: 26px;
    line-height: 38px;
    font-weight: 400;
    opacity: 1;
    text-shadow: none;
    z-index: 3;
    transition: background-color 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#finishSuggestionModal .finish-modal-close:hover,
#finishSuggestionModal .finish-modal-close:focus {
    background: rgba(20, 23, 108, 0.16);
    color: #14176C;
    opacity: 1;
    outline: none;
    transform: translateY(-50%) scale(1.05);
}

/* --- 2. Modal Header --- */
.finish-modal-header {
    border: none !important;
    text-align: center;
    margin-bottom: 30px !important;
}

#finishSuggestionModal .modal-title {
    text-align: center !important;
    font-family: 'Kanit', sans-serif !important;
    font-size: 26px !important;
    font-weight: bold !important;
    color: #14176C;
    flex: 1;
    margin-bottom: 0;
    padding-right: 50px;
    padding-left: 50px;
}

/* ถ้าคุณมี span ข้างในสำหรับสีม่วง */
#finishSuggestionModal .modal-title span.text-purple {
    color: #A931E6 !important;
}
/* --- 3. Card บริการ (ขยายขนาดรูปและเนื้อหา) --- */
.recommend-card {
    background: #fff;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    min-height: auto;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    width: 100%;
    margin-top: 16px;
    isolation: isolate;
    position: relative;
}

#modalServiceContainer > .item > .row {
    display: flex;
    flex-wrap: wrap;
}

#modalServiceContainer > .item > .row > [class*="col-"] {
    display: flex;
}

#modalServiceContainer .recommend-card {
    width: 100%;
}

#modalServiceContainer > .item > .row > [class*="col-"] {
    padding-bottom: 4px;
}

.card-img-top-box {
    width: 100%;
    overflow: hidden;
}

.card-img-top-box img {
    width: 100%;
    height: 200px;
    border-radius: 0;
    object-fit: cover;
    display: block;
}

.card-img-top-box img[style*="display: none"],
.card-img-top-box img[style*="display:none"] {
    height: 0;
}

.card-bottom-info {
    padding: 20px 16px;
    background: linear-gradient(147deg, #00CCCC 0%, #194FF7 25%, #194FF7 50%, #006699 100%);
    color: #fff;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: auto;
    border-radius: 0 0 16px 16px;
}

.service-name {
    font-size: 16px;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 10px;
    min-height: auto;
    font-family: 'Prompt';
    display: flex;
    align-items: center;
    justify-content: center;
}

.dept-info {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    gap: 10px;
    font-family: 'Kanit';
    margin-top: auto;
}

.dept-logo-circle {
    width: 28px;
    height: 28px;
    background: #fff;
    border-radius: 50%;
    padding: 3px;
    overflow: hidden;
    flex-shrink: 0;
}

.dept-logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

@media (max-width: 991px) {
    #modalServiceContainer > .item > .row {
        display: block;
    }

    #modalServiceContainer > .item > .row > [class*="col-"] {
        display: block;
    }
}

/* --- 4. Indicator & Footer --- */
.modal-indicator-wrapper {
    margin-top: 20px;
}

.dot {
    width: 60px;
    /* ขยายความยาวขีด Indicator */
    height: 10px;
}

.btn-confirm-modal {
    background: #194FF7;
    color: #fff;
    border-radius: 60px;
    padding: 15px 90px;
    /* ขยายขนาดปุ่มให้สมดุลกับความกว้าง */
    font-size: 24px;
    font-weight: bold;
    margin-top: 20px;
}
/* กำหนดสีให้ตัวขีด Indicators */
.dot {
    width: 60px;
    height: 10px;
    background-color: #E0E0E0;
    /* สีเทาอ่อนสำหรับตัวที่ไม่ได้เลือก */
    border-radius: 10px;
    /* ทำให้ขอบมน */
    display: inline-block;
    /* เพื่อให้เรียงกันแนวนอน */
    transition: all 0.3s ease;
}

/* สีสำหรับตัวที่กำลัง Active (สีม่วงตามแบบ) */
.dot.active {
    background-color: #A931E6 !important;
}

/* ปรับให้ Indicator อยู่กึ่งกลาง */
.modal-indicator-wrapper {
    text-align: center;
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
    /* ระยะห่างระหว่างขีด */
}
/* เปลี่ยนจาก .modal-indicator-wrapper เฉยๆ เป็นการคุมรายการข้างใน */
.carousel-indicators-custom {
    display: flex;
    justify-content: center;
    gap: 15px;
    list-style: none;
    /* ลบเลข 1. 2. 3. ออก */
    padding: 0;
    margin-top: 30px;
}

.carousel-indicators-custom .dot {
    width: 60px;
    height: 10px;
    background-color: #E0E0E0;
    border-radius: 10px;
    cursor: pointer;
    /* ทำให้เมาส์เป็นรูปมือเวลาชี้ */
    display: inline-block;
    transition: all 0.3s ease;
}

.carousel-indicators-custom .dot.active {
    background-color: #A931E6 !important;
}

/* ป้องกันภาพกระตุกเวลาสไลด์หน้า */
.carousel-item {
    transition: transform 0.6s ease-in-out;
}
/* บังคับให้ตัวที่ไม่ได้ active ถูกซ่อนแน่นอน */
#modalServiceContainer .carousel-item {
    display: none;
}

#modalServiceContainer .carousel-item.active {
    display: block;
}

/* ปรับระยะห่างระหว่าง Card ในหน้าเดียวกัน */
#modalServiceContainer .row {
    margin-right: 0;
    margin-left: 0;
}
/* รูปภาพเด็ก */
.start-rocket-img {
    position: absolute;
    top: -128px;
    right: -15px;
    width: 167px;
    height: 164px;
    display: block;
    z-index: 10;
    pointer-events: none;
}

.start-rocket-img img {
    position: absolute;
    display: block;
    max-width: none;
    height: auto;
    pointer-events: none;
    user-select: none;
}

.start-rocket-sign {
    width: 152px;
    right: -24px;
    bottom: 24px;
    z-index: 2;
    transform: rotate(25deg);
    transform-origin: center;
}

.start-rocket-man {
    width: 88px;
    top: -14px;
    right: -4px;
    z-index: 1;
    transform: scaleX(-1) rotate(4deg);
    transform-origin: center;
}

.results-panel .head {
    position: relative;
    overflow: visible !important;
}

/* ===== .is-citizen overrides (indexempoyee2 / ประชาชน page) ===== */

/* persona-badge: centered, ไม่มีปุ่มเปลี่ยน persona */
.is-citizen .header-info-badge {
    justify-content: center;
    text-align: center;
}

/* back button: กลับไปหน้า search แทน persona — ข้อความ set ใน JS ไม่ต้อง override CSS */
