:root {
    /* โทนสีที่คุณกำหนด */
    --primary-color: #E871A8;
    --primary-dark: #C15B8A;
    --secondary-color: #FADADD;
    --text-dark: #343A40;
    --text-light: #FFFFFF;
    --bg-light: #F8F9FA;
}

body {
    font-family: 'Sarabun', sans-serif;
    scroll-behavior: smooth;
    background: #FFFFFF;
}

.bg-main {
    background-color: var(--primary-color) !important;
}

.container {
    max-width: 1320px;
}

/* Navbar ดีไซน์ใหม่: พื้นหลังขาวสะอาด มีเงาเล็กน้อย */
.navbar {
    background-color: var(--text-light) !important;
    /* พื้นหลังขาว */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    /* เงาชัดขึ้น */
    padding-top: 1.8rem;
    padding-bottom: 1.8rem;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 2rem;
    /* ขนาดตัวอักษร Brand ใหญ่ขึ้น */
    font-weight: 700;
    color: var(--primary-dark) !important;
    /* สี Brand เป็นสีชมพูเข้ม */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    /* เงาให้ Brand */
}

.nav-link {
    color: var(--text-dark) !important;
    /* สี Link เป็นสีเทาเข้ม */
    font-weight: 500;
    font-size: 1.1rem;
    margin: 0 1rem;
    /* ระยะห่าง Link */
    position: relative;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
    /* สี Link เมื่อ Hover/Active เป็นสีชมพู */
    opacity: 1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    /* ปรับตำแหน่งเส้นใต้ */
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    /* เส้นใต้หนาขึ้น */
    background: var(--primary-color);
    /* สีเส้นใต้ */
    transition: width 0.3s ease;
    border-radius: 3px;
    /* เส้นโค้งมน */
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
    /* เส้นใต้กว้างขึ้น */
}

/* Language switcher */
.lang-switcher {
    margin-left: 1.5rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(52, 58, 64, 0.3);
    /* เส้นคั่นสีเทา */
}

.lang-switcher a {
    color: var(--text-dark) !important;
    /* สี Link ภาษา */
    font-weight: 500;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.lang-switcher a:hover {
    opacity: 1;
    font-weight: 700;
    color: var(--primary-dark) !important;
    /* สี Hover ภาษา */
}

.lang-switcher a.active {
    font-weight: 700;
    opacity: 1;
    color: var(--primary-color) !important;
    /* สี Active ภาษา */
}

/* Hero Section - เน้นความสดใสและเรียบง่าย */
.hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    /* Gradient ชมพูอ่อนไปชมพู */
    color: var(--text-dark);
    /* สีข้อความหลัก */
    padding: 7rem 0;
    /* Padding มากขึ้น */
    position: relative;
    overflow: hidden;
}

.hero::before {
    /* รูปแบบพื้นหลังจุดเล็กๆ */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    /* ขนาด H1 ใหญ่ขึ้น */
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.2;
    color: var(--text-dark);
}

.hero p {
    font-size: 1.4rem;
    /* ขนาด Paragraph */
    margin-bottom: 3rem;
    color: rgba(52, 58, 64, 0.9);
    /* สีเข้มขึ้นเล็กน้อย */
    max-width: 700px;
    /* จำกัดความยาว */
    margin-left: auto;
    margin-right: auto;
}

.hero .btn-gradient {
    /* ปรับ Style ปุ่ม Hero */
    background: var(--primary-dark);
    /* ใช้สีเข้ม */
    box-shadow: 0 8px 25px rgba(193, 91, 138, 0.5);
    /* Shadow ชมพูเข้ม */
    padding: 1.2rem 2.8rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-dark);
    /* เส้นขอบ */
}

.hero .btn-gradient:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(193, 91, 138, 0.7);
    background: var(--primary-color);
    /* เปลี่ยนสีเมื่อ Hover */
    border-color: var(--primary-color);
}

