/*
Theme Name: Test
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

/* Áp dụng Montserrat cho toàn website */
body, p, span, a, li, input, textarea, select, button {
    font-family: 'Montserrat', sans-serif !important;
}

/* Áp dụng cho các tiêu đề */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700;
}

/* Tùy chỉnh tiêu đề giống hình (chữ dày + rộng) */
.page-title, .entry-title, .heading, .section-title {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Menu */
.nav > li > a, .header-nav a, .menu-item a {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600;
}

/* Button */
button, .button, .btn, input[type=submit] {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600;
}

@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}
/* --- SỬA LỖI HIỂN THỊ FORM SỔ TANG --- */

/* --- SỬA LỖI GIAO DIỆN SỔ TANG (FIXED) --- */

/* 1. Ép lại khung bao ngoài */
#tribute-v5-wrapper {
    max-width: 900px;
    margin: 40px auto;
    font-family: Arial, sans-serif !important;
}

/* 2. Ép hiển thị các Card (Form và Danh sách) thành nền trắng */
#tribute-v5-wrapper .tn-card,
#tribute-v5-wrapper .tn-item {
    background-color: #ffffff !important; /* Nền trắng bắt buộc */
    border: 1px solid #e0e0e0 !important; /* Viền xám */
    border-radius: 12px !important;       /* Bo góc */
    padding: 30px !important;
    margin-bottom: 30px !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05) !important;
}

/* 3. Sửa lỗi ô nhập liệu bị mất viền (Thành dòng kẻ ngang) */
#tribute-v5-wrapper input[type="text"],
#tribute-v5-wrapper textarea,
#tribute-v5-wrapper .fluentform .ff-el-form-control {
    background-color: #ffffff !important;
    border: 1px solid #cccccc !important; /* Viền xám rõ ràng 4 cạnh */
    border-radius: 6px !important;
    padding: 12px 15px !important;
    width: 100% !important;
    height: auto !important;
    min-height: 45px !important;
    box-shadow: none !important;
    color: #333 !important;
    margin-top: 5px !important;
}

/* 4. Sửa lỗi nhãn (Label) bị dính */
#tribute-v5-wrapper label, 
#tribute-v5-wrapper .ff-el-input--label {
    font-weight: 700 !important;
    color: #333 !important;
    margin-bottom: 8px !important;
    display: block !important;
    font-size: 14px !important;
}

/* 5. Sửa lỗi Nút Gửi (Button) bị mất màu */
#tribute-v5-wrapper button.ff-btn-submit,
#tribute-v5-wrapper input[type="submit"] {
    background-color: #cfa86e !important; /* Màu vàng đồng */
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 15px 0 !important;
    width: 100% !important;
    font-size: 16px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    margin-top: 15px !important;
}

#tribute-v5-wrapper button.ff-btn-submit:hover {
    background-color: #b38f5a !important;
}

/* 6. Sửa lỗi tiêu đề và icon bị lệch */
#tribute-v5-wrapper .tn-card-header {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 10px !important;
}

#tribute-v5-wrapper .tn-card-header h3 {
    margin: 0 !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    color: #222 !important;
}

/* 7. Sửa lỗi danh sách bên dưới bị nền xám/đen */
#tribute-v5-wrapper .tn-list-items {
    background: transparent !important;
}

#tribute-v5-wrapper .tn-item {
    display: flex !important;
    gap: 20px !important;
    align-items: flex-start !important;
}

/* Avatar chữ cái */
#tribute-v5-wrapper .tn-avatar {
    width: 50px !important;
    height: 50px !important;
    background-color: #f9f5ec !important;
    color: #cfa86e !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: bold !important;
    font-size: 20px !important;
    flex-shrink: 0 !important;
}

/* Responsive Mobile */
@media (max-width: 600px) {
    #tribute-v5-wrapper .tn-item {
        flex-direction: column !important;
    }
    #tribute-v5-wrapper .tn-card, 
    #tribute-v5-wrapper .tn-item {
        padding: 20px !important;
    }
}