/* --- Global & Typography --- */
:root {
    --primary-color: #005a3c;
    --secondary-color: #f5a623;
    --accent-color: #d9534f;
    --bg-light: #f7f9f8;
    --text-color: #333;
}
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    background-color: #fff;
}
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; }
.highlight { color: var(--primary-color); }
.section-title { text-align: center; font-size: 2.2em; margin-bottom: 15px; color: var(--primary-color); }
.section-subtitle { text-align: center; max-width: 600px; margin: 0 auto 40px auto; color: #666; }

/* --- Keyframes for Animation --- */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* --- Hero Section --- */
.hero-section {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 40px 20px;
}
.hero-section .logo { max-width: 180px; margin-bottom: 20px; }
.hero-section h1 { font-size: 2.8em; font-weight: 900; margin: 10px 0; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
.hero-section .hero-subtitle { font-size: 1.8em; font-weight: 500; margin-bottom: 20px; color: var(--secondary-color); }
.hero-section .sub-headline { max-width: 700px; margin: 0 auto 30px auto; font-size: 1.1em; opacity: 0.9; }
.cta-button {
    background-color: var(--accent-color); color: white; padding: 15px 35px; border-radius: 50px;
    font-weight: 700; text-transform: uppercase; text-decoration: none; font-size: 1.2em;
    display: inline-block; border: none; box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.2s, background-color 0.2s;
}
.cta-button:hover { transform: translateY(-3px); background-color: #c9302c; }
.pulse { animation: pulse 2s infinite; }

/* --- Sections Styling --- */
section { padding: 60px 0; }
.problem-section { background-color: var(--bg-light); }
.problem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.problem-item img { margin: 0 auto 15px auto; border-radius: 50%; }
.problem-item h3 { font-size: 1.2em; color: var(--primary-color); }

.usp-section { background: #fff; }
.usp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center; margin-top: 40px;}
.usp-item img { margin: 0 auto 15px auto; border-radius: 50%; }
.usp-item h3 { font-size: 1.3em; }

/* --- Section Sức mạnh của liệu pháp (Mechanism) --- */
.mechanism-section { 
    background: var(--bg-light); 
}
.mechanism-content { 
    display: grid; 
    grid-template-columns: 1fr 1fr; /* Chia 2 cột trên desktop */
    gap: 40px; 
    align-items: center; 
}
.mechanism-item { 
    display: flex; 
    align-items: flex-start; 
    gap: 15px; 
    margin-bottom: 25px; 
}
.mechanism-item .icon { 
    font-size: 2.5em; 
    line-height: 1; 
}
.mechanism-item h4 { 
    margin: 0 0 5px 0; 
    color: var(--primary-color); 
    font-size: 1.3em;
}
.mechanism-item p { 
    margin: 0; 
    font-size: 1em;
    text-align: justify;
}
.mechanism-text {
    padding: 10px;
}

/* --- Responsive cho Mobile (PHẦN SỬA LỖI) --- */
@media (max-width: 768px) {
    .mechanism-content { 
        grid-template-columns: 1fr; /* Chỉ có 1 cột trên di động */
    }
    
    .mechanism-image {
        order: -1; /* Đưa ảnh lên trên */
        margin-bottom: 20px;
    }

    .mechanism-item h4 {
        font-size: 1.2em;
    }
}

.expert-section { background-color: #fff; }
.expert-content { display: flex; align-items: center; gap: 30px; max-width: 900px; margin: 0 auto; background: var(--bg-light); padding: 30px; border-radius: 10px; }
.expert-avatar { border-radius: 50%; width: 150px; height: 150px; flex-shrink: 0; border: 4px solid var(--secondary-color); }
.expert-quote { border-left: 4px solid var(--secondary-color); padding-left: 20px; font-style: italic; }
.expert-quote strong, .expert-quote em { display: block; font-style: normal; margin-top: 10px; }

.guide-section { background-color: var(--bg-light); }
.guide-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center; }
.step-number { width: 60px; height: 60px; line-height: 60px; border-radius: 50%; background-color: var(--primary-color); color: white; font-size: 2em; font-weight: 700; margin: 0 auto 20px auto; }
.step-item h3 { color: var(--primary-color); }

.social-proof-section { background-color: #fff; }
.testimonials { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.testimonial-item { background-color: var(--bg-light); padding: 30px; border-radius: 8px; text-align: center; }
.testimonial-item img { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 15px auto; }
.testimonial-item h4 { font-style: normal; color: #555; }

.order-section { background-color: #fff; }
#countdown-timer { font-size: 2.5em; font-weight: 700; color: var(--accent-color); text-align: center; margin-bottom: 10px; }
.price-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.price-item { border: 1px solid #ddd; border-radius: 8px; padding: 20px; text-align: center; }
.price-item.combo { border: 2px solid var(--accent-color); transform: scale(1.05); position: relative; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.price-old { text-decoration: line-through; color: #999; }
.price-new { font-size: 2em; font-weight: 700; color: var(--accent-color); }
.save-badge { position: absolute; top: -15px; right: -15px; background-color: var(--accent-color); color: white; padding: 5px 10px; border-radius: 15px; font-size: 0.9em; }
.order-form { max-width: 600px; margin: 40px auto 0 auto; background-color: var(--bg-light); padding: 30px; border-radius: 8px; border: 1px solid #eee; }
.order-form h3 { text-align: center; margin-top: 0; }
.order-form input, .order-form textarea { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; font-size: 1em; }
.trust-badges { margin-top: 20px; display: flex; justify-content: space-around; font-size: 0.9em; color: #555; align-items: center; flex-wrap: wrap; gap: 10px; }

.guarantee-section { background-color: var(--bg-light); }
.guarantee-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center; }
.guarantee-item h4 { font-size: 1.2em; color: var(--primary-color); }

.faq-section { background-color: #fff; }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #eee; padding: 15px 0; }
.faq-item summary { font-weight: 700; cursor: pointer; position: relative; padding-right: 25px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 0; top: 0; font-size: 1.5em; color: var(--primary-color); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 10px 0 0 10px; border-left: 2px solid var(--secondary-color); margin-top: 10px; }

.main-footer { background-color: #333; color: #ccc; padding: 40px 0 20px 0; text-align: center; }
.main-footer .disclaimer { font-size: 0.8em; margin-top: 30px; opacity: 0.7; }

/* --- Responsive for Mobile --- */
@media (max-width: 768px) {
    .hero-section h1 { font-size: 2em; }
    .hero-section .hero-subtitle { font-size: 1.3em; }
    .section-title { font-size: 1.8em; }
    .problem-grid, .testimonials, .price-list, .solution-content, .expert-content, .usp-grid, .guide-steps, .guarantee-grid, .mechanism { grid-template-columns: 1fr; }
    .solution-text, .expert-content { order: 2; }
    .solution-image, .expert-avatar { order: 1; margin: 0 auto 20px auto; }
    .pain-point:nth-child(even) img { order: 0; }
    .price-item.combo { transform: scale(1); }
    .trust-badges { flex-direction: column; gap: 15px; }
    .expert-content { flex-direction: column; }
}
/* --- CSS CHO NÚT BẤM CHẠY THEO MÀN HÌNH --- */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Khoảng cách giữa các nút */
}

.float-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: white;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    overflow: hidden; /* Ẩn chữ ban đầu */
    text-decoration: none;
}

.float-btn:hover {
    width: 150px; /* Mở rộng chiều rộng khi hover */
    border-radius: 30px;
    justify-content: flex-start;
    padding-left: 18px; /* Căn lề icon */
}

.float-btn svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    transition: margin-right 0.3s ease;
}

.float-btn span {
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease;
    margin-left: 0;
    font-size: 1em;
    font-weight: 500;
}

.float-btn:hover svg {
    margin-right: 10px; /* Đẩy icon ra xa chữ */
}

.float-btn:hover span {
    opacity: 1; /* Hiện chữ khi hover */
}

/* Màu sắc cho từng nút */
.btn-call {
    background-color: #25D366; /* Màu xanh lá cây */
}
.btn-zalo {
    background-color: #0068FF; /* Màu xanh Zalo */
}
.btn-order {
    background-color: var(--accent-color, #d9534f); /* Màu đỏ/cam đồng bộ với web */
}

/* Responsive cho di động: Nút sẽ nhỏ hơn một chút */
/* --- CSS CHO NÚT BẤM CHẠY THEO MÀN HÌNH --- */
/* --- CSS CHO NÚT BẤM CHẠY THEO MÀN HÌNH --- */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-end;
}

.float-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: white;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    text-decoration: none;
}

.float-btn svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    transition: margin 0.3s ease;
}

.float-btn span {
    /* Ẩn chữ bằng cách cho kích thước bằng 0 và ẩn đi */
    font-size: 0;
    opacity: 0;
    white-space: nowrap;
    transition: all 0.2s ease;
    margin-left: 0;
}

/* HIỆU ỨNG KHI RÊ CHUỘT (CHỈ ÁP DỤNG CHO MÁY TÍNH) */
@media (min-width: 769px) {
    .float-btn:hover {
        width: 160px; /* Tăng chiều rộng để chứa chữ */
        border-radius: 30px;
        justify-content: flex-start; /* Căn nội dung về bên trái */
    }

    .float-btn:hover svg {
        margin: 0 10px 0 18px; /* Tạo khoảng cách cho icon và chữ */
    }

    .float-btn:hover span {
        font-size: 1em; /* Hiện lại kích thước chữ */
        font-weight: 500;
        opacity: 1; /* Hiện chữ ra */
    }
}

/* Màu sắc cho từng nút */
.btn-call {
    background-color: #25D366;
}
.btn-zalo {
    background-color: #0068FF;
}
.btn-order {
    background-color: var(--accent-color, #d9534f);
}

/* Responsive cho di động: Giữ nguyên dạng tròn, không có chữ */
@media (max-width: 768px) {
    .floating-buttons {
        bottom: 15px;
        right: 15px;
        gap: 12px;
    }
    .float-btn {
        width: 50px;
        height: 50px;
    }
    .float-btn span {
        display: none;
    }
}
/* --- Giao diện cho Form đặt hàng được tạo bởi JS --- */
.order-form-wrapper {
    max-width: 700px;
    margin: 20px auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    padding: 20px 30px;
}
.order-form-container h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.8em;
    color: #333;
}
.form-group {
    margin-bottom: 15px;
}
.form-row-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.order-form-container input[type="text"],
.order-form-container input[type="tel"],
.order-form-container textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1em;
}

/* --- Bảng sản phẩm --- */
.product-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.product-table th, .product-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
    vertical-align: middle;
}
.product-table th {
    background-color: #f2f2f2;
}
.product-table td[data-label="Sản phẩm"] {
    text-align: left;
}
.quantity-input-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}
.qty-input {
    width: 50px;
    height: 30px;
    text-align: center;
    border: 1px solid #ccc;
    margin: 0 5px;
    -moz-appearance: textfield;
}
.qty-button {
    cursor: pointer;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    width: 30px;
    height: 30px;
}
.text-right {
    text-align: right !important;
    padding-right: 20px !important;
}
.total-row {
    font-weight: bold;
    font-size: 1.2em;
}
.promo-section {
    margin: 20px 0;
    padding: 15px;
    background-color: #f7f9f8;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
}
.promo-section h3 {
    margin-top: 0;
}
.promo-section ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

/* --- Nút đặt hàng --- */
.submit-button {
    background-color: #d9534f;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
}

/* --- Phần cảm ơn --- */
#hoanggia-thank-you {
    padding: 20px 30px;
    border-top: 2px solid #28a745;
    text-align: center;
}
.thank-you-title {
    color: #28a745;
    margin-top: 0;
}
.order-details-wrapper { text-align: left; margin-top: 20px; border-top: 1px solid #eee; padding-top: 20px; }
.customer-info-ty p { margin: 5px 0; font-size: 1.1em; }
.thank-you-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 1em; }
.thank-you-table th, .thank-you-table td { border: 1px solid #ddd; padding: 12px; text-align: left; }
.thank-you-table th { background-color: #f9f9f9; }
.thank-you-total-row { font-weight: bold; font-size: 1.2em; }
.button-secondary {
    background: #777;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}
/* --- CSS cập nhật cho bảng giá khuyến mãi --- */
.price-item .gift-badge {
    color: #fff;
    background-color: var(--primary-color, #005a3c);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9em;
    font-weight: 500;
    display: inline-block;
    margin-top: 10px;
}

.price-item .combo-details {
    font-size: 1.1em;
    margin: 10px 0;
}

.price-item.combo .combo-details strong {
    color: var(--accent-color, #d9534f);
    font-size: 1.2em;
}