/* --- Container chính của section --- */
.section-ve-chung-minh {
    background: linear-gradient(47deg, #5EB47C 10%, #007D6E 100%);
    position: relative;
    padding: 120px 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 650px;
}


/* [MỚI] Thêm các đường cong mềm mại ở nền */
.section-ve-chung-minh::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 0;
    width: 100%;
    height: 66%;
    
    /* SVG đã được vẽ lại để giống với các đường lượn trong ảnh */
    background-image: var(--bg-day-url);
    background-repeat: no-repeat;
    background-position: right;
    background-size: contain;
    opacity: 1;
    /* Độ mờ của đường cong */
    z-index: 222;
}

/* [MỚI] Tạo hình lượn sóng màu trắng ở chân section */
.section-ve-chung-minh::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 100%;
    /* Tăng chiều cao của sóng */
    /* [TINH CHỈNH] SVG cho đường cong chân thực hơn, dốc nhẹ nhàng */
    background-image: var(--bg-song-url);
    /* <--- ĐÚNG */
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 2;
    background-position: bottom;
    background-color: #fcf8f4;
}

.container-ve-chung-minh {
    max-width: 1320px;
    min-width: 1320px;
    position: relative;
    z-index: 3;
    margin: 0 auto;
    padding-bottom: 100px;
}

/* [TINH CHỈNH] Tiêu đề "Về chúng mình" */
.tieu-de-ve-chung-minh {
    /* Sử dụng font đã nhúng ở Bước 1 */
    font-family: 'Title-One', serif;
    font-size: 68px;
    font-weight: 500;
    line-height: 1.3;
    color: #ffffff;
    margin: 0 0 24px 0;
}

/* [TINH CHỈNH] Đoạn mô tả */
.mo-ta-ve-chung-minh {
    font-family: 'Text', sans-serif;
    /* Giả định bạn có font Manrope */
    font-size: 18px;
    line-height: 1.8;
    /* Giãn dòng để thoáng hơn */
    color: rgba(255, 255, 255, 0.9);
    /* Màu trắng hơi mờ, dễ đọc hơn */
    margin: 0;
    padding: 0 10px;
    /* Thêm chút padding tránh chữ dính sát lề trên mobile */
}

@media(max-width:1320px) {
    .container-ve-chung-minh {

        min-width: unset;
    }
}

/* --- Responsive cho các thiết bị --- */
@media (max-width: 768px) {
    .section-ve-chung-minh {
        padding: 100px 20px;
        min-height: 500px;
    }

    .tieu-de-ve-chung-minh {
        font-size: 48px;
    }

    .mo-ta-ve-chung-minh {

        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .section-ve-chung-minh {
        padding: 80px 15px;
        min-height: auto;
    }

    .tieu-de-ve-chung-minh {
        font-size: 36px;
    }

    .mo-ta-ve-chung-minh {
        line-height: 1.7;
    }
}

/* --- Section Nội dung chính --- */
.section-chat-content {
    background-color: #fcf8f4;
    padding: 60px 40px 80px 40px;
}

.container-chat-content {
    max-width: 1320px;
    margin: 0 auto;
    text-align: center;
}

.chat-greeting {
    font-family: 'Title-One';
    font-style: italic;
    font-size: 42px;
    color: #1A1A1A;
    margin-bottom: 30px;
    text-align: left;
}

.chat-main-text {
    font-family: 'Text-One';
    font-size: 20px;
    line-height: 1.8;
    color: #000000;
    text-align: left;
    margin-bottom: 40px;
}

.chat-main-text p {
    margin-bottom: 1em;
}

.chat-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #EC744A;
    color: white;
    font-family: 'Title-One';
    font-size: 24px;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    margin-bottom: 60px;
}

.chat-button:hover {
    background-color: var(--e-global-color-primary);
    border: 1px solid;
    color: #fff;
}

.chat-button .arrow {
    transition: transform 0.3s ease;
}

.chat-button:hover .arrow {
    transform: translateX(5px);
}

.chat-illustration-wrapper {
    max-width: 450px;
    margin: 0 auto;
}

.chat-illustration-wrapper img {
    max-width: 100%;
    height: auto;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .section-chat-banner {
        padding: 100px 20px;
    }

    .section-chat-banner .tieu-de-banner {
        font-size: 44px;
    }

    .section-chat-content {
        padding: 40px 20px 60px 20px;
    }
}


/* ======================================================= */
/* ==       CSS CHO GIAO DIỆN YÊU CẦU ĐĂNG NHẬP       == */
/* ======================================================= */

