.hzp-container {
    max-width: 900px;
    margin: 20px auto;
    padding: 30px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 15px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    font-family: 'Segoe UI', sans-serif;
}

.hzp-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hzp-form input {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.hzp-submit {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    border: none;
    padding: 15px;
    border-radius: 8px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.hzp-submit:hover {
    transform: scale(1.02);
    filter: brightness(1.2);
}

.hzp-content { line-height: 1.6; text-align: justify; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hzp-wrapper {
    max-width: 1200px; /* Tăng độ rộng tổng thể */
    margin: 30px auto;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.hzp-container {
    background: #1a1a2e;
    padding: 40px;
    border-radius: 12px;
    color: #fff;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.hzp-title {
    text-align: center;
    color: #f39c12;
    margin-bottom: 30px;
    font-size: 24px;
    letter-spacing: 1px;
}

.hzp-form-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Chia 4 cột */
    gap: 20px;
}

.hzp-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hzp-field.full-width {
    grid-column: span 3; /* Họ tên chiếm 3/4 */
}

.hzp-field label {
    font-size: 14px;
    font-weight: bold;
    color: #ccc;
}

.hzp-field input, .hzp-field select {
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #333;
    background: #fff;
    color: #333;
    font-size: 16px;
    outline: none;
}

.hzp-action {
    text-align: center;
    margin-top: 30px;
}

.hzp-submit {
    background: #0088a9;
    color: white;
    border: none;
    padding: 15px 50px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.hzp-submit:hover {
    background: #00a8d1;
    transform: translateY(-2px);
}

.hzp-note {
    font-size: 13px;
    color: #aaa;
    margin-top: 20px;
    font-style: italic;
}

/* Container chính của kết quả */
.hzp-result-card {
    margin-top: 40px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid #eee;
    animation: slideUp 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Header của kết quả */
.hzp-result-header {
    padding: 30px;
    background: linear-gradient(to right, #ffffff, #fcfcfc);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.hzp-user-badge {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hzp-avatar {
    font-size: 30px;
    background: #f1f2f6;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid #e67e22;
}

.hzp-welcome {
    margin: 0;
    font-size: 22px;
    color: #2c3e50;
    font-weight: 500;
}

.hzp-welcome span {
    color: #e67e22;
    font-weight: 700;
}

.hzp-sign-subtitle {
    margin: 5px 0 0;
    font-size: 14px;
    color: #7f8c8d;
}

/* Khối hiển thị tên Cung/Con giáp chính */
.hzp-main-sign {
    text-align: right;
    background: #fff5e6;
    padding: 10px 25px;
    border-radius: 12px;
    border-right: 5px solid #e67e22;
}

.hzp-main-sign .hzp-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: #e67e22;
    letter-spacing: 1px;
}

.hzp-main-sign .hzp-value {
    font-size: 24px;
    font-weight: 800;
    color: #2c3e50;
}

/* Đường phân cách */
.hzp-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #eee, transparent);
    margin: 0 30px;
}

/* Tối ưu tổng thể nội dung luận giải */
.hzp-content-body {
    padding: 30px 40px;
    background: #ffffff;
    color: #34495e;
    font-size: 16px;
    line-height: 1.8;
    text-align: justify !important;
}

/* Kiểu dáng cho các tiêu đề lớn (H4) */
.hzp-content-body h4 {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: #f8f9fa;
    border-left: 5px solid #2c3e50;
    border-radius: 4px 10px 10px 4px;
    color: #2c3e50;
    font-size: 19px;
    font-weight: 700;
    margin: 35px 0 20px 0;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.03);
}

/* Các đoạn văn bản */
.hzp-content-body p {
    margin-bottom: 18px;
    text-align: justify;
}

/* Làm nổi bật các từ quan trọng (Strong) */
.hzp-content-body strong {
    color: #2c3e50;
    font-weight: 700;
}

/* --- SỬA LẠI CSS LIST ĐỂ HIỂN THỊ CHUẨN --- */

/* Reset list style mặc định */
.hzp-content-body ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 20px 0 30px 0;
}

/* Style cho từng item trong list */
.hzp-content-body ul li {
    position: relative;
    padding: 15px 20px 15px 50px; /* Padding trái lớn để chừa chỗ cho icon */
    background: #ffffff;
    border: 1px solid #e1e4e8;
    border-radius: 10px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    display: block; /* Đổi về block để text wrap tốt hơn */
    color: #34495e;
    line-height: 1.6;
}

/* Tạo icon giả lập bằng CSS để đồng bộ nếu html thiếu icon */
.hzp-content-body ul li::before {
    content: '✦'; /* Icon mặc định */
    position: absolute;
    left: 18px;
    top: 15px;
    color: #e67e22;
    font-weight: bold;
    font-size: 18px;
}

/* Nếu trong HTML đã có icon emoji đầu dòng (như 🔍), CSS này sẽ ẩn icon giả lập đi
   Lưu ý: Cách này áp dụng nếu bạn muốn giữ emoji cũ trong data */
.hzp-content-body ul li:hover {
    border-color: #f39c12;
    background: #fffdf5;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.15);
}

/* Xử lý phần in đậm trong list (Tiêu đề con) */
.hzp-content-body ul li strong {
    display: block; /* Xuống dòng cho tiêu đề con */
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 5px;
}

/* Fix lỗi khoảng trắng ở box Lời khuyên */
.hzp-advice-box p:empty {
    display: none;
}
.hzp-advice-item {
    margin-bottom: 15px;
    background: rgba(255,255,255,0.05); /* Nền nhẹ cho item */
    padding: 15px;
    border-radius: 8px;
}


/* Block định danh đầu nội dung (Cung/Con giáp) */
.hzp-content-body .hzp-sign-info-box {
    text-align: center;
    background: #fdfaf5;
    border: 1px solid #f39c12;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 35px;
}

.hzp-content-body .hzp-sign-info-box h2 {
    margin: 0 0 10px 0;
    color: #d35400;
    font-size: 26px;
}

/* Block Lời khuyên cuối cùng */
.hzp-content-body .hzp-advice-box {
    background: linear-gradient(135deg, #2c3e50 0%, #1a1a2e 100%);
    color: #ffffff;
    padding: 30px;
    border-radius: 15px;
    margin-top: 40px;
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.hzp-content-body .hzp-advice-box h5 {
    color: #f39c12;
    margin: 0 0 15px 0;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hzp-content-body .hzp-advice-box p {
    color: #ecf0f1;
    font-style: italic;
    margin: 0;
}
/* Hiệu ứng xuất hiện */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .hzp-result-header {
        flex-direction: column;
        text-align: center;
    }
    .hzp-user-badge {
        flex-direction: column;
    }
    .hzp-main-sign {
        text-align: center;
        border-right: none;
        border-bottom: 5px solid #e67e22;
        width: 100%;
    }
}

.hzp-welcome { color: #e67e22; font-size: 28px; margin-bottom: 10px; }
.hzp-sign-title { font-size: 22px; margin-bottom: 20px; color: #2c3e50; }

@media (max-width: 768px) {
    .hzp-form-grid { grid-template-columns: 1fr 1fr; }
    .hzp-field.full-width { grid-column: span 2; }
}

/* Tối ưu lại Advice Box */
.hzp-advice-box {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ffffff;
    padding: 35px;
    border-radius: 15px;
    margin-top: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hzp-advice-box h5 {
    color: #f39c12;
    font-size: 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}


.hzp-advice-icon {
    font-size: 20px;
    margin-top: 2px;
}

.hzp-advice-text {
    line-height: 1.6;
    color: #ecf0f1;
}

/* Tiêu đề của từng lời khuyên - Dùng màu cam nổi bật */
.hzp-advice-text strong {
    color: #f39c12; 
    display: block; /* Bắt buộc xuống dòng để không bị dính chữ */
    font-size: 17px;
    margin-bottom: 5px;
    font-weight: 700;
}

/* Câu quote cuối cùng */
.hzp-quote {
    text-align: center;
    font-weight: bold;
    color: #f1c40f;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-style: italic;
    font-size: 18px;
}

/* Quick Select Section */
.hzp-quick-select-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1); /* Đường phân cách */
    text-align: center;
}

.hzp-quick-select-title {
    color: #f39c12; /* Màu cam nổi bật */
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: bold;
}

.hzp-quick-select-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* Grid responsive */
    gap: 10px; /* Khoảng cách giữa các nút */
    max-width: 800px; /* Giới hạn độ rộng */
    margin: 0 auto; /* Căn giữa */
}

.hzp-quick-select-btn {
    background: #2c3e50; /* Nền tối */
    color: #fff;
    border: 1px solid #34495e;
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none; /* Đảm bảo không có gạch chân nếu là thẻ a */
    display: block; /* Đảm bảo chiếm hết không gian trong grid */
}

.hzp-quick-select-btn:hover {
    background: #34495e;
    border-color: #f39c12; /* Viền cam khi hover */
    color: #f39c12;
    transform: translateY(-2px); /* Hiệu ứng nổi nhẹ */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.hzp-quick-select-btn.loading-state {
    background: #e67e22; /* Màu cam đậm khi đang tải */
    color: #fff;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsive cho thiết bị di động */
@media (max-width: 768px) {
    .hzp-quick-select-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); /* Nút nhỏ hơn trên mobile */
    }
    .hzp-quick-select-btn {
        font-size: 14px;
        padding: 10px;
    }
}

/* Style for couple forms */
.hzp-subtitle {
    text-align: center;
    color: #e67e22; /* Màu cam */
    margin: 30px 0 20px 0;
    font-size: 20px;
    letter-spacing: 0.8px;
    border-bottom: 2px solid rgba(243, 156, 18, 0.2);
    padding-bottom: 10px;
}

.hzp-person-2-title {
    margin-top: 40px; /* Thêm khoảng cách giữa hai phần người */
}

/* Couple quick select dropdowns */
.hzp-couple-quick-select .hzp-quick-select-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 cột cho 2 dropdown và 1 nút */
    gap: 15px;
    align-items: center; /* Căn giữa theo chiều dọc */
}

.hzp-couple-sign-select {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #333;
    background: #fff;
    color: #333;
    font-size: 16px;
    outline: none;
    width: 100%; /* Đảm bảo chiếm hết chiều rộng */
    box-sizing: border-box; /* Tính cả padding và border vào width */
}

.hzp-couple-quick-submit {
    grid-column: span 1; /* Nút chiếm 1 cột */
}

/* Couple Result Header Styling */
.hzp-couple-result-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%; /* Đảm bảo chiếm toàn bộ chiều rộng */
}

.hzp-user-badge .hzp-avatar {
    font-size: 26px; /* Nhỏ hơn một chút cho icon cặp đôi */
    width: 55px;
    height: 55px;
}

.hzp-welcome span {
    font-weight: 700;
    color: #e67e22;
}

.hzp-couple-signs {
    padding: 10px 20px;
    border-right: 5px solid #0088a9; /* Màu xanh nổi bật */
    background: #e6f7fb; /* Nền nhẹ nhàng */
    text-align: right;
}

.hzp-couple-signs .hzp-label {
    color: #0088a9;
}

.hzp-couple-signs .hzp-value {
    font-size: 22px; /* Nhỏ hơn một chút cho 2 tên cung/con giáp */
}

.hzp-couple-connector {
    color: #7f8c8d; /* Màu xám cho dấu & */
    font-weight: normal;
    font-size: 18px;
    margin: 0 5px;
}

/* Responsive cho Couple Form và Result */
@media (max-width: 768px) {
    .hzp-couple-form {
        grid-template-columns: 1fr 1fr; /* 2 cột trên mobile */
    }
    .hzp-couple-form .hzp-field.full-width {
        grid-column: span 2;
    }
    .hzp-couple-quick-select .hzp-quick-select-grid {
        grid-template-columns: 1fr; /* Một cột trên mobile */
    }
    .hzp-couple-quick-submit {
        grid-column: span 1; /* Vẫn chiếm 1 cột trên mobile */
        margin-top: 10px; /* Thêm khoảng cách */
    }
    .hzp-couple-result-header-content {
        flex-direction: column;
        text-align: center;
    }
    .hzp-main-sign.hzp-couple-signs {
        text-align: center;
        border-right: none;
        border-bottom: 5px solid #0088a9; /* Đổi sang viền dưới */
        width: 100%;
    }
    .hzp-user-badge {
        flex-direction: column;
    }
}