.hero .hero-image {
    /* Style รูปภาพ Hero */
    max-width: 550px;
    /* จำกัดขนาดรูป */
    filter: drop-shadow(5px 5px 15px rgba(0, 0, 0, 0.15));
    /* เงาให้รูป */
}

/* Section Titles - ดีไซน์ใหม่ */
.section-title {
    font-weight: 700;
    margin-bottom: 4rem;
    text-align: center;
    font-size: 34px;
    position: relative;
    display: inline-block;
    padding: 0 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

/* ส่วนหัวข้อที่มีพื้นหลังสีเข้ม - เพิ่มดีไซน์พื้นหลังให้คล้ายแบนเนอร์หลัก */
.section-bg-dark {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.section-bg-dark::before {
    /* รูปแบบพื้นหลังจุดเล็กๆ */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 0;
}

.section-bg-dark .section-title {
    color: var(--text-light);
    -webkit-text-fill-color: var(--text-light);
    background: none;
    text-shadow: none;
}

/* Feature Cards - ดีไซน์ใหม่ เน้นความโค้งมน */
.feature-card,
.service-card {
    border: none;
    background: var(--text-light);
    /* พื้นหลังขาว */
    padding: 40px 30px;
    /* Padding */
    text-align: center;
    transition: all 0.4s ease;
    border-radius: 25px;
    /* มุมโค้งมน */
    margin-bottom: 3rem;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
    /* Shadow มากขึ้น */
    position: relative;
    overflow: hidden;
}

.feature-card:hover,
.service-card:hover {
    transform: translateY(-15px);
    /* ยกการ์ดสูงขึ้น */
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    /* Shadow ใหญ่ขึ้น */
}

.feature-card::before,
.service-card::before {
    /* รูปแบบเส้นโค้งด้านบน */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    /* ความสูงของส่วนโค้ง */
    background: var(--secondary-color);
    /* สีชมพูอ่อน */
    clip-path: polygon(0% 0%, 100% 0%, 100% 60%, 50% 100%, 0% 60%);
    /* รูปแบบคลื่น/โค้ง */
    opacity: 0.6;
    z-index: 0;
}

.feature-card:hover::before,
.service-card:hover::before {
    background: var(--primary-color);
    /* เปลี่ยนสีเมื่อ Hover */
}

.feature-card .card-icon,
.service-card .card-icon {
    font-size: 3.5rem;
    /* Icon ใหญ่ขึ้น */
    color: var(--primary-color);
    /* สี Icon */
    margin-bottom: 25px;
    position: relative;
    /* เพื่อให้ซ้อนหน้า before */
    z-index: 1;
    display: inline-block;
    /* ให้ icon เป็น block */
    padding: 15px;
    /* Padding รอบ icon */
    background: var(--text-light);
    /* พื้นหลัง icon */
    border-radius: 50%;
    /* ทำให้ icon กลม */
    box-shadow: 0 5px 20px rgba(232, 113, 168, 0.3);
    /* Shadow รอบ icon */
}

.feature-card h5,
.service-card h5 {
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-size: 1.4rem;
    /* ขนาด Font H5 */
}

.feature-card p,
.service-card p {
    color: #6c757d;
    /* สีเทา */
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ปุ่ม */
.btn-gradient {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    border: none;
    color: var(--text-light);
    padding: 1rem 2.5rem;
    font-weight: 600;
    /* Font หนาขึ้น */
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(232, 113, 168, 0.4);
    /* Shadow สีชมพู */
    border-radius: 50px;
    /* มุมโค้ง */
    font-size: 1.1rem;
    /* ขนาด Font ปุ่ม */
}

.btn-gradient:hover {
    transform: translateY(-4px);
    /* ขยับขึ้น */
    box-shadow: 0 12px 30px rgba(232, 113, 168, 0.6);
    /* Shadow ใหญ่ขึ้น */
    color: var(--text-light);
    /* สีข้อความ */
}

/* สไตล์สำหรับ Section ที่มีการจัดวางแบบสลับข้าง */
.image-text-section {
    background-color: var(--bg-light);
    /* พื้นหลังสีอ่อน */
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.image-text-section .img-fluid {
    border-radius: 20px;
    /* มุมโค้งมน */
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
    /* Shadow รูป */
    filter: brightness(1.05) contrast(1.05);
    /* ปรับสีรูปให้สดขึ้นเล็กน้อย */
}

.image-text-section h3 {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: 2rem;
    /* ขนาด H3 */
}

.image-text-section p {
    line-height: 1.9;
    /* Line height มากขึ้น */
    color: #555;
    font-size: 1.15rem;
    /* ขนาด Font */
}

/* Footer ที่มีการออกแบบใหม่ */
.footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    /* Gradient จากเข้มไปอ่อน */
    color: var(--text-light);
    padding-top: 6rem;
    padding-bottom: 6rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    /* รูปแบบพื้นหลังจุดเล็กๆ */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 25px 25px;
    z-index: 0;
    opacity: 0.5;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer h5 {
    font-weight: 700;
    font-size: 1.7rem;
    /* ขนาด H5 */
    margin-bottom: 2rem;
    color: var(--text-light);
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
    /* Shadow ให้ H5 */
}

.footer p,
.footer a {
    color: rgba(255, 255, 255, 0.8);
    /* สีข้อความ */
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 1.05rem;
    /* ขนาด Font */
}

.footer a:hover {
    color: var(--text-light);
}

.footer .social-icons a {
    margin-right: 20px;
    font-size: 1.8rem;
    /* ขนาด Icon Social */
    color: var(--text-light);
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer .social-icons a:hover {
    color: var(--secondary-color);
    /* สี Hover Icon Social */
    transform: translateY(-3px);
    /* ขยับ Icon */
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.2);
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.footer .copyright {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Style for the form section - NEW */
.form-container-fluid {
    width: 100%;
    padding-right: var(--bs-gutter-x, .75rem);
    padding-left: var(--bs-gutter-x, .75rem);
    margin-right: auto;
    margin-left: auto;
}

.form-card {
    border: none;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
    border-radius: 25px;
    padding: 2rem;
    background: linear-gradient(145deg, var(--bg-light) 0%, var(--text-light) 100%);
}

/* Accordion styles */
.accordion-item {
    border-radius: 20px !important;
    overflow: hidden;
    border: 2px solid var(--secondary-color) !important;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.accordion-button {
    background-color: var(--secondary-color) !important;
    color: var(--text-dark) !important;
    font-weight: 700;
    font-size: 1.25rem;
    border: none !important;
    border-radius: 20px !important;
    transition: background-color 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color) !important;
    color: var(--text-light) !important;
}

.accordion-button:not(.collapsed)::after {
    filter: invert(1);
}

.accordion-body {
    padding: 2rem;
    background: var(--text-light);
    /* border-top: 1px solid var(--secondary-color); */
}

/* สไตล์หลักของการ์ด */
.main-card {
    width: 100%;
    border-radius: 1.5rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.15);
    /* ใช้ shadow-lg แต่ปรับให้เข้มกว่า */
    position: relative;
    overflow: hidden;
    border: none;
}

.main-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, #E871A8, #8a2be2);
    /* แถบสีด้านบน (Gradient) */
    border-top-left-radius: 1.5rem;
    border-top-right-radius: 1.5rem;
}

/* สไตล์ Gradient สำหรับข้อความ */
.text-gradient {
    background: linear-gradient(to right, #E871A8, #8a2be2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

/* สไตล์สำหรับ Input/Button */
.form-control-serial {
    /* ปรับขอบโค้งมนของ input */
    border-radius: 0.75rem 0 0 0.75rem !important;
    border-right: none;
}

.input-group .btn-check-status {
    /* ปรับขอบโค้งมนของปุ่ม */
    border-radius: 0 0.75rem 0.75rem 0 !important;
}

/* สไตล์สำหรับปุ่ม Action Groups */
.action-button-group .btn,
.sub-action-group .btn {
    border-radius: 0.75rem;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.action-button-group .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.sub-action-group .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.3rem 0.6rem rgba(0, 0, 0, 0.1);
}