.login-prompt-section {
    background-color: #fcf8f4;
    padding: 40px 0 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
}

.login-prompt-container {
    max-width: 800px;
    width: 100%;
    background-color: #ffffff;
    padding: 100px 50px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.login-prompt-title {
    font-family: 'Title-One';
    font-size: 42px;
    color: #1A1A1A;
    margin: 0 0 15px 0;
}

.login-prompt-message {
    font-family: Text-Medium;
    font-size: 18px;
    line-height: 1.7;
    color: #555;
    margin: 0 0 30px 0;
}

.login-form-wrapper {
    max-width: 50%;
    margin: 0 auto;
}

/* --- CSS CHO BƯỚC 2: NỘI DUNG ĐIỀU KHOẢN --- */
.section-terms-content {
    background-color: #fcf8f4;
    padding: 80px 40px;
}

.container-terms-content {
    max-width: 1320px;
    margin: 0 auto;
}

.terms-title {
    font-family: 'Title-One';
    font-size: 42px;
    margin: 0 0 40px 0;
}

.terms-intro h3 {
    font-family: 'Manrope', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.terms-intro p {
    font-size: 16px;
    line-height: 1.7;
}

.terms-notice-box {
    padding: 20px;
    margin: 30px 0;
    background: #FDDFBF;
    border-radius: 8px;
    color: #000;
    font-size: 18px;
    font-family: 'Text-Medium';
}

.terms-main-body {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    line-height: 1.8;
}

.terms-main-body h3,
.terms-main-body h4 {
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 15px;
}

.terms-main-body ol {
    padding-left: 20px;
}

.terms-main-body li {
    margin-bottom: 10px;
}

.terms-navigation-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
}

.terms-back-button,
.terms-continue-button {
    font-family: 'Text-One';
    font-size: 18px;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    border: 2px solid #EC744A;
    transition: all 0.3s ease;
    cursor: pointer;
}

.terms-back-button {
    background-color: transparent;
    color: #EC744A;
    font-family: 'Text-One';
    font-size: 18px;
    margin-bottom: 4rem;
}

.terms-back-button:hover {
    background-color: #EC744A;
    color: white;
}

.terms-continue-button {
    background-color: #EC744A;
    color: white;
}

.terms-continue-button:hover {
    background-color: #d6633a;
    border-color: #d6633a;
    color: #fff;
}

/* ======================================================= */
/* == CSS HOÀN CHỈNH CHO TRANG "ĐIỀU KHOẢN VÀ CAM KẾT" == */
/* ======================================================= */

/* --- CONTAINER BAO NGOÀI --- */
.terms-wrapper {
    background-color: #ffffff;
    max-width: 1320px;
    margin: 60px auto 0;
    padding: 45px 50px;
    border: 1px solid #eee;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

/* --- PHẦN ĐẦU TRANG --- */
.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 38px;
    font-weight: 500;
    color: #1A1A1A;
    margin-top: 0;
    margin-bottom: 30px;
}

.terms-intro h3 {
    font-family: Text-Medium;
    font-size: 24px;
    color: #1A1A1A;
    margin: 0 0 10px 0;
}

.terms-intro p {
    font-size: 18px;
    line-height: 1.7;
    color: #000;
    margin-top: 0;
    margin-bottom: 30px;
}

.highlight-box {
    background-color: #fff4e8;
    /* Màu cam nhạt */
    border-left: 4px solid #EC744A;
    padding: 20px 25px;
    margin-bottom: 50px;
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}

.highlight-box p {
    margin: 0;
}

/* --- STYLE CHUNG CHO CÁC SECTION A, B, C --- */
.commitment-section,
.supporter-section,
.policy-section {}

.supporter-section,
.policy-section {
    margin-top: 50px;
}

.section-title {
    font-family: 'Title-One';
    font-size: 24px;
    color: #1A1A1A;
    margin-top: 0;
    margin-bottom: 25px;
}

.commitment-item,
.supporter-item,
.policy-item {
    margin-bottom: 25px;
}

.commitment-item h3,
.supporter-item h3,
.policy-item h3 {
    font-family: 'Text-Medium';
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 8px;
}

.commitment-item p,
.supporter-item p,
.policy-item p,
p.intro {
    font-size: 18px;
    line-height: 1.8;
    color: #000;
    margin-top: 0;
    font-family: 'Text-One';
}

/* --- DANH SÁCH (UL/LI) --- */
.commitment-item ul,
.supporter-item ul,
.policy-item ul {
    list-style-type: none;
    padding-left: 20px;
    margin-top: 12px;
}

.commitment-item ul li,
.supporter-item ul li,
.policy-item ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 20px;
    line-height: 1.8;
    color: #444;
}

