/* 1. Reset lại khung chứa của ACF */
.odxpert-form-container .acf-fields {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important; /* PC: 3 cột */
    gap: 20px !important;
    border: none !important;
}

/* 2. Ép các ô input nằm đúng trong lưới */
.odxpert-form-container .acf-field {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 3. Tối ưu cho Mobile (Dưới 768px) - 2 cột */
@media (max-width: 768px) {
    .odxpert-form-container .acf-fields {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
}

/* 4. Đảm bảo input và select hiển thị đẹp */
.odxpert-form-container input, 
.odxpert-form-container select,
.odxpert-form-container textarea {
    width: 100% !important;
    height: 40px !important;
    padding: 5px 10px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
}

/* 5. Xử lý trường Hình ảnh (nếu muốn nó chiếm 1 ô như các ô khác) */
.odxpert-form-container .acf-field-image {
    grid-column: span 1 !important;
}

/* Căn chỉnh lại khối chứa nút */
.acf-form-submit {
    margin-top: 40px !important; 
    text-align: left !important; /* Bạn muốn nút nằm bên trái đúng không? */
    display: block !important;
}

/* Ép nút bấm hiển thị hoàn hảo */
.acf-form-submit input[type="submit"] {
    width: auto !important;
    min-width: 200px !important;
    padding: 12px 30px !important;
    
    /* Các thuộc tính căn giữa chữ trong nút */
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    
    background-color: #00cba9 !important;
    color: #fff !important;
    border: none !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    line-height: normal !important; /* Xóa khoảng trắng thừa của line-height */
}

/* Mobile: Tràn 100% chiều ngang */
@media (max-width: 768px) {
    .acf-form-submit input[type="submit"] {
        width: 100% !important;
    }
}

/* Loại bỏ đường kẻ viền (border) và bóng đổ (box-shadow) của ACF */
.odxpert-form-container .acf-fields,
.odxpert-form-container .acf-field,
.odxpert-form-container .acf-input,
.odxpert-form-container .acf-label {
    border: none !important;
    box-shadow: none !important;
    border-bottom: none !important;
}

/* Đảm bảo không còn bất kỳ border nào ở các phần tử con */
.odxpert-form-container .acf-fields.-left > .acf-field,
.odxpert-form-container .acf-fields > .acf-field {
    border-top: none !important;
}

/* Nếu vẫn còn đường kẻ ở các nhóm (Group), xóa luôn ở đây */
.odxpert-form-container .acf-field-group {
    border: none !important;
}