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

/*************** ADD CUSTOM CSS HERE.   ***************/
/* --- TỐI ƯU MÀU SẮC VÀ ĐỘ ĐẬM CHO HEADING THEO CHUẨN SEO AI-FIRST --- */

/* H1: Tiêu đề chính trang - Nổi bật, quyền lực */
h1, .h1 {
    color: #2F3E51;
    font-weight: 700;
    text-transform: uppercase;
}

/* H2: Tiêu đề section (Tổng quan, Vị trí, Mặt bằng) */
h2, .h2 {
    color: #2F3E51;
    font-weight: 600;
}

/* H3: Tiêu đề phụ phân cấp thông tin */
h3, .h3 {
    color: #1F3B34; /* Tone xanh lá trầm để phân cấp nhẹ so với H2 */
    font-weight: 500;
}

/* H4, H5: Tiêu đề form, block thông tin nhỏ */
h4, .h4, h5, .h5 {
    color: #C86A4A; /* Màu cam gạch tạo điểm nhấn */
    font-family: 'Montserrat', sans-serif !important; /* Ghi đè dùng font Base cho hiện đại */
    font-weight: 700;
    text-transform: uppercase;
}

/* --- TỐI ƯU LINK COLORS & HIỆU ỨNG HOVER --- */
/* Màu link mặc định trong bài viết */
.entry-content a {
    color: #C86A4A;
    text-decoration: none;
    border-bottom: 1px dashed #C86A4A; /* Gạch chân đứt nét tạo sự tinh tế */
    transition: all 0.3s ease;
}

/* Hiệu ứng khi rê chuột vào link */
.entry-content a:hover {
    color: #2F3E51;
    border-bottom: 1px solid #2F3E51; /* Chuyển sang nét liền và màu biển sâu */
}

/* ========================================
   TỐI ƯU GIAO DIỆN FORM CF7 - FUTA KIM KHANG
   Màu chủ đạo: #2F3E51 | Màu nhấn (CTA): #C86A4A
   ======================================== */
.mxt-custom-form {
    background: #fdfdfd;
    padding: 35px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(47, 62, 81, 0.08);
    border-top: 4px solid #2F3E51;
    max-width: 100%;
    margin: 0 auto 40px auto;
    font-family: 'Montserrat', sans-serif;
}

/* Header Form */
.mxt-custom-form .form-header { margin-bottom: 25px; }
.mxt-custom-form .form-header h3 { color: #2F3E51; margin-bottom: 5px; text-transform: uppercase; font-weight: 700; }
.mxt-custom-form .sub-title { color: #C86A4A; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.mxt-custom-form .contact-info { font-size: 15px; color: #555; }
.mxt-custom-form .contact-info a { color: #2F3E51; font-weight: 700; text-decoration: none; }

/* Bố cục cột Grid/Flexbox */
.mxt-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}
.mxt-form-col {
    flex: 1;
    min-width: 220px;
}

/* Style Input & Select */
.mxt-custom-form input[type="text"],
.mxt-custom-form input[type="tel"],
.mxt-custom-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    color: #333;
    background: #fff;
    transition: all 0.3s ease;
    box-shadow: none;
}
.mxt-custom-form input:focus,
.mxt-custom-form select:focus {
    border-color: #2F3E51;
    box-shadow: 0 0 5px rgba(47, 62, 81, 0.2);
    outline: none;
}

/* Checkbox Chính sách bảo mật */
.mxt-agreement-row {
    margin-bottom: 20px;
    font-size: 13px;
    color: #555;
    text-align: center;
}
.mxt-agreement-row a { color: #2F3E51; text-decoration: underline; font-weight: 600; }
.mxt-agreement-row .wpcf7-list-item { margin: 0; }

/* Nút Submit (Màu Terracotta Clay) */
.mxt-custom-form .btn-submit { margin-top: 10px; }
.mxt-custom-form .wpcf7-submit {
    background: #C86A4A;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    padding: 14px 40px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
    transition: background 0.3s;
}
.mxt-custom-form .wpcf7-submit:hover {
    background: #2F3E51; /* Đổi sang màu biển sâu khi hover */
}

/* Footer reCAPTCHA */
.mxt-form-footer { margin-top: 20px; border-top: 1px dashed #eee; padding-top: 15px; }
.recaptcha-notice span { font-size: 11px; color: #999; }
.recaptcha-notice a { color: #2F3E51; text-decoration: none; border-bottom: 1px dotted #2F3E51; }

/* Cảnh báo lỗi CF7 (Validation) */
.mxt-custom-form .wpcf7-not-valid-tip { font-size: 12px; margin-top: 5px; color: #D32F2F; }
.mxt-custom-form div.wpcf7-response-output { border-radius: 6px; margin-top: 20px; font-size: 14px; }
/* --- TỐI ƯU CHIỀU CAO & HIỂN THỊ CHỮ Ô SELECT CF7 --- */
.mxt-custom-form input[type="text"],
.mxt-custom-form input[type="tel"],
.mxt-custom-form select {
    height: 48px !important; /* Ép chiều cao đồng nhất cho cả 3 ô */
    line-height: 48px !important; /* Căn giữa chữ theo chiều dọc */
    padding: 0 15px !important; /* Loại bỏ padding trên/dưới để tránh cắt chữ */
    box-sizing: border-box;
    -webkit-appearance: none; /* Khử định dạng nút nổi mặc định của Safari/iOS */
    -moz-appearance: none;
    appearance: none;
}

/* Hiển thị lại mũi tên dropdown mượt mà cho ô select sau khi dùng appearance:none */
.mxt-custom-form select {
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23555555%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 12px auto;
    padding-right: 35px !important; /* Chừa không gian cho mũi tên */
    cursor: pointer;
}

/* Ép form dọc trên Mobile */
@media (max-width: 767px) {
    .mxt-form-row { flex-direction: column; gap: 12px; }
    .mxt-custom-form { padding: 25px 20px; }
    .mxt-custom-form .wpcf7-submit { width: 100%; }
}