.commitment-item ul li::before,
.supporter-item ul li::before,
.policy-item ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: -2px;
    /* Điều chỉnh vị trí dấu chấm */
    color: #EC744A;
    font-weight: bold;
    font-size: 1.2em;
}

/* Hộp "Lưu ý quan trọng" */
.commitment-note {
    background-color: #FDDFBF;
    padding: 25px 30px;
    margin-top: 25px;
    border-radius: 8px;
}

.commitment-note h4 {
    font-family: 'Text-Medium';
    font-size: 20px;
    color: #1A1A1A;
    margin-top: 0;
    margin-bottom: 15px;
    font-style: italic;
}

.commitment-note ul {
    margin-top: 0;
    margin-bottom: 0;
}

.commitment-note ul li {
    font-size: 18px;
    font-family: 'Text-One';
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .terms-wrapper {
        margin: 30px 15px;
        padding: 30px 25px;
    }

    .page-title {
        font-size: 32px;
    }

    .section-title {
        font-size: 20px;
    }
}


.container-terms-content .form-wrapper .fluentform {
    background: #fff;
    padding: 3rem 3rem 2rem;
    box-shadow: 1px 1px 8px 1px #dedede;
    border-radius: 8px;
    font-family: 'Text-One';
    font-size: 18px;
}

.container-terms-content .form-wrapper .fluentform .ff-btn-submit:not(.ff_btn_no_style) {
    background-color: #EC744A;
}

.container-terms-content .form-wrapper .fluentform .ff-btn-submit:not(.ff_btn_no_style) {
    background-color: #EC744A !important;
}

.container-terms-content .form-wrapper .fluentform .ff-el-input--label {
    font-size: 20px;
    font-family: 'Text-Medium';
    margin-bottom: 2rem;
}

.container-terms-content .form-wrapper .ff-el-form-check label.ff-el-form-check-label {
    margin-bottom: 1.5rem;
    gap: 1rem;
    align-items: center;
}

.container-terms-content .form-wrapper .fluentform .ff-el-form-check-label input {
    height: 20px;
    width: 20px;
    margin-right: 10px;
}

/* ======================================================= */
/* ==           CSS CHO TRANG CHAT ROOM           == */
/* ======================================================= */

/* --- TÙY CHỈNH LAYOUT CHUNG --- */
/* Ghi đè style của theme, loại bỏ padding/margin không cần thiết */
body.page-template-template-chatroom .site-main-chatroom {
    padding: 0;
    margin: 0;
    background-color: #FAF6F2;
    /* Màu nền cam nhạt */
}

/* --- CONTAINER CHÍNH CỦA TRANG CHAT --- */
.chatroom-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    /* Chiếm toàn bộ chiều cao màn hình */
    padding: 40px 20px;
    box-sizing: border-box;
}

/* --- KHUNG CỬA SỔ CHAT --- */
.chat-window {
    width: 100%;
    max-width: 800px;
    /* Chiều rộng tối đa của khung chat */
    height: 80vh;
    /* Chiều cao chiếm 80% màn hình */
    max-height: 800px;
    /* Chiều cao tối đa */
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    /* Đảm bảo iframe không tràn ra ngoài */
}

/* --- PHẦN CHÂN TRANG VỚI NÚT QUAY VỀ --- */
.chatroom-footer {
    width: 100%;
    max-width: 800px;
    padding-top: 30px;
    text-align: left;
}

.back-to-home-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1px solid #EC744A;
    /* Viền màu cam */
    border-radius: 8px;
    background-color: transparent;
    color: #EC744A;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-to-home-button:hover {
    background-color: #EC744A;
    color: #ffffff;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .chatroom-container {
        padding: 20px 10px;
        min-height: 95vh;
    }

    .chat-window {
        height: 75vh;
        border-radius: 12px;
    }

    .chatroom-footer {
        padding-top: 20px;
        text-align: center;
    }
}

/* --- CSS CHO HIỆU ỨNG LOADING CỦA KHUNG CHAT --- */
.chat-wrapper {
    position: relative;
    /* Cần thiết để định vị loader */
    margin: 40px 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    min-height: 400px;
    /* Chiều cao tối thiểu để loader hiển thị đẹp */
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.chat-loader {
    text-align: center;
    color: #777;
}

.chat-loader .loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #EC744A;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ======================================================= */
/* ==   PHẦN BỔ SUNG RESPONSIVE CHO TRANG TRÒ CHUYỆN   == */
/* ======================================================= */

/* --- Tablet (Ngang) & Màn hình nhỏ (từ 1024px trở xuống) --- */
@media (max-width: 1024px) {

    /* --- Áp dụng chung cho các container nội dung --- */
    .container-chat-content,
    .container-terms-content {
        padding-left: 30px;
        padding-right: 30px;
    }

    /* --- Banner chung --- */
    .container-ve-chung-minh {
        padding-left: 20px;
        padding-right: 20px;
        text-align: center;
        /* Căn giữa nội dung banner cho cân đối */
    }

    .mo-ta-ve-chung-minh {
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* --- Tablet (Dọc) & Mobile (từ 768px trở xuống) --- */
@media (max-width: 768px) {

    /* --- Banner chung --- */
    .section-ve-chung-minh {
        padding: 80px 0;
        /* Giảm padding trên dưới của banner */
        min-height: auto;
    }

    .tieu-de-ve-chung-minh {
        font-size: 44px;
        /* Giảm cỡ chữ tiêu đề banner */
        line-height: 1.2;
    }

    .mo-ta-ve-chung-minh {
        font-size: 16px;
        /* Giảm cỡ chữ mô tả banner */
    }

    .container-ve-chung-minh {
        padding-bottom: 50px;
        /* Giảm khoảng cách dưới của banner */
    }

    /* --- Nội dung chính chung --- */
    .section-chat-content,
    .section-terms-content {
        padding: 50px 0;
        /* Giảm padding các section nội dung */
    }

    .container-chat-content,
    .container-terms-content {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* --- Step 1: Giới thiệu --- */
    .chat-greeting {
        font-size: 24px;
    }

    .chat-main-text {
        font-size: 16px;
    }

    /* --- Step 2 & các bước sau: Tiêu đề và nút --- */
    .terms-title {
        font-size: 32px;
        /* Giảm cỡ chữ tiêu đề chính */
    }

    .terms-intro h3 {
        font-size: 20px;
    }

    .terms-main-body,
    .terms-notice-box,
    .form-intro {
        font-size: 15px;
        /* Giảm cỡ chữ chung cho dễ đọc */
    }

    /* Quan trọng: Bố cục lại các nút điều hướng */
    .terms-navigation-buttons {
        flex-direction: column-reverse;
        /* Xếp chồng các nút, nút "Tiếp tục" lên trên */
        gap: 15px;
        /* Tạo khoảng cách giữa 2 nút */
        align-items: stretch;
        /* Kéo dài nút cho bằng nhau */
    }

    .terms-navigation-buttons .terms-back-button,
    .terms-navigation-buttons .terms-continue-button {
        width: 100%;
        text-align: center;
        justify-content: center;
        /* Căn giữa nội dung nút */
    }

    /* --- Step 6: Giao diện chat --- */
    .chat-wrapper iframe {
        height: 80vh;
        /* Tăng chiều cao iframe chat trên mobile cho trải nghiệm tốt hơn */
    }

    .chat-button {
        font-size: 18px;
    }

    .commitment-note ul {
        padding: 0;
    }

    .container-terms-content .form-wrapper .fluentform .ff-el-form-check-label span {
        line-height: 1.5;
    }

    .container-terms-content .form-wrapper .ff-el-form-check label.ff-el-form-check-label {
        margin-bottom: 1rem;
    }

    .container-terms-content .form-wrapper .fluentform .ff-el-input--label {
        font-size: 18px;
    }

    .container-terms-content .form-wrapper .fluentform {
        padding: 1.5rem;
    }
}

/* --- Mobile nhỏ (từ 480px trở xuống) --- */
@media (max-width: 480px) {

    /* --- Banner chung --- */
    .tieu-de-ve-chung-minh {
        font-size: 32px;
        /* Giảm cỡ chữ thêm cho mobile nhỏ */
    }

    /* --- Nội dung chung --- */
    .container-chat-content,
    .container-terms-content {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* --- Step 2 & các bước sau: Tiêu đề --- */
    .terms-title {
        font-size: 26px;
    }

    /* --- Hình minh họa --- */
    .chat-illustration-wrapper {
        margin-top: 30px;
        /* Giảm khoảng cách trên của ảnh */
    }
}

/* .tawk-max-container.tawk-flex.tawk-flex-column {
    display: none !important;
}

.site-footer:not(.dynamic-footer) {
    max-width: unset!important;
}

#tawkchat-container {
  display: none !important;
}

.tawk-max-container, .tawk-button, .tawk-min-container, .tawk-mobile {
    display: none!important;
